From bd0d1e77407bc836f3b064bfa0d1949db7b650b6 Mon Sep 17 00:00:00 2001 From: Mattia Lavacca Date: Thu, 25 Jul 2024 15:01:39 +0200 Subject: [PATCH] commented out GenericEntityRef Signed-off-by: Mattia Lavacca --- .../v1alpha1/kongpluginbinding_types.go | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/api/configuration/v1alpha1/kongpluginbinding_types.go b/api/configuration/v1alpha1/kongpluginbinding_types.go index f6a1d26..cc3266d 100644 --- a/api/configuration/v1alpha1/kongpluginbinding_types.go +++ b/api/configuration/v1alpha1/kongpluginbinding_types.go @@ -117,20 +117,20 @@ type EntityRef struct { Name string `json:"name"` } -type GenericEntityRef struct { - // Name is the name of the generic entity. - // +kubebuilder:validation:Required - Name string `json:"name"` - - // kind is the kind of the entity. - // +kubebuilder:validation:Enum=Service;HTTPRoute;GCPRoute;TLSRoute;TCPRoute;UDPRoute;Ingress - Kind string `json:"kind"` - - // TODO(mlavacca): add cross-field validation. Kind can be set depending on the group. - // Group is the group of the entity. - // +kubebuilder:validation:Enum="";core;gateway.networking.k8s.io;networking.k8s.io - Group string `json:"group"` -} +// type GenericEntityRef struct { +// // Name is the name of the generic entity. +// // +kubebuilder:validation:Required +// Name string `json:"name"` + +// // kind is the kind of the entity. +// // +kubebuilder:validation:Enum=Service;HTTPRoute;GCPRoute;TLSRoute;TCPRoute;UDPRoute;Ingress +// Kind string `json:"kind"` + +// // TODO(mlavacca): add cross-field validation. Kind can be set depending on the group. +// // Group is the group of the entity. +// // +kubebuilder:validation:Enum="";core;gateway.networking.k8s.io;networking.k8s.io +// Group string `json:"group"` +// } // KongPluginBindingStatus represents the current status of the KongBinding resource. type KongPluginBindingStatus struct {