kubernetesdiscovery

package
v0.20.7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerRestartDetector

type ContainerRestartDetector struct{}

func NewContainerRestartDetector

func NewContainerRestartDetector() *ContainerRestartDetector

func (*ContainerRestartDetector) Detect

type Dispatcher

type Dispatcher interface {
	Dispatch(action store.Action)
}

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(kCli k8s.Client, ownerFetcher k8s.OwnerFetcher, restartDetector *ContainerRestartDetector,
	st store.RStore) *Reconciler

func (*Reconciler) ExtraSelectors

func (w *Reconciler) ExtraSelectors(key types.NamespacedName) []labels.Selector

ExtraSelectors returns the extra selectors for a given KubernetesDiscovery object.

This is intended for use in tests.

func (*Reconciler) HasNamespaceWatch

func (w *Reconciler) HasNamespaceWatch(key types.NamespacedName, ns k8s.Namespace) bool

HasNamespaceWatch returns true if the key is a watcher for the given namespace.

This is intended for use in tests.

func (*Reconciler) HasUIDWatch

func (w *Reconciler) HasUIDWatch(key types.NamespacedName, uid types.UID) bool

HasUIDWatch returns true if the key is a watcher for the given K8s UID.

This is intended for use in tests.

func (*Reconciler) Reconcile

func (w *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile manages namespace watches for the modified KubernetesDiscovery object.

func (*Reconciler) SetClient

func (w *Reconciler) SetClient(client ctrlclient.Client)

func (*Reconciler) SetupWithManager

func (w *Reconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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