Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateK8sClient ¶
func CreateK8sClient( kubeconfig *string, ) (kubernetes.Interface, error)
CreateK8sClient creates a kubernetes client based on a config passed to it. If a kube config is not passed to the function, we assume we are inside a cluster and try to construct an in cluster configuration TODO: we can test this, but it is really troublesome because it takes a lot of closures and mocking to do for little gain. The TODO is to actually test it though
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.