-
Notifications
You must be signed in to change notification settings - Fork 74
[release-4.15] OCPBUGS-26210: Adds CloudConfigTransformer for Azure #319
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
[release-4.15] OCPBUGS-26210: Adds CloudConfigTransformer for Azure #319
Conversation
|
@theobarberbany: This pull request references Jira Issue OCPBUGS-26210, which is valid. 6 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
This adds a CloudConfigTransformer for Azure that will set the VMType to 'standard' if unset. See openshift#291, OCPBUGS-25483 and OCPBUGS-20213 for more information.
This change adds the functionality from the cluster-config-operator
azure CloudConfigTransformer.
The functionality we bring over is:
1. Ensure that the Cloud is set in the cloud.conf
i. If it is set, verify that it is valid and does not conflict with the
infrastructure config. If it conflicts, we want to error
ii. If it is not set, default to public cloud (configv1.AzurePublicCloud)
2. Verify the cloud name set in the infra config is valid, if it is not
bail with an informative error
See openshift/cluster-config-operator#133 for
the PR that initially added this functionality.
Adds tests for the vmType transformations.
This change stops the tests from segfaulting, as the new config transformer for Azure expects a PlatformStatus to be set.
This changes the tests to work with valid JSON as it is now a requirement of the azure transformer.
This adds the tests from the CCO: https://github.com/openshift/cluster-config-operator/blob/master/pkg/operator/kube_cloud_config/azure_test.go which is where we have pulled the new functionality from.
`map[T]struct{}` is more efficient than `map[T]bool`
This ensures that the list validAzureCloudNameValues is in a stable order, making testing a lot more straight forward
This change uses the sort package, rather than the slices one that does not exist in go 1.20.
80868f0 to
02326aa
Compare
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoelSpeed The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Setting |
|
@theobarberbany: Jira Issue OCPBUGS-26210: Some pull requests linked via external trackers have merged: The following pull requests linked via external trackers have not merged: These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-26210 has not been moved to the MODIFIED state. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@theobarberbany: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
[ART PR BUILD NOTIFIER] This PR has been included in build ose-cluster-cloud-controller-manager-operator-container-v4.15.0-202401051651.p0.ga280063.assembly.stream for distgit ose-cluster-cloud-controller-manager-operator. |
|
/cherry-pick release-4.14 |
|
@sdodson: #319 failed to apply on top of branch "release-4.14": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/jira cherrypick OCPBUGS-26210 |
|
@theobarberbany: Jira Issue OCPBUGS-26210 has been cloned as Jira Issue OCPBUGS-26548. Will retitle bug to link to clone. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@theobarberbany: Jira Issue OCPBUGS-26548: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-26548 has been moved to the MODIFIED state. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/retitle [release-4.15] OCPBUGS-26210: Adds CloudConfigTransformer for Azure |
|
@theobarberbany: Jira Issue OCPBUGS-26210 is in an unrecognized state (Verified) and will not be moved to the MODIFIED state. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
No description provided.