Documentation ¶
Index ¶
- func GenerateK8sClientSet(config *rest.Config) (*kubernetes.Clientset, error)
- func GenerateLitmusClientSet(config *rest.Config) (*chaosClient.LitmuschaosV1alpha1Client, error)
- func GetENV(experimentDetails *types.ExperimentDetails, name string)
- func Getenv(key string, defaultValue string) string
- func SetEventAttributes(eventsDetails *types.EventDetails, Reason string, Message string)
- type ClientSets
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 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)
Click to show internal directories.
Click to hide internal directories.