Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKubeClientSet ¶
func CreateKubeClientSet(kubeConfig string) (*kubernetes.Clientset, error)
CreateKubeClientSet - Returns kubeClient set
func LeaderElection ¶
func LeaderElection(clientSet *kubernetes.Clientset, lockName string, namespace string, runFunc func(ctx context.Context))
LeaderElection ...
Types ¶
type K8sUtils ¶ added in v2.11.0
type K8sUtils struct {
KubernetesClient *KubernetesClient
}
K8sUtils stores the configuration of the k8s client, k8s client and the informer
func (*K8sUtils) GetNodeIPs ¶ added in v2.11.0
GetNodeIPs returns cluster IP of the node object
type KubernetesClient ¶ added in v2.11.0
type KubernetesClient struct {
ClientSet *kubernetes.Clientset
}
KubernetesClient - client connection
Click to show internal directories.
Click to hide internal directories.