creation

package
v0.0.0-...-28a1ae5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DesiresCreatorControllerName = "SystemAdminCredentialDesiresCreator"

DesiresCreatorControllerName is the controller name, recorded on every desire this controller authors via kubeapplierapi.TagControllerName.

Variables

This section is empty.

Functions

func NewDesiresCreatorController

func NewDesiresCreatorController(
	resourcesDBClient corecosmosstorage.ResourcesDBClient,
	kubeApplierDBClients kubeappliercosmosstorage.KubeApplierDBClients,
	backendInformers coreinformers.BackendInformers,
	kubeApplierInformers *unionkubeapplierinformers.UnionKubeApplierInformers,
) controllerutils.Controller

NewDesiresCreatorController returns a CredentialRequestWatchingController that creates the per-credential ApplyDesires (CSR, CSRApproval) and ReadDesire (CSR) for individual SystemAdminCredentialRequest documents that are pending.

The controller also fires on ReadDesire changes and consults the ApplyDesire / ReadDesire listers before writing so it skips the create entirely when a desire already exists with the desired content.

func NewIssuanceObserverController

func NewIssuanceObserverController(
	clock utilsclock.PassiveClock,
	resourcesDBClient corecosmosstorage.ResourcesDBClient,
	backendInformers coreinformers.BackendInformers,
	kubeApplierInformers *unionkubeapplierinformers.UnionKubeApplierInformers,
	readDesireLister dblisters.ReadDesireLister,
) controllerutils.Controller

NewIssuanceObserverController returns a CredentialRequestWatchingController that observes the mirrored CSR from the ReadDesire and transitions individual SystemAdminCredentialRequest documents from Pending → Issued (or Failed).

Types

This section is empty.

Jump to

Keyboard shortcuts

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