-
Notifications
You must be signed in to change notification settings - Fork 74
[release-4.15] OCPBUGS-26210: Adds CloudConfigTransformer for Azure #317
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
Conversation
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
|
@openshift-cherrypick-robot: Jira Issue OCPBUGS-25483 has been cloned as Jira Issue OCPBUGS-26210. 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. |
|
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-26210, which is invalid:
Comment 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/jira refresh |
|
@sdodson: This pull request references Jira Issue OCPBUGS-26210, which is valid. The bug has been moved to the POST state. 6 validation(s) were run on this bug
Requesting review from QA contact: 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. |
|
/test unit |
|
/retest-required |
|
@openshift-cherrypick-robot: The following tests 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. |
|
/close |
|
@sdodson: Closed this PR. 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. |
|
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-26210. The bug has been updated to no longer 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 is an automated cherry-pick of #316
/assign sdodson