Skip to content
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

Update azure compute api version #681

Merged
merged 2 commits into from
Mar 31, 2023

Conversation

klakin-pivotal
Copy link
Contributor

Checklist:

Please check each of the boxes below for which you have completed the corresponding task:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • All unit tests pass locally (after my changes)
  • Rubocop reports zero offenses (after my changes)

Changelog

  • Bugfix: Updates Compute API version for China, US Government, and Germany regions to fix API compatibility issue introduced in v42.0.0

PR Notes

See the commit messages for more information about this PR.

klakin-pivotal and others added 2 commits March 30, 2023 14:59
This commit:
* Should make the CPI work correctly in the China, German, and US
  Government regions.
* Moves the API versions out to a common place to avoid future regional
  API version mismatch.
* Updates documentation in comments to point to now-currently-used API
  versions.
* Removes documentation in comments that didn't seem to point to
  anything relevant.

A previous commit updated the Compute API version for the "Generic"
region to account for changes made in a merge PR. However, the API
version was not updated in the other regions. This caused failures for a
customer operating in the China region, and will likely cause failures
in the US Government and German regions.

To avoid this problem in the future, we've moved out the duplicated data
into a single place.

Signed-off-by: Aram Price <pricear@vmware.com>
This commit moves the Azure Stack block of configuration to the bottom
of the hash so that the code is a bit easier to think about.

Signed-off-by: Kenneth Lakin <klakin@vmware.com>
Copy link
Member

@lnguyen lnguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@klakin-pivotal klakin-pivotal merged commit b7affc9 into master Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants