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 cluster lifecycle API fields to readOnly #3380

Merged
merged 5 commits into from
Feb 8, 2024

Conversation

tsatam
Copy link
Collaborator

@tsatam tsatam commented Feb 5, 2024

Which issue this PR addresses:

Fixes ARO-4745

What this PR does / why we need it:

This PR sets a handful of fields in the API's OpenShiftCluster to be read only because they don't change once set. Changing the values in these fields would create unexpected functionality for the RP.

Fields changed to read-only:

  • .properties.consoleProfile.url
  • .properties.apiserverProfile.url
  • .properties.apiserverProfile.ip
  • .properties.ingressProfiles[*].ip
  • .systemData

This PR differs from #3369 in that we set the entire systemData top level property on the resource to read-only. This will prevent any modifications to all fields on this subresource by clients performing any PUT/POST operations.

Test plan for issue:

  • Existing unit tests and E2E continue to pass
  • Static validation tests have been updated to account for these fields becoming read only

Is there any documentation that needs to be updated for this PR?

No

Additional notes

  • This PR seeks to solve the same problem as ARO-4745: Update cluster lifecycle API fields to readOnly #3369. Only one of these PRs should be merged.
  • This PR updates our license hack script to exclude the aaz network client bundled with our Python extension. This code is mirrored/vendored from the Azure CLI and comes with its own license.

@tsatam tsatam marked this pull request as ready for review February 6, 2024 21:10
@tsatam tsatam changed the title Update cluster lifecycle API fields to readOnly (different approach) Update cluster lifecycle API fields to readOnly Feb 6, 2024
@tsatam tsatam added loki ready-for-review priority-high High priority issue or pull request labels Feb 6, 2024
@tsatam tsatam added release-blocker next-release To be included in the next RP release rollout labels Feb 7, 2024
Copy link
Contributor

@Shivkumar13 Shivkumar13 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@tony-schndr tony-schndr left a comment

Choose a reason for hiding this comment

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

LGTM

@SudoBrendan SudoBrendan merged commit 9eb8db1 into Azure:master Feb 8, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
loki next-release To be included in the next RP release rollout next-up priority-high High priority issue or pull request ready-for-review release-blocker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants