operations

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDispatchRequestCredentialController

func NewDispatchRequestCredentialController(
	clock utilsclock.PassiveClock,
	resourcesDBClient corecosmosstorage.ResourcesDBClient,
	clusterLister corelisters.ClusterLister,
	activeOperationInformer cache.SharedIndexInformer,
) controllerutils.Controller

NewDispatchRequestCredentialController returns a Controller that creates a SystemAdminCredential Cosmos document when a RequestCredential operation is first dispatched. It generates the RSA keypair in-process, writes the credential document, and stamps SystemAdminCredentialRequest.SystemAdminCredentialRequestResourceID so downstream controllers can find it.

Operation documents relevant to this controller will have the following values:

ResourceType: Microsoft.RedHatOpenShift/hcpOpenShiftClusters
     Request: OperationRequestSystemAdminCredentialRequest ("RequestCredential")
      Status: Accepted
  SystemAdminCredentialRequest.SystemAdminCredentialRequestResourceID: nil

func NewOperationRequestCredentialPollController

func NewOperationRequestCredentialPollController(
	clock utilsclock.PassiveClock,
	resourcesDBClient corecosmosstorage.ResourcesDBClient,
	notificationClient *http.Client,
	activeOperationInformer cache.SharedIndexInformer,
) controllerutils.Controller

NewOperationRequestCredentialPollController returns a Controller that maps the SystemAdminCredentialRequest's conditions to ARM provisioning state. It replaces the old cluster-service-based OperationRequestCredentialController.

Operation documents relevant to this controller will have the following values:

ResourceType: Microsoft.RedHatOpenShift/hcpOpenShiftClusters
     Request: OperationRequestSystemAdminCredentialRequest ("RequestCredential")
      Status: any non-terminal value
  SystemAdminCredentialRequest.SystemAdminCredentialRequestResourceID: set

Types

This section is empty.

Jump to

Keyboard shortcuts

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