Documentation
¶
Index ¶
- Constants
- func Check(config *clientcmdapi.Config) error
- func ConfigFromSecret(secret *corev1.Secret) (*rest.Config, error)
- func ConfigFromSecretName(ctx context.Context, client ctrlclient.Client, name types.NamespacedName) (*rest.Config, error)
- func SecretFromRef(ctx context.Context, client ctrlclient.Client, name types.NamespacedName) (*corev1.Secret, error)
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 ¶
ConfigFromSecret return a rest.Config from a kubeconfig secret
func ConfigFromSecretName ¶
func ConfigFromSecretName(ctx context.Context, client 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.
Click to show internal directories.
Click to hide internal directories.