k8sutils

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplySecret

func ApplySecret(cs *kubernetes.Clientset, name string, namespace string, secret Secret) (*corev1.Secret, error)

func DeleteSecret

func DeleteSecret(cs *kubernetes.Clientset, name string, namespace string) error

func GetClientSet

func GetClientSet() (*kubernetes.Clientset, error)

func GetDeployments

func GetDeployments(cs *kubernetes.Clientset, namespace string) (*appsv1.DeploymentList, error)

func GetPods

func GetPods(cs *kubernetes.Clientset, namespace string) (*corev1.PodList, error)

func GetSecret

func GetSecret(cs *kubernetes.Clientset, name string, namespace string) (*corev1.Secret, error)

func GetSecrets

func GetSecrets(cs *kubernetes.Clientset, namespace string) (*corev1.SecretList, error)

func UpdateSecret

func UpdateSecret(cs *kubernetes.Clientset, name string, namespace string, secret Secret) (*corev1.Secret, error)

Types

type Secret

type Secret map[string][]byte

Jump to

Keyboard shortcuts

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