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.