Documentation ¶
Index ¶
- Variables
- func InjectedDynamic() (dynamic.Interface, error)
- func InjectedInterface() (kubernetes.Interface, error)
- func MustSetKubeconfigFromEnv()
- func NewDynamicForKubeconfig(kubeconfig []byte) (dynamic.Interface, error)
- func NewInterfaceForKubeconfig(kubeconfig []byte) (kubernetes.Interface, error)
- func SetSingleNodeTaints(ctx context.Context, ki kubernetes.Interface) error
Constants ¶
This section is empty.
Variables ¶
View Source
var InjectedKubeConfig []byte
Functions ¶
func InjectedDynamic ¶
InjectedDynamic creates a new dynamic.Interface using the injected kubeconfig
func InjectedInterface ¶
func InjectedInterface() (kubernetes.Interface, error)
InjectedInterface creates a new kubernetes.Interface using the injected kubeconfig
func MustSetKubeconfigFromEnv ¶
func MustSetKubeconfigFromEnv()
MustSetKubeconfigFromEnv sets the current kubeconfig from the environment. If the kubeconfig cannot be set, panic.
func NewDynamicForKubeconfig ¶
func NewInterfaceForKubeconfig ¶
func NewInterfaceForKubeconfig(kubeconfig []byte) (kubernetes.Interface, error)
NewInterfaceForKubeconfig creates a kubernetes.Interface given a kubeconfig string
func SetSingleNodeTaints ¶
func SetSingleNodeTaints(ctx context.Context, ki kubernetes.Interface) error
SetSingleNodeTaints will mark control plane nodes for scheduling by removing taints.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.