tokenrequest

package
v1.73.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGenericTokenKubeconfig

func GenerateGenericTokenKubeconfig(ctx context.Context, secretsManager secretsmanager.Interface, namespace, kubeAPIServerAddress string) (*corev1.Secret, error)

GenerateGenericTokenKubeconfig generates a generic token kubeconfig in the given namespace for the given kube-apiserver address

func IsTokenPopulated

func IsTokenPopulated(secret *corev1.Secret) (bool, error)

IsTokenPopulated checks if a `kubeconfig` secret already contains a token.

func RenewAccessSecrets

func RenewAccessSecrets(ctx context.Context, c client.Client, namespace string) error

RenewAccessSecrets drops the serviceaccount.resources.gardener.cloud/token-renew-timestamp annotation from all access secrets. This will make the TokenRequestor controller part of gardener-resource-manager issuing new tokens immediately.

Types

This section is empty.

Jump to

Keyboard shortcuts

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