Skip to content

CAPZ with ASO doesn't work for AzureUSGovernment #4113

Open
@ionutleca

Description

@ionutleca

/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

No one assigned

    Labels

    area/managedclustersIssues related to managed AKS clusters created through the CAPZ ManagedCluster Typekind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.size/XLDenotes a PR that changes 500-999 lines, ignoring generated files.

    Type

    No type

    Projects

    Status

    Blocked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions