Skip to content

UPSTREAM: 5532: Azure Stack Fork #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 5, 2025

Conversation

patrickdillon
Copy link

Creates a fork for upstream azurestack support.

Pull Request: kubernetes-sigs#5532
Issue: kubernetes-sigs#5201

Once that PR is merged, we can remove this fork and just use upstream.

Adds AzureStack as a valid cloud environment. The value
"HybridEnvironment" is the value provided by the Azure autorest
package. It would be possible to have a different user-facing
value, such as AzureStackCloud, but internally within the code
it is necessary to check for the value "HybridEnvironment"
returned by autorest. This commit opts to use a single value,
rather than separate user-facing and internal values.
Adds the ARMEndpoint field for specifying the ARM Resource Manager
Endpoint for use with Azure Stack deployments. The endpoint is
used to configure the environment as well as manage resources.
Uses ARMEndpoint from Cluster scope to configure Azure Stack settings
for Azure Client and Authorizer, which will be used to configure
ARM options for the V2 SDK.
Sets ARM Client Options when using the Azure Stack environment. Extends
ARMClientOptions to accept an ARMEndpoint, which can be obtained from
the authorizer interface, the same source the cloud environment.

Sets the APIVersion to a hybrid cloud profile to ensure compatibility
with hybrid environments.
Azure Stack Hub does not support private dns zones, so skip them.
The Resource SKU API for availability sets may not be available in
an Azure Stack environment. The cache is used to determine the
fault domain count. For Azure Stack, we can default to 2. Future
work could potentially set this programatically or expose the
fault domain count in the API.
The tag service using the V2 SDK is not available in azure stack.
Skip tag reconciliation in Azure Stack environments.
The standard 2020-06-01 API Version is not supported for disk
operations in Azure Stack, so change to the compatible 2018-06-01
profile.
Azure Stack returns a 400 error when trying to delete a VM with
the force flag and the error message suggests retrying without
the flag.
@openshift-ci openshift-ci bot requested a review from enxebre April 5, 2025 11:56
@patrickdillon patrickdillon merged commit 366c18d into openshift:main Apr 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant