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

k8s API sets the default value of XR .spec.compositionUpdatePolicy field #4928

Merged

Conversation

pedjak
Copy link
Contributor

@pedjak pedjak commented Oct 30, 2023

Description of your changes

  • composite CRD contains now the default value for .spec.compositionUpdatePolicy field
    copied from XRD spec.defaultCompositionUpdatePolicy. If not specified at XR,
    it will be set by k8s API
  • added and updated unit tests
  • removed APIDefaultCompositionUpdatePolicySelector as unneeded

Related to #4768

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added or updated unit tests.
  • [ ] Added or updated e2e tests.
  • [ ] Linked a PR or a docs tracking issue to document this change.
  • [ ] Added backport release-x.y labels to auto-backport this PR.

Need help with this checklist? See the cheat sheet.

…field

* composite CRD contains now the default value for `.spec.compositionUpdatePolicy` field
  copied from XRD `spec.defaultCompositionUpdatePolicy`. If not specified at XR,
  it will be set by k8s API
* added and updated unit tests
* removed `APIDefaultCompositionUpdatePolicySelector` as unneeded

Signed-off-by: Predrag Knezevic <predrag.knezevic@upbound.io>
@pedjak pedjak requested review from negz and a team as code owners October 30, 2023 14:13
@pedjak pedjak requested a review from turkenh October 30, 2023 14:13
Copy link
Member

@turkenh turkenh left a comment

Choose a reason for hiding this comment

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

Nice work @pedjak 🙌

@turkenh turkenh merged commit 5fe5497 into crossplane:master Nov 13, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants