Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit c5499ff

Browse files
committed
Fix TrafficTarget v1alpha2 Spec type
TrafficTarget v1alpha2 defines the Spec attribute as a slice of TrafficTargetSpec. This is inconsistent with the specification as it should just be a TrafficTargetSpec, not a slice. Signed-off-by: Harold Ozouf <harold.ozouf@gmail.com>
1 parent 28318bd commit c5499ff

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

pkg/apis/access/v1alpha2/traffic_target.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type TrafficTarget struct {
2222
// +optional
2323
metav1.ObjectMeta `json:"metadata,omitempty"`
2424

25-
Spec []TrafficTargetSpec `json:"spec"`
25+
Spec TrafficTargetSpec `json:"spec"`
2626
}
2727

2828
// TrafficTargetSpec is the specification of a TrafficTarget

pkg/apis/access/v1alpha2/zz_generated.deepcopy.go

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)