Documentation ¶
Overview ¶
Package kubectl provides functions to interact with the kubectl binary
Index ¶
- func Apply(resourceConfig []byte, kubeConfig *kubeconfig.KubeConfig) error
- func Create(resourceConfig []byte, kubeConfig *kubeconfig.KubeConfig) error
- func CreateNameSpace(namespace string, kubeConfig *kubeconfig.KubeConfig) error
- func CreatePrometheusStack(kubecfg *kubeconfig.KubeConfig)
- func CreateWithNamespace(resourceConfig []byte, kubeConfig *kubeconfig.KubeConfig, namespace string) error
- func Delete(resourceConfig []byte, kubeConfig *kubeconfig.KubeConfig) error
- func ExecuteWithNamespace(command string, resourceConfig []byte, kubeConfig *kubeconfig.KubeConfig, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(resourceConfig []byte, kubeConfig *kubeconfig.KubeConfig) error
Apply calls `kubectl apply` with the given resourceConfig When this config is empty, it will not be called
func Create ¶
func Create(resourceConfig []byte, kubeConfig *kubeconfig.KubeConfig) error
Create calls `kubectl create` with the given resourceConfig When this config is empty, it will not be called
func CreateNameSpace ¶
func CreateNameSpace(namespace string, kubeConfig *kubeconfig.KubeConfig) error
CreateNameSpace creates a namespace on the cluster
func CreatePrometheusStack ¶
func CreatePrometheusStack(kubecfg *kubeconfig.KubeConfig)
CreatePrometheusStack attempts to create the prometheus operator in the kubernetes cluster
func CreateWithNamespace ¶
func CreateWithNamespace(resourceConfig []byte, kubeConfig *kubeconfig.KubeConfig, namespace string) error
CreateWithNamespace calls Create but with a namespace set
func Delete ¶
func Delete(resourceConfig []byte, kubeConfig *kubeconfig.KubeConfig) error
Delete calls `kubectl delete` with the given resourceConfig When this config is empty, it will not be called
func ExecuteWithNamespace ¶
func ExecuteWithNamespace(command string, resourceConfig []byte, kubeConfig *kubeconfig.KubeConfig, namespace string) error
ExecuteWithNamespace calls `kubectl <command>` with the given resourceConfig in the given namespace When this config is empty, it will not be called
Types ¶
This section is empty.