kubernetes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler[T client.Object] struct {
	Config        *v1alpha1.KubernetesObjectConfig
	Ctx           context.Context
	Cancel        context.CancelFunc
	Client        client.Client
	Mgr           ctrl.Manager
	CtrlClientSet typedcorev1.CoreV1Interface
	EventChan     chan events.SecretRotationEvent
	Logger        logr.Logger
	VersionMap    sync.Map // map[types.NamespacedName]string
	Obj           T
	Name          string
}

Handler creates a kubernetes Secret watch on a given cluster and sends event on any operation propagated to the watch (create, update, delete).

func (*Handler[T]) Start

func (h *Handler[T]) Start() error

Start initiates the Kubernetes Secret listener.

func (*Handler[T]) Stop

func (h *Handler[T]) Stop() error

Stop stops the Watch by closing the stop channel.

Jump to

Keyboard shortcuts

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