From 33f98e67eaa643239f4137ac4beb35e9a0ee6387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20Burzy=C5=84ski?= Date: Fri, 20 Sep 2024 14:04:38 +0200 Subject: [PATCH] Update api/configuration/v1alpha1/key_set_ref.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Patryk Małek --- api/configuration/v1alpha1/key_set_ref.go | 2 +- config/crd/bases/configuration.konghq.com_kongkeys.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/configuration/v1alpha1/key_set_ref.go b/api/configuration/v1alpha1/key_set_ref.go index 68c8a25..efe851a 100644 --- a/api/configuration/v1alpha1/key_set_ref.go +++ b/api/configuration/v1alpha1/key_set_ref.go @@ -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. diff --git a/config/crd/bases/configuration.konghq.com_kongkeys.yaml b/config/crd/bases/configuration.konghq.com_kongkeys.yaml index 02f1509..876369d 100644 --- a/config/crd/bases/configuration.konghq.com_kongkeys.yaml +++ b/config/crd/bases/configuration.konghq.com_kongkeys.yaml @@ -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