Documentation ¶
Index ¶
- func CreateBootstrapClientFromKubeconfig(kubeconfig []byte) (*certificatesv1beta1client.CertificatesV1beta1Client, *rest.Config, error)
- func DeleteBootstrapAuth(ctx context.Context, c client.Client, csrName, seedName string) error
- func RequestBootstrapKubeconfig(ctx context.Context, logger logrus.FieldLogger, seedClient client.Client, ...) ([]byte, string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBootstrapClientFromKubeconfig ¶ added in v1.10.0
func CreateBootstrapClientFromKubeconfig(kubeconfig []byte) (*certificatesv1beta1client.CertificatesV1beta1Client, *rest.Config, error)
CreateBootstrapClientFromKubeconfig creates a CertificatesV1beta1Client client from a given kubeconfig
func DeleteBootstrapAuth ¶ added in v0.35.0
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 RequestBootstrapKubeconfig ¶ added in v1.10.0
func RequestBootstrapKubeconfig(ctx context.Context, logger logrus.FieldLogger, seedClient client.Client, bootstrapClient certificatesv1beta1client.CertificatesV1beta1Interface, bootstrapConfig *rest.Config, gardenClientConnection *config.GardenClientConnection, seedName, bootstrapTargetCluster string) ([]byte, string, string, error)
RequestBootstrapKubeconfig 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.