watch

package
v0.28.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL