k8s

package
v0.0.2-dev Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyK8sSystemJob

func ApplyK8sSystemJob(jobYaml, kubeConfigPath string) error

func CordonUncordon

func CordonUncordon(k8sClient *kubernetes.Clientset, nodeName string, cordoned bool) error

func DeleteNode

func DeleteNode(k8sClient *kubernetes.Clientset, nodeName string) error

func GetConfigMap

func GetConfigMap(k8sClient *kubernetes.Clientset, configMapName string) (*v1.ConfigMap, error)

func GetNodeList

func GetNodeList(k8sClient *kubernetes.Clientset) (*v1.NodeList, error)

func GetSecret

func GetSecret(k8sClient *kubernetes.Clientset, secretName string) (*v1.Secret, error)

func IsNodeReady

func IsNodeReady(node v1.Node) bool

func NewClient

func NewClient(kubeConfigPath string) (*kubernetes.Clientset, error)

func UpdateConfigMap

func UpdateConfigMap(k8sClient *kubernetes.Clientset, configYaml []byte, configMapName string) error

func UpdateSecret

func UpdateSecret(k8sClient *kubernetes.Clientset, fieldName string, secretData []byte, secretName string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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