Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupOperandCredentials ¶
func SetupOperandCredentials( ctx context.Context, client client.Client, upsertProvider upsert.CreateOrUpdateProvider, hcp *hyperv1.HostedControlPlane, secretData map[string][]byte, isManagedAzure bool, ) []error
SetupOperandCredentials ensures that the required Azure operand credential secrets are created or updated for the guest cluster's components (ingress, image registry, disk CSI, file CSI) based on the HostedControlPlane configuration. It determines the correct client IDs for each component, depending on whether the cluster is managed or self-managed, and then reconciles the secrets using the provided upsert provider. The function returns a slice of errors for any failures encountered during reconciliation.
Parameters:
- ctx: The context for the operation.
- client: The Kubernetes client used to interact with the API server.
- upsertProvider: The provider used to create or update secrets.
- hcp: The HostedControlPlane resource containing Azure authentication configuration.
- secretData: The base data to include in each secret.
- isManagedAzure: Indicates whether the cluster is a managed Azure cluster.
Returns:
- []error: A slice of errors encountered during secret reconciliation, or an empty slice if successful.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.