Documentation ¶
Index ¶
- func ApplyK8sSystemJob(jobYaml, kubeConfigPath string) error
- func CordonUncordon(k8sClient *kubernetes.Clientset, nodeName string, cordoned bool) error
- func DeleteNode(k8sClient *kubernetes.Clientset, nodeName string) error
- func GetConfigMap(k8sClient *kubernetes.Clientset, configMapName string) (*v1.ConfigMap, error)
- func GetNode(k8sClient *kubernetes.Clientset, nodeName string) (*v1.Node, error)
- func GetNodeList(k8sClient *kubernetes.Clientset) (*v1.NodeList, error)
- func GetSecret(k8sClient *kubernetes.Clientset, secretName string) (*v1.Secret, error)
- func IsNodeReady(node v1.Node) bool
- func NewClient(kubeConfigPath string) (*kubernetes.Clientset, error)
- func UpdateConfigMap(k8sClient *kubernetes.Clientset, configYaml []byte, configMapName string) error
- func UpdateSecret(k8sClient *kubernetes.Clientset, fieldName string, secretData []byte, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyK8sSystemJob ¶
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 GetNodeList ¶
func GetNodeList(k8sClient *kubernetes.Clientset) (*v1.NodeList, error)
func IsNodeReady ¶
func UpdateConfigMap ¶
func UpdateConfigMap(k8sClient *kubernetes.Clientset, configYaml []byte, configMapName string) error
func UpdateSecret ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.