kube_client

package
v0.0.0-...-8ea679a Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalConfig

type GlobalConfig struct {
	NodeSelector map[string]string
	Tolerations  []corev1.Toleration
}
var Config GlobalConfig

type KubeClient

type KubeClient struct {
	Client *kubernetes.Clientset
	Logger *zap.Logger
}

func NewKubeClient

func NewKubeClient() *KubeClient

func (*KubeClient) CreateChaosWithDeployments

func (ctx *KubeClient) CreateChaosWithDeployments(count, replicas, containers int32, namespace string, excludeNamespaces []string, timeInterval int32)

func (*KubeClient) CreateCronJobs

func (ctx *KubeClient) CreateCronJobs(count, containers int32, namespace string, excludeNamespaces []string)

func (*KubeClient) CreateDaemonsets

func (ctx *KubeClient) CreateDaemonsets(count, containers int32, namespace string, excludeNamespaces []string)

func (*KubeClient) CreateDeployments

func (ctx *KubeClient) CreateDeployments(count, replicas, containers int32, namespace string, excludeNamespaces []string)

func (*KubeClient) CreateJobs

func (ctx *KubeClient) CreateJobs(count, containers int32, namespace string, excludeNamespaces []string)

func (*KubeClient) CreateNamespaces

func (ctx *KubeClient) CreateNamespaces(count int32)

func (*KubeClient) CreatePods

func (ctx *KubeClient) CreatePods(count, containers int32, namespace string, excludeNamespaces []string)

func (*KubeClient) CreateReplicaSet

func (ctx *KubeClient) CreateReplicaSet(count, replicas, containers int32, namespace string, excludeNamespaces []string)

func (*KubeClient) CreateReplicationControllers

func (ctx *KubeClient) CreateReplicationControllers(count, replicas, containers int32, namespace string, excludeNamespaces []string)

func (*KubeClient) CreateStatefulsets

func (ctx *KubeClient) CreateStatefulsets(count, containers, replicas int32, namespace string, excludeNamespaces []string)

func (*KubeClient) DeleteCronJobs

func (ctx *KubeClient) DeleteCronJobs(count int32, providedNamespace string, excludeNamespaces []string)

func (*KubeClient) DeleteDaemonsets

func (ctx *KubeClient) DeleteDaemonsets(count int32, providedNamespace string, excludeNamespaces []string)

func (*KubeClient) DeleteDeployments

func (ctx *KubeClient) DeleteDeployments(count int32, providedNamespace string, excludeNamespaces []string)

func (*KubeClient) DeleteJobs

func (ctx *KubeClient) DeleteJobs(count int32, providedNamespace string, excludeNamespaces []string)

func (*KubeClient) DeleteNamespaces

func (ctx *KubeClient) DeleteNamespaces(count int32, excludeNamspaces []string)

func (*KubeClient) DeletePods

func (ctx *KubeClient) DeletePods(count int32, providedNamespace string, excludeNamespaces []string)

func (*KubeClient) DeleteReplicaSets

func (ctx *KubeClient) DeleteReplicaSets(count int32, providedNamespace string, excludeNamespaces []string)

func (*KubeClient) DeleteReplicationControllers

func (ctx *KubeClient) DeleteReplicationControllers(count int32, providedNamespace string, excludeNamespaces []string)

func (*KubeClient) DeleteStatefulSets

func (ctx *KubeClient) DeleteStatefulSets(count int32, providedNamespace string, excludeNamespaces []string)

func (*KubeClient) GetKubeClient

func (ctx *KubeClient) GetKubeClient(kubeConfig string) *kubernetes.Clientset

func (*KubeClient) ListResources

func (ctx *KubeClient) ListResources()

Jump to

Keyboard shortcuts

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