revisioncontroller

package
v0.0.0-...-7b234b4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 18 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRevisionController

func NewRevisionController(
	instanceName string,
	targetNamespace string,
	configMaps []RevisionResource,
	secrets []RevisionResource,
	kubeInformersForTargetNamespace informers.SharedInformerFactory,
	operatorClient v1helpers.OperatorClient,
	configMapGetter corev1client.ConfigMapsGetter,
	secretGetter corev1client.SecretsGetter,
	eventRecorder events.Recorder,
	revisionPrecondition PreconditionFunc,
) factory.Controller

NewRevisionController create a new revision controller.

Types

type PreconditionFunc

type PreconditionFunc func(ctx context.Context) (bool, error)

PreconditionFunc checks if revision precondition is met (is true) and then proceeeds with the creation of new revision

type RevisionController

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

RevisionController monitors configmaps and secrets, comparing them against their revision snapshots. When these resources change, it increments the revision counter, updates the LatestAvailableRevision field in the operator config, and creates new revision-suffixed snapshots.

type RevisionResource

type RevisionResource struct {
	Name     string
	Optional bool
}

Jump to

Keyboard shortcuts

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