label

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APISet func() v1.CoreV1Interface

APISet alias to connection k8s

View Source
var Kubeconfig *string

Kubeconfig flag of path to kube config

Functions

func APICore

func APICore() (api v1.CoreV1Interface)

APICore connect to k8s

func PatchNodeLabel

func PatchNodeLabel(s, node string) (bool, error)

PatchNodeLabel add label to node-role.kubernetes.io/$STRING=true

func RunLabel

func RunLabel(c *cmd.Command)

RunLabel function to updated k8s object

func RunTimerLabel

func RunTimerLabel(c *cmd.Command)

RunTimerLabel is staring RunLabel() with timer

Types

This section is empty.

Jump to

Keyboard shortcuts

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