environment

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateK8sClientSet

func GenerateK8sClientSet(config *rest.Config) (*kubernetes.Clientset, error)

GenerateK8sClientSet will generation k8s client

func GenerateLitmusClientSet

func GenerateLitmusClientSet(config *rest.Config) (*chaosClient.LitmuschaosV1alpha1Client, error)

GenerateLitmusClientSet will generate a LitmusClient

func GetENV

func GetENV(experimentDetails *types.ExperimentDetails, name string)

GetENV fetches all the env variables from the runner pod

func Getenv

func Getenv(key string, defaultValue string) string

Getenv fetch the env and set the default value, if any

func SetEventAttributes

func SetEventAttributes(eventsDetails *types.EventDetails, Reason string, Message string)

SetEventAttributes initialise all the chaos result ENV

Types

type ClientSets

type ClientSets struct {
	KubeClient   *kubernetes.Clientset
	LitmusClient *chaosClient.LitmuschaosV1alpha1Client
}

ClientSets is a collection of clientSets needed

func (*ClientSets) GenerateClientSetFromKubeConfig

func (clientSets *ClientSets) GenerateClientSetFromKubeConfig() error

GenerateClientSetFromKubeConfig will generation both ClientSets (k8s, and Litmus)

Jump to

Keyboard shortcuts

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