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

fix: omitempty environmentConfigs label selector fields #4367

Merged

Conversation

phisco
Copy link
Contributor

@phisco phisco commented Jul 21, 2023

Description of your changes

Follow up to #3981, while writing E2Es I noticed that we missed to add omitempty to the newly introduced fields, resulting in no issue when applying with kubectl, but with errors such as the one below when serialized to the actual object and applied programmatically:

Composition.apiextensions.crossplane.io "nop.sqlinstances.example.org" is invalid: spec.environment.environmentConfigs[1].selector.mode: Unsupported value: "": supported values: "Single", "Multiple"

I have:

  • Read and followed Crossplane's contribution process.
  • Added or updated unit and E2E tests for my change.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
@phisco phisco merged commit 19ea23e into crossplane:master Jul 21, 2023
15 checks passed
@github-actions
Copy link

Successfully created backport PR for release-1.13:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants