Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterWatcher ¶
func NewClusterWatcher(ctx context.Context, options manager.Options, watchNamespaces []string) *clusterWatcher
NewClusterWatcher returns a *clusterWatcher, which watches for changes to kubeconfig secrets (which contain kubeconfigs for remote clusters). When ctx is cancelled, all cluster managers started by the clusterWatcher are stopped. Provided manager.Options are applied to all managers started by the clusterWatcher. If watchNamespaces is not empty, only secrets in the given namespaces will be watched. If empty, secrets in all namespaces will be watched.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.