From d6cca040a44bae3e9903cff0c072df197fcd7da1 Mon Sep 17 00:00:00 2001 From: Travis Raines <571832+rainest@users.noreply.github.com> Date: Wed, 22 Jun 2022 11:15:18 -0700 Subject: [PATCH] Add Gateway to core reference from kinds Add Gateway to the list of core kinds implementations must support in ReferenceGrantFrom. Gateway Listener core support requires implementations support references to TLS Secrets in other namespaces, and these references require permission from a ReferenceGrant in the target namespace. --- apis/v1alpha2/referencegrant_types.go | 3 ++- .../gateway.networking.k8s.io_referencegrants.yaml | 6 +++--- .../gateway.networking.k8s.io_referencepolicies.yaml | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/apis/v1alpha2/referencegrant_types.go b/apis/v1alpha2/referencegrant_types.go index e6d59a952e..4ebbcdea91 100644 --- a/apis/v1alpha2/referencegrant_types.go +++ b/apis/v1alpha2/referencegrant_types.go @@ -92,13 +92,14 @@ type ReferenceGrantFrom struct { Group Group `json:"group"` // Kind is the kind of the referent. Although implementations may support - // additional resources, the following Route types are part of the "Core" + // additional resources, the following types are part of the "Core" // support level for this field: // // * HTTPRoute // * TCPRoute // * TLSRoute // * UDPRoute + // * Gateway Kind Kind `json:"kind"` // Namespace is the namespace of the referent. diff --git a/config/crd/experimental/gateway.networking.k8s.io_referencegrants.yaml b/config/crd/experimental/gateway.networking.k8s.io_referencegrants.yaml index 07d57b68e6..a3bf4bc217 100644 --- a/config/crd/experimental/gateway.networking.k8s.io_referencegrants.yaml +++ b/config/crd/experimental/gateway.networking.k8s.io_referencegrants.yaml @@ -69,9 +69,9 @@ spec: type: string kind: description: "Kind is the kind of the referent. Although implementations - may support additional resources, the following Route types - are part of the \"Core\" support level for this field: \n - * HTTPRoute * TCPRoute * TLSRoute * UDPRoute" + may support additional resources, the following types are + part of the \"Core\" support level for this field: \n * HTTPRoute + * TCPRoute * TLSRoute * UDPRoute * Gateway" maxLength: 63 minLength: 1 pattern: ^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$ diff --git a/config/crd/experimental/gateway.networking.k8s.io_referencepolicies.yaml b/config/crd/experimental/gateway.networking.k8s.io_referencepolicies.yaml index bfd28dcba3..3423b03c12 100644 --- a/config/crd/experimental/gateway.networking.k8s.io_referencepolicies.yaml +++ b/config/crd/experimental/gateway.networking.k8s.io_referencepolicies.yaml @@ -74,9 +74,9 @@ spec: type: string kind: description: "Kind is the kind of the referent. Although implementations - may support additional resources, the following Route types - are part of the \"Core\" support level for this field: \n - * HTTPRoute * TCPRoute * TLSRoute * UDPRoute" + may support additional resources, the following types are + part of the \"Core\" support level for this field: \n * HTTPRoute + * TCPRoute * TLSRoute * UDPRoute * Gateway" maxLength: 63 minLength: 1 pattern: ^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$