bootstrap

package
v1.89.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

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,
	seedClient client.Client,
	bootstrapClientSet kubernetes.Interface,
	kubeconfigKey, bootstrapKubeconfigKey client.ObjectKey,
	seedName string,
	validityDuration *metav1.Duration,
) (
	[]byte,
	string,
	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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL