environment

package
v0.0.0-...-d8cbeaf Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DynamicClientSet

func DynamicClientSet(config *rest.Config) (dynamic.Interface, error)

DynamicClientSet will generate a DynamicClient

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(testDetails *types.TestDetails, expName, engineName 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

Types

type ClientSets

type ClientSets struct {
	KubeClient    *kubernetes.Clientset
	LitmusClient  *chaosClient.LitmuschaosV1alpha1Client
	KubeConfig    *rest.Config
	DynamicClient dynamic.Interface
}

ClientSets is a collection of clientSets and kubeConfig needed

func (*ClientSets) GenerateClientSetFromKubeConfig

func (clientSets *ClientSets) GenerateClientSetFromKubeConfig() error

GenerateClientSetFromKubeConfig will generation both ClientSets (k8s, and Litmus) as well as the KubeConfig

Jump to

Keyboard shortcuts

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