utils

package
v0.0.0-...-63de8b9 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigMap

func CreateConfigMap(clientSet kubernetes.Interface, cmObject *corev1.ConfigMap) error

func CreateJob

func CreateJob(clientSet kubernetes.Interface, jobObject *batchv1.Job) (*batchv1.Job, error)

func CreateSecret

func CreateSecret(clientSet kubernetes.Interface, secretObject *corev1.Secret) error

func DeleteConfigMap

func DeleteConfigMap(clientSet kubernetes.Interface, cmName string) error

func DeleteJob

func DeleteJob(clientSet kubernetes.Interface, name string) error

func DeletePod

func DeletePod(clientSet kubernetes.Interface, name string) error

func DeleteSecret

func DeleteSecret(clientSet kubernetes.Interface, secretName string) error

func GetConfigMap

func GetConfigMap(clientSet kubernetes.Interface, cmName string) (*corev1.ConfigMap, error)

func GetSecret

func GetSecret(clientSet kubernetes.Interface, secretName string) (*corev1.Secret, error)

func KubeClient

func KubeClient(kubeConfig string) (*kubernetes.Clientset, error)

KubeClient from config

func KubeConfig

func KubeConfig(kubeConfig string) (*rest.Config, error)

func ListJob

func ListJob(clientSet kubernetes.Interface, opts metav1.ListOptions) (*batchv1.JobList, error)

func ListPod

func ListPod(clientSet kubernetes.Interface, opts metav1.ListOptions) (*corev1.PodList, error)

func RandomStr

func RandomStr(len int) string

func XwcClient

func XwcClient(kubeConfig string) (*xwcclient.Clientset, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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