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

Commit

Permalink
Fix TrafficTarget v1alpha2 Spec type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jspdown committed Jul 29, 2020
1 parent 28318bd commit c5499ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/access/v1alpha2/traffic_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type TrafficTarget struct {
// +optional
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec []TrafficTargetSpec `json:"spec"`
Spec TrafficTargetSpec `json:"spec"`
}

// TrafficTargetSpec is the specification of a TrafficTarget
Expand Down
8 changes: 1 addition & 7 deletions pkg/apis/access/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c5499ff

Please sign in to comment.