creation

package
v0.0.0-...-bdd5ccd Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const RevocationDesiresControllerName = "SystemAdminCredentialRevocationDesires"

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

Variables

This section is empty.

Functions

func NewRevocationDesiresController

func NewRevocationDesiresController(
	resourcesDBClient corecosmosstorage.ResourcesDBClient,
	kubeApplierDBClients kubeappliercosmosstorage.KubeApplierDBClients,
	backendInformers coreinformers.BackendInformers,
	kubeApplierInformers *unionkubeapplierinformers.UnionKubeApplierInformers,
	applyDesireLister dblisters.ApplyDesireLister,
	readDesireLister dblisters.ReadDesireLister,
) controllerutils.Controller

NewRevocationDesiresController returns a RevocationWatchingController that manages the CertificateRevocationRequest (CRR) desires used to revoke a cluster's already-issued certificates. It creates the CRR ApplyDesire and CRR ReadDesire so the hosted cluster can process the revocation. Observing the CRR for confirmation and marking the revocation complete is handled by the separate revocation-completion controller.

func NewRevocationMarkRequestsController

func NewRevocationMarkRequestsController(
	clock utilsclock.PassiveClock,
	resourcesDBClient corecosmosstorage.ResourcesDBClient,
	backendInformers coreinformers.BackendInformers,
) controllerutils.Controller

NewRevocationMarkRequestsController returns a RevocationWatchingController that performs the first step of a revocation: it does a live list of every SystemAdminCredentialRequest for the cluster and marks each one with a DeletionTimestamp so the per-credential deletion controller tears it down. Once every credential request is marked, it sets CredentialsMarkedForDeletion=True on the revocation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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