Documentation
¶
Index ¶
- func CreateNamespaceIfNotExists(client client.Client, namespace string) error
- func GetAllKubernetesNodeIPAddresses(ctx context.Context, cli client.Client) (map[string]string, error)
- func GetClient(restConfig *rest.Config) (client.Client, error)
- func NewResourceLock(namespace, lockName string, restConfig *rest.Config) (resourcelock.Interface, error)
- func RunLeaderElection(ctx context.Context, wg *sync.WaitGroup, lock resourcelock.Interface)
- func WaitForLock(ctx context.Context, namespace string, lockName string, ...) error
- type NamespacedClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllKubernetesNodeIPAddresses ¶
func GetAllKubernetesNodeIPAddresses(ctx context.Context, cli client.Client) (map[string]string, error)
GetAllKubernetesNodeIPAddresses returns a mapping of IPAddress -> node_name
func NewResourceLock ¶
func RunLeaderElection ¶
func WaitForLock ¶
Types ¶
type NamespacedClient ¶
NamespacedClient encapsulates namespacedClient with public namespace and restConfig
func GetClientInNamespace ¶
func GetClientInNamespace(restConfig *rest.Config, namespace string) (NamespacedClient, error)
Click to show internal directories.
Click to hide internal directories.