Documentation
¶
Index ¶
Constants ¶
View Source
const ( // SeedCSRPrefix defines the prefix of seed CSR created by gardenlet. SeedCSRPrefix = "seed-csr-" // ShootCSRPrefix defines the prefix of autonomous shoot CSR created by gardenlet. ShootCSRPrefix = "shoot-csr-" )
Variables ¶
This section is empty.
Functions ¶
func DeleteBootstrapAuth ¶ added in v0.35.0
func DeleteBootstrapAuth(ctx context.Context, reader client.Reader, writer client.Writer, csrName string) error
DeleteBootstrapAuth checks which authentication mechanism was used to request a certificate (either a bootstrap token or a service account token was used). If the latter is true then it also deletes the corresponding ClusterRoleBinding.
func RequestKubeconfigWithBootstrapClient ¶ added in v1.55.0
func RequestKubeconfigWithBootstrapClient( ctx context.Context, log logr.Logger, runtimeClient client.Client, bootstrapClientSet kubernetes.Interface, kubeconfigKey, bootstrapKubeconfigKey client.ObjectKey, seedConfig *gardenletconfigv1alpha1.SeedConfig, autonomousShootMeta *types.NamespacedName, validityDuration *metav1.Duration, ) ( []byte, string, error, )
RequestKubeconfigWithBootstrapClient creates a kubeconfig with a signed certificate using the given bootstrap client returns the kubeconfig []byte representation, the CSR name, the seed name or an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.