Documentation ¶
Index ¶
- func DynamicClientSet(config *rest.Config) (dynamic.Interface, error)
- func GenerateK8sClientSet(config *rest.Config) (*kubernetes.Clientset, error)
- func GenerateLitmusClientSet(config *rest.Config) (*chaosClient.LitmuschaosV1alpha1Client, error)
- func GetENV(experimentDetails *types.ExperimentDetails, expName, engineName string)
- func Getenv(key string, defaultValue string) string
- type ClientSets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DynamicClientSet ¶
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(experimentDetails *types.ExperimentDetails, expName, engineName string)
GetENV fetches all the env variables from the runner pod
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
Click to show internal directories.
Click to hide internal directories.