Open
Description
/kind bug
What steps did you take and what happened:
The AzureManagedControlPlane supports the following parameter:
spec:
azureEnvironment: AzureUSGovernmentCloud
The createSecretFromClusterIdentity function doesn't set azureResourceManagerEndpoint and any other cloud specific variables.
The ASO controller fails with:
The subscription '***' could not be found.: PUT https://management.azure.com/subscriptions/***/resourceGroups/***
What did you expect to happen:
CAPZ to also add to the *-aso-secret
the values specific to what spec.azureEnvironment
on the AzureManagedControlPlane
resource points to.
Anything else you would like to add:
Environment:
- cluster-api-provider-azure version: v1.11.1
- Kubernetes version: (use
kubectl version
): v1.27.3 - OS (e.g. from
/etc/os-release
): AKSUbuntu-2004gen2fipscontainerd-202309.06.0
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Blocked