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 InitializeSpec to use enumeration conversions and maintain letter case #4109

Merged
merged 4 commits into from
Jun 19, 2024

Conversation

theunrepentantgeek
Copy link
Member

What this PR does / why we need it:

The case-correcting conversions previously introduced weren't being used for the Status->Spec conversion required by asoctl, resulting in the generated YAML files containing the incorrect values (which is an issue given Kubernetes validation is case-strict, not case-forgiving).

We update the property conversions to handle the new case and regenerate the api files.

Special notes for your reviewer:

Closes #3805

How does this PR make you feel:
gif

If applicable:

  • this PR contains tests

Copy link
Member

@matthchr matthchr left a comment

Choose a reason for hiding this comment

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

Possibly related to #3399 but should we make a note someplace to add some tests for the import functionality so we can catch that we missed this in the future?

(I think that's what was missing for us to notice this?)

@theunrepentantgeek theunrepentantgeek added this pull request to the merge queue Jun 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 18, 2024
@theunrepentantgeek theunrepentantgeek added this pull request to the merge queue Jun 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 19, 2024
@matthchr matthchr added this pull request to the merge queue Jun 19, 2024
Merged via the queue into main with commit 21de771 Jun 19, 2024
7 checks passed
@matthchr matthchr deleted the fix/spec-enumerations branch June 19, 2024 16:20
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.

Bug: asoctl import-ing a ManagedCluster produces an invalid resource
2 participants