controller

package
v0.3.23 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelKeyName            = "clustersecrets.core.cs.sap.com/name"
	AnnotationKeyGeneration = "clustersecrets.core.cs.sap.com/generation"
)
View Source
const (
	ControllerName = "clustersecret-operator.cs.sap.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(ctx context.Context, kubeclient kubernetes.Interface, coreclient coreclients.Interface, synchronizer Synchronizer) *Controller

func (*Controller) Start

func (c *Controller) Start()

this method should not be called more than once on the same receiver; todo: safeguard with some lock

func (*Controller) Wait

func (c *Controller) Wait()

type Recorder

type Recorder interface {
	RecordCreation(runtime.Object)
	RecordUpdate(runtime.Object, runtime.Object)
	RecordDeletion(runtime.Object)
}

type Synchronizer

type Synchronizer interface {
	Init(map[schema.GroupVersionKind]cache.SharedIndexInformer)
	WaitUntilSynced()
}

Jump to

Keyboard shortcuts

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