azure

package
v0.1.73 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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