Skip to content

Commit

Permalink
Update api/configuration/v1alpha1/key_set_ref.go
Browse files Browse the repository at this point in the history
Co-authored-by: Patryk Małek <[email protected]>
  • Loading branch information
czeslavo and pmalek committed Sep 20, 2024
1 parent 27377e9 commit 33f98e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/configuration/v1alpha1/key_set_ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type KeySetRef struct {
// Type defines type of the KeySet object reference. It can be one of:
// - konnectID
// - namespacedRef
Type KeySetRefType `json:"type,omitempty"`
Type KeySetRefType `json:"type"`

// KonnectID is the schema for the KonnectID type.
// This field is required when the Type is konnectID.
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/configuration.konghq.com_kongkeys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ spec:
- konnectID
- namespacedRef
type: string
required:
- type
type: object
x-kubernetes-validations:
- message: when type is namespacedRef, namespacedRef must be set
Expand Down

0 comments on commit 33f98e6

Please sign in to comment.