kubectl

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package kubectl provides functions to interact with the kubectl binary

Index

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.

Jump to

Keyboard shortcuts

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