Add new allowed values to field validations on CredentialIssuer
The new values are used by the impersonation proxy's status.
This commit is contained in:
parent
7b7901af36
commit
f0fc84c922
@ -5,16 +5,16 @@ package v1alpha1
|
|||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate
|
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate;ImpersonationProxy
|
||||||
type StrategyType string
|
type StrategyType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI
|
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI;ImpersonationProxy
|
||||||
type FrontendType string
|
type FrontendType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=Success;Error
|
// +kubebuilder:validation:Enum=Success;Error
|
||||||
type StrategyStatus string
|
type StrategyStatus string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=FetchedKey;CouldNotFetchKey
|
// +kubebuilder:validation:Enum=Listening;Pending;Disabled;ErrorDuringSetup;CouldNotFetchKey;CouldNotGetClusterInfo;FetchedKey
|
||||||
type StrategyReason string
|
type StrategyReason string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -111,6 +111,7 @@ spec:
|
|||||||
can use with a strategy.
|
can use with a strategy.
|
||||||
enum:
|
enum:
|
||||||
- TokenCredentialRequestAPI
|
- TokenCredentialRequestAPI
|
||||||
|
- ImpersonationProxy
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
@ -126,8 +127,13 @@ spec:
|
|||||||
reason:
|
reason:
|
||||||
description: Reason for the current status.
|
description: Reason for the current status.
|
||||||
enum:
|
enum:
|
||||||
- FetchedKey
|
- Listening
|
||||||
|
- Pending
|
||||||
|
- Disabled
|
||||||
|
- ErrorDuringSetup
|
||||||
- CouldNotFetchKey
|
- CouldNotFetchKey
|
||||||
|
- CouldNotGetClusterInfo
|
||||||
|
- FetchedKey
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
description: Status of the attempted integration strategy.
|
description: Status of the attempted integration strategy.
|
||||||
@ -139,6 +145,7 @@ spec:
|
|||||||
description: Type of integration attempted.
|
description: Type of integration attempted.
|
||||||
enum:
|
enum:
|
||||||
- KubeClusterSigningCertificate
|
- KubeClusterSigningCertificate
|
||||||
|
- ImpersonationProxy
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- lastUpdateTime
|
- lastUpdateTime
|
||||||
|
@ -5,16 +5,16 @@ package v1alpha1
|
|||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate
|
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate;ImpersonationProxy
|
||||||
type StrategyType string
|
type StrategyType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI
|
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI;ImpersonationProxy
|
||||||
type FrontendType string
|
type FrontendType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=Success;Error
|
// +kubebuilder:validation:Enum=Success;Error
|
||||||
type StrategyStatus string
|
type StrategyStatus string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=FetchedKey;CouldNotFetchKey
|
// +kubebuilder:validation:Enum=Listening;Pending;Disabled;ErrorDuringSetup;CouldNotFetchKey;CouldNotGetClusterInfo;FetchedKey
|
||||||
type StrategyReason string
|
type StrategyReason string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -111,6 +111,7 @@ spec:
|
|||||||
can use with a strategy.
|
can use with a strategy.
|
||||||
enum:
|
enum:
|
||||||
- TokenCredentialRequestAPI
|
- TokenCredentialRequestAPI
|
||||||
|
- ImpersonationProxy
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
@ -126,8 +127,13 @@ spec:
|
|||||||
reason:
|
reason:
|
||||||
description: Reason for the current status.
|
description: Reason for the current status.
|
||||||
enum:
|
enum:
|
||||||
- FetchedKey
|
- Listening
|
||||||
|
- Pending
|
||||||
|
- Disabled
|
||||||
|
- ErrorDuringSetup
|
||||||
- CouldNotFetchKey
|
- CouldNotFetchKey
|
||||||
|
- CouldNotGetClusterInfo
|
||||||
|
- FetchedKey
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
description: Status of the attempted integration strategy.
|
description: Status of the attempted integration strategy.
|
||||||
@ -139,6 +145,7 @@ spec:
|
|||||||
description: Type of integration attempted.
|
description: Type of integration attempted.
|
||||||
enum:
|
enum:
|
||||||
- KubeClusterSigningCertificate
|
- KubeClusterSigningCertificate
|
||||||
|
- ImpersonationProxy
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- lastUpdateTime
|
- lastUpdateTime
|
||||||
|
@ -5,16 +5,16 @@ package v1alpha1
|
|||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate
|
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate;ImpersonationProxy
|
||||||
type StrategyType string
|
type StrategyType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI
|
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI;ImpersonationProxy
|
||||||
type FrontendType string
|
type FrontendType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=Success;Error
|
// +kubebuilder:validation:Enum=Success;Error
|
||||||
type StrategyStatus string
|
type StrategyStatus string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=FetchedKey;CouldNotFetchKey
|
// +kubebuilder:validation:Enum=Listening;Pending;Disabled;ErrorDuringSetup;CouldNotFetchKey;CouldNotGetClusterInfo;FetchedKey
|
||||||
type StrategyReason string
|
type StrategyReason string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -111,6 +111,7 @@ spec:
|
|||||||
can use with a strategy.
|
can use with a strategy.
|
||||||
enum:
|
enum:
|
||||||
- TokenCredentialRequestAPI
|
- TokenCredentialRequestAPI
|
||||||
|
- ImpersonationProxy
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
@ -126,8 +127,13 @@ spec:
|
|||||||
reason:
|
reason:
|
||||||
description: Reason for the current status.
|
description: Reason for the current status.
|
||||||
enum:
|
enum:
|
||||||
- FetchedKey
|
- Listening
|
||||||
|
- Pending
|
||||||
|
- Disabled
|
||||||
|
- ErrorDuringSetup
|
||||||
- CouldNotFetchKey
|
- CouldNotFetchKey
|
||||||
|
- CouldNotGetClusterInfo
|
||||||
|
- FetchedKey
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
description: Status of the attempted integration strategy.
|
description: Status of the attempted integration strategy.
|
||||||
@ -139,6 +145,7 @@ spec:
|
|||||||
description: Type of integration attempted.
|
description: Type of integration attempted.
|
||||||
enum:
|
enum:
|
||||||
- KubeClusterSigningCertificate
|
- KubeClusterSigningCertificate
|
||||||
|
- ImpersonationProxy
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- lastUpdateTime
|
- lastUpdateTime
|
||||||
|
@ -5,16 +5,16 @@ package v1alpha1
|
|||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate
|
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate;ImpersonationProxy
|
||||||
type StrategyType string
|
type StrategyType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI
|
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI;ImpersonationProxy
|
||||||
type FrontendType string
|
type FrontendType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=Success;Error
|
// +kubebuilder:validation:Enum=Success;Error
|
||||||
type StrategyStatus string
|
type StrategyStatus string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=FetchedKey;CouldNotFetchKey
|
// +kubebuilder:validation:Enum=Listening;Pending;Disabled;ErrorDuringSetup;CouldNotFetchKey;CouldNotGetClusterInfo;FetchedKey
|
||||||
type StrategyReason string
|
type StrategyReason string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -111,6 +111,7 @@ spec:
|
|||||||
can use with a strategy.
|
can use with a strategy.
|
||||||
enum:
|
enum:
|
||||||
- TokenCredentialRequestAPI
|
- TokenCredentialRequestAPI
|
||||||
|
- ImpersonationProxy
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
@ -126,8 +127,13 @@ spec:
|
|||||||
reason:
|
reason:
|
||||||
description: Reason for the current status.
|
description: Reason for the current status.
|
||||||
enum:
|
enum:
|
||||||
- FetchedKey
|
- Listening
|
||||||
|
- Pending
|
||||||
|
- Disabled
|
||||||
|
- ErrorDuringSetup
|
||||||
- CouldNotFetchKey
|
- CouldNotFetchKey
|
||||||
|
- CouldNotGetClusterInfo
|
||||||
|
- FetchedKey
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
description: Status of the attempted integration strategy.
|
description: Status of the attempted integration strategy.
|
||||||
@ -139,6 +145,7 @@ spec:
|
|||||||
description: Type of integration attempted.
|
description: Type of integration attempted.
|
||||||
enum:
|
enum:
|
||||||
- KubeClusterSigningCertificate
|
- KubeClusterSigningCertificate
|
||||||
|
- ImpersonationProxy
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- lastUpdateTime
|
- lastUpdateTime
|
||||||
|
@ -5,16 +5,16 @@ package v1alpha1
|
|||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate
|
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate;ImpersonationProxy
|
||||||
type StrategyType string
|
type StrategyType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI
|
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI;ImpersonationProxy
|
||||||
type FrontendType string
|
type FrontendType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=Success;Error
|
// +kubebuilder:validation:Enum=Success;Error
|
||||||
type StrategyStatus string
|
type StrategyStatus string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=FetchedKey;CouldNotFetchKey
|
// +kubebuilder:validation:Enum=Listening;Pending;Disabled;ErrorDuringSetup;CouldNotFetchKey;CouldNotGetClusterInfo;FetchedKey
|
||||||
type StrategyReason string
|
type StrategyReason string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -111,6 +111,7 @@ spec:
|
|||||||
can use with a strategy.
|
can use with a strategy.
|
||||||
enum:
|
enum:
|
||||||
- TokenCredentialRequestAPI
|
- TokenCredentialRequestAPI
|
||||||
|
- ImpersonationProxy
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
@ -126,8 +127,13 @@ spec:
|
|||||||
reason:
|
reason:
|
||||||
description: Reason for the current status.
|
description: Reason for the current status.
|
||||||
enum:
|
enum:
|
||||||
- FetchedKey
|
- Listening
|
||||||
|
- Pending
|
||||||
|
- Disabled
|
||||||
|
- ErrorDuringSetup
|
||||||
- CouldNotFetchKey
|
- CouldNotFetchKey
|
||||||
|
- CouldNotGetClusterInfo
|
||||||
|
- FetchedKey
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
description: Status of the attempted integration strategy.
|
description: Status of the attempted integration strategy.
|
||||||
@ -139,6 +145,7 @@ spec:
|
|||||||
description: Type of integration attempted.
|
description: Type of integration attempted.
|
||||||
enum:
|
enum:
|
||||||
- KubeClusterSigningCertificate
|
- KubeClusterSigningCertificate
|
||||||
|
- ImpersonationProxy
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- lastUpdateTime
|
- lastUpdateTime
|
||||||
|
@ -5,16 +5,16 @@ package v1alpha1
|
|||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate
|
// +kubebuilder:validation:Enum=KubeClusterSigningCertificate;ImpersonationProxy
|
||||||
type StrategyType string
|
type StrategyType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI
|
// +kubebuilder:validation:Enum=TokenCredentialRequestAPI;ImpersonationProxy
|
||||||
type FrontendType string
|
type FrontendType string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=Success;Error
|
// +kubebuilder:validation:Enum=Success;Error
|
||||||
type StrategyStatus string
|
type StrategyStatus string
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=FetchedKey;CouldNotFetchKey
|
// +kubebuilder:validation:Enum=Listening;Pending;Disabled;ErrorDuringSetup;CouldNotFetchKey;CouldNotGetClusterInfo;FetchedKey
|
||||||
type StrategyReason string
|
type StrategyReason string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
Reference in New Issue
Block a user