diff --git a/apis/concierge/authentication/v1alpha1/types_tls.go.tmpl b/apis/concierge/authentication/v1alpha1/types_tls.go.tmpl index 883dc7fc7..db9f4ceff 100644 --- a/apis/concierge/authentication/v1alpha1/types_tls.go.tmpl +++ b/apis/concierge/authentication/v1alpha1/types_tls.go.tmpl @@ -7,6 +7,7 @@ package v1alpha1 type CertificateAuthorityDataSourceSpec struct { // Kind configures whether the CA bundle is being sourced from a Kubernetes secret or a configmap. // Secrets must be of type kubernetes.io/tls or Opaque. + // Allowed values are "Secret" or "ConfigMap". // +kubebuilder:validation:Enum=Secret;ConfigMap Kind string `json:"kind"` // Name is the resource name of the secret or configmap from which to read the CA bundle. diff --git a/apis/concierge/config/v1alpha1/types_credentialissuer.go.tmpl b/apis/concierge/config/v1alpha1/types_credentialissuer.go.tmpl index 0ee0f0dbf..de976f5c1 100644 --- a/apis/concierge/config/v1alpha1/types_credentialissuer.go.tmpl +++ b/apis/concierge/config/v1alpha1/types_credentialissuer.go.tmpl @@ -1,4 +1,4 @@ -// Copyright 2020-2023 the Pinniped contributors. All Rights Reserved. +// Copyright 2020-2024 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package v1alpha1 @@ -49,6 +49,7 @@ type CredentialIssuerSpec struct { } // ImpersonationProxyMode enumerates the configuration modes for the impersonation proxy. +// Allowed values are "auto", "enabled", or "disabled". // // +kubebuilder:validation:Enum=auto;enabled;disabled type ImpersonationProxyMode string @@ -65,6 +66,7 @@ const ( ) // ImpersonationProxyServiceType enumerates the types of service that can be provisioned for the impersonation proxy. +// Allowed values are "LoadBalancer", "ClusterIP", or "None". // // +kubebuilder:validation:Enum=LoadBalancer;ClusterIP;None type ImpersonationProxyServiceType string diff --git a/apis/supervisor/config/v1alpha1/types_federationdomain.go.tmpl b/apis/supervisor/config/v1alpha1/types_federationdomain.go.tmpl index 95f7da282..d1a6e6278 100644 --- a/apis/supervisor/config/v1alpha1/types_federationdomain.go.tmpl +++ b/apis/supervisor/config/v1alpha1/types_federationdomain.go.tmpl @@ -1,4 +1,4 @@ -// Copyright 2020-2023 the Pinniped contributors. All Rights Reserved. +// Copyright 2020-2024 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package v1alpha1 @@ -55,6 +55,7 @@ type FederationDomainTransformsConstant struct { Name string `json:"name"` // Type determines the type of the constant, and indicates which other field should be non-empty. + // Allowed values are "string" or "stringList". // +kubebuilder:validation:Enum=string;stringList Type string `json:"type"` @@ -70,6 +71,7 @@ type FederationDomainTransformsConstant struct { // FederationDomainTransformsExpression defines a transform expression. type FederationDomainTransformsExpression struct { // Type determines the type of the expression. It must be one of the supported types. + // Allowed values are "policy/v1", "username/v1", or "groups/v1". // +kubebuilder:validation:Enum=policy/v1;username/v1;groups/v1 Type string `json:"type"` diff --git a/apis/supervisor/idp/v1alpha1/types_githubidentityprovider.go.tmpl b/apis/supervisor/idp/v1alpha1/types_githubidentityprovider.go.tmpl index c84f46dbd..437974778 100644 --- a/apis/supervisor/idp/v1alpha1/types_githubidentityprovider.go.tmpl +++ b/apis/supervisor/idp/v1alpha1/types_githubidentityprovider.go.tmpl @@ -167,7 +167,10 @@ type GitHubClientSpec struct { } type GitHubOrganizationsSpec struct { - // Policy must be set to "AllGitHubUsers" if allowed is empty. + // Allowed values are "OnlyUsersFromAllowedOrganizations" or "AllGitHubUsers". + // Defaults to "OnlyUsersFromAllowedOrganizations". + // + // Must be set to "AllGitHubUsers" if the allowed field is empty. // // This field only exists to ensure that Pinniped administrators are aware that an empty list of // allowedOrganizations means all GitHub users are allowed to log in. diff --git a/apis/supervisor/idp/v1alpha1/types_tls.go.tmpl b/apis/supervisor/idp/v1alpha1/types_tls.go.tmpl index 407a5cde5..70f1c71cc 100644 --- a/apis/supervisor/idp/v1alpha1/types_tls.go.tmpl +++ b/apis/supervisor/idp/v1alpha1/types_tls.go.tmpl @@ -7,6 +7,7 @@ package v1alpha1 type CertificateAuthorityDataSourceSpec struct { // Kind configures whether the CA bundle is being sourced from a Kubernetes secret or a configmap. // Secrets must be of type kubernetes.io/tls or Opaque. + // Allowed values are "Secret" or "ConfigMap". // +kubebuilder:validation:Enum=Secret;ConfigMap Kind string `json:"kind"` // Name is the resource name of the secret or configmap from which to read the CA bundle.