You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,28 +13,48 @@ type ManagedControlPlaneV2Spec struct {
11
13
IAMIAMConfig`json:"iam"`
12
14
}
13
15
14
-
typeManagedControlPlaneV2Statusstruct {
15
-
commonapi.Status`json:",inline"`
16
+
typeIAMConfigstruct {
17
+
// Tokens is a list of token-based access configurations.
18
+
// +optional
19
+
Tokens []TokenConfig`json:"tokens,omitempty"`
20
+
// OIDC is the OIDC-based access configuration.
21
+
OIDC*OIDCConfig`json:"oidc,omitempty"`
22
+
}
16
23
17
-
// Access is a mapping from OIDC provider names to secret references.
18
-
// Each referenced secret is expected to contain a 'kubeconfig' key with the kubeconfig that was generated for the respective OIDC provider for the ManagedControlPlaneV2.
19
-
// The default OIDC provider, if configured, uses the name "default" in this mapping.
20
-
// The "default" key is also used if the ClusterProvider does not support OIDC-based access and created a serviceaccount with a token instead.
24
+
typeOIDCConfigstruct {
25
+
// DefaultProvider is the standard OIDC provider that is enabled for all ManagedControlPlaneV2 resources.
// OIDCProviders is a list of OIDC providers that should be configured for the ManagedControlPlaneV2.
33
-
// They are independent of the standard OIDC provider and in addition to it, unless it has been disabled by not specifying any role bindings.
41
+
typeTokenConfigstruct {
42
+
// Name is the name of this token configuration.
43
+
// It is used to generate a secret name and must be unique among all token configurations in the same ManagedControlPlaneV2.
44
+
// +kubebuilder:validation:minLength=1
45
+
Namestring`json:"name"`
46
+
clustersv1alpha1.TokenConfig`json:",inline"`
47
+
}
48
+
49
+
typeManagedControlPlaneV2Statusstruct {
50
+
commonapi.Status`json:",inline"`
51
+
52
+
// Access is a mapping from OIDC provider names to secret references.
53
+
// Each referenced secret is expected to contain a 'kubeconfig' key with the kubeconfig that was generated for the respective OIDC provider for the ManagedControlPlaneV2.
54
+
// The default OIDC provider, if configured, uses the name "default" in this mapping.
55
+
// The "default" key is also used if the ClusterProvider does not support OIDC-based access and created a serviceaccount with a token instead.
0 commit comments