kubeconfig

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SecretField = "value"

Variables

This section is empty.

Functions

func Check

func Check(config *clientcmdapi.Config) error

Check return an error if config is invalid (contains unsupported entries)

func ConfigFromSecret

func ConfigFromSecret(secret *corev1.Secret) (*rest.Config, error)

ConfigFromSecret return a rest.Config from a kubeconfig secret

func ConfigFromSecretName

func ConfigFromSecretName(ctx context.Context, cli ctrlclient.Client, name types.NamespacedName) (*rest.Config, error)

ConfigFromSecretName return a rest.Config from a kubeconfig secret name

func SecretFromRef

func SecretFromRef(ctx context.Context, client ctrlclient.Client, name types.NamespacedName) (*corev1.Secret, error)

SecretFromRef return the referenced Secret

Types

This section is empty.

Jump to

Keyboard shortcuts

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