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

[release-1.13] Backport Usage API and Convert from Json Transform #105

Merged
merged 14 commits into from
Sep 12, 2023

Conversation

turkenh
Copy link
Member

@turkenh turkenh commented Sep 12, 2023

Description of your changes

This PR backports the following upstream PR to the release branch:

Additionally, it applies a workaround (since we don't maintain a crossplane-runtime fork) to backport the following runtime PR:

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.
  • Opened a PR updating the docs, if necessary.

phisco and others added 14 commits September 12, 2023 12:40
…ransform

Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
(cherry picked from commit 66e02e4)
Signed-off-by: Hasan Turken <turkenh@gmail.com>
(cherry picked from commit 0339892)
- No more block annotation
- Webhook for checking usages
- Index used fields
- Used resources as an array
- Return 409 when deletion blocked
- Fixes from Usage design reviews
- Use objectSelector in usage webhook
- Used resource should have in-use label

Signed-off-by: Hasan Turken <turkenh@gmail.com>

Update and generate with latest schema

Signed-off-by: Hasan Turken <turkenh@gmail.com>
(cherry picked from commit 221ab17)
Signed-off-by: Hasan Turken <turkenh@gmail.com>
(cherry picked from commit f9aca52)
- Add logs and comments for Usage implementation
- Add events in Usage reconciler
- Add conditions to Usage resource
- Resolve selectors if any
- Add CEL rule for Usage, either by or reason should be defined
- Handle Usage with reason

Signed-off-by: Hasan Turken <turkenh@gmail.com>
(cherry picked from commit 0e1c4d2)
Signed-off-by: Hasan Turken <turkenh@gmail.com>
(cherry picked from commit 7e4112a)
Also:
- Do not add owner references to the used resource
- Rename dependency package as resource
- Add unit tests for usage reference selector
- Add unit tests for usage reconciler
- Add unit tests for usage webhook

Signed-off-by: Hasan Turken <turkenh@gmail.com>
(cherry picked from commit 8236621)
Also:
- Add details annotation and column to Usage
- It should be possible to override REGISTRY_ORGS
- Asses Usage functionality in composition with e2e
- e2e tests with suites

Signed-off-by: Hasan Turken <turkenh@gmail.com>
(cherry picked from commit 4e7889a)
Also:
- Resolve comments in Usage
- Remove composite check during deletion

Signed-off-by: Hasan Turken <turkenh@gmail.com>
(cherry picked from commit f7ac2fb)
Signed-off-by: Hasan Turken <turkenh@gmail.com>
(cherry picked from commit 72011ee)
Signed-off-by: Hasan Turken <turkenh@gmail.com>
(cherry picked from commit 44956a2)
Signed-off-by: Hasan Turken <turkenh@gmail.com>
(cherry picked from commit 5f5ed2a)
Signed-off-by: Hasan Turken <turkenh@gmail.com>
As it depends on previous refactorings on the master branch
which we don't have on the release branch.

Signed-off-by: Hasan Turken <turkenh@gmail.com>
@turkenh turkenh requested a review from phisco September 12, 2023 10:32
@phisco phisco merged commit 141e541 into upbound:release-1.13 Sep 12, 2023
16 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.

2 participants