Skip to content

Commit

Permalink
change SupportedFeatures API to a list of subobjects (kubernetes-sigs…
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorLieberman authored and xtineskim committed Aug 8, 2024
1 parent bc94a5a commit 67b173d
Show file tree
Hide file tree
Showing 8 changed files with 141 additions and 28 deletions.
12 changes: 7 additions & 5 deletions apis/applyconfiguration/apis/v1/gatewayclassstatus.go

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

43 changes: 43 additions & 0 deletions apis/applyconfiguration/apis/v1/supportedfeature.go

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

11 changes: 10 additions & 1 deletion apis/applyconfiguration/internal/internal.go

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

2 changes: 2 additions & 0 deletions apis/applyconfiguration/utils.go

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

13 changes: 9 additions & 4 deletions apis/v1/gatewayclass_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,10 @@ type GatewayClassStatus struct {
Conditions []metav1.Condition `json:"conditions,omitempty"`

// SupportedFeatures is the set of features the GatewayClass support.
// It MUST be sorted in ascending alphabetical order.
// It MUST be sorted in ascending alphabetical order by the Name key.
// +optional
// +listType=set
// +listType=map
// +listMapKey=name
// <gateway:experimental>
// +kubebuilder:validation:MaxItems=64
SupportedFeatures []SupportedFeature `json:"supportedFeatures,omitempty"`
Expand All @@ -278,6 +279,10 @@ type GatewayClassList struct {
Items []GatewayClass `json:"items"`
}

// SupportedFeature is used to describe distinct features that are covered by
// FeatureName is used to describe distinct features that are covered by
// conformance tests.
type SupportedFeature string
type FeatureName string

type SupportedFeature struct {
Name FeatureName `json:"name"`
}
15 changes: 15 additions & 0 deletions apis/v1/zz_generated.deepcopy.go

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

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

35 changes: 29 additions & 6 deletions pkg/generated/openapi/zz_generated.openapi.go

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

0 comments on commit 67b173d

Please sign in to comment.