utils

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractSecretKeyFromConfigMapBinding added in v0.5.4

func ExtractSecretKeyFromConfigMapBinding(configMap *corev1.ConfigMap) (*crypto.SecretKey, error)

func ExtractSecretKeyFromSecret added in v0.5.4

func ExtractSecretKeyFromSecret(slvSecret *corev1.Secret) (*crypto.SecretKey, error)

func GetClusterInfo

func GetClusterInfo() (name, address, user string, err error)

func GetCurrentNamespace

func GetCurrentNamespace() string

func GetKubeClientConfig

func GetKubeClientConfig() (*rest.Config, error)

func GetPublicKeyFromK8s

func GetPublicKeyFromK8s(namespace string, pq bool) (string, error)

func GetSecretKeyFor added in v0.5.4

func GetSecretKeyFor(clientset *kubernetes.Clientset, namespace string) (secretKey *crypto.SecretKey, err error)

func IsNamespacedMode added in v0.5.4

func IsNamespacedMode() bool

func SecretKey

func SecretKey() (secretKey *crypto.SecretKey, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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