From d25c6d9d0a34acc5e58000f50d0d172b3c7f8622 Mon Sep 17 00:00:00 2001 From: Monis Khan Date: Tue, 9 Feb 2021 16:17:53 -0500 Subject: [PATCH] Make kubebuilder CRDs cluster scoped Signed-off-by: Monis Khan --- apis/concierge/authentication/v1alpha1/types_jwt.go.tmpl | 2 +- apis/concierge/authentication/v1alpha1/types_webhook.go.tmpl | 2 +- apis/concierge/config/v1alpha1/types_credentialissuer.go.tmpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apis/concierge/authentication/v1alpha1/types_jwt.go.tmpl b/apis/concierge/authentication/v1alpha1/types_jwt.go.tmpl index 480b1015..74b2986d 100644 --- a/apis/concierge/authentication/v1alpha1/types_jwt.go.tmpl +++ b/apis/concierge/authentication/v1alpha1/types_jwt.go.tmpl @@ -59,7 +59,7 @@ type JWTTokenClaims struct { // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:resource:categories=pinniped;pinniped-authenticator;pinniped-authenticators +// +kubebuilder:resource:categories=pinniped;pinniped-authenticator;pinniped-authenticators,scope=Cluster // +kubebuilder:printcolumn:name="Issuer",type=string,JSONPath=`.spec.issuer` type JWTAuthenticator struct { metav1.TypeMeta `json:",inline"` diff --git a/apis/concierge/authentication/v1alpha1/types_webhook.go.tmpl b/apis/concierge/authentication/v1alpha1/types_webhook.go.tmpl index 32062949..b2d1cd4a 100644 --- a/apis/concierge/authentication/v1alpha1/types_webhook.go.tmpl +++ b/apis/concierge/authentication/v1alpha1/types_webhook.go.tmpl @@ -31,7 +31,7 @@ type WebhookAuthenticatorSpec struct { // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:resource:categories=pinniped;pinniped-authenticator;pinniped-authenticators +// +kubebuilder:resource:categories=pinniped;pinniped-authenticator;pinniped-authenticators,scope=Cluster // +kubebuilder:printcolumn:name="Endpoint",type=string,JSONPath=`.spec.endpoint` type WebhookAuthenticator struct { metav1.TypeMeta `json:",inline"` diff --git a/apis/concierge/config/v1alpha1/types_credentialissuer.go.tmpl b/apis/concierge/config/v1alpha1/types_credentialissuer.go.tmpl index c0425a79..17e8a5eb 100644 --- a/apis/concierge/config/v1alpha1/types_credentialissuer.go.tmpl +++ b/apis/concierge/config/v1alpha1/types_credentialissuer.go.tmpl @@ -69,7 +69,7 @@ type CredentialIssuerStrategy struct { // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:resource:categories=pinniped +// +kubebuilder:resource:categories=pinniped,scope=Cluster type CredentialIssuer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"`