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

Add an event filter with the resource.DesiredStateChanged predicate to filter status updates out #60

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Aug 1, 2023

Description of your changes

Depends on: crossplane/upjet#241

This PR adds an event filter using the resource.DesiredStateChanged to the generated resource controllers so that updates to only labels, annotations (Crossplane's create pending/failed annotations will be ignored) and to the spec will result in reconcile requests. The relevant upjet PR is crossplane/upjet#231.

It also adds support for granular management policies and the spec.initProvider API to allow the specification of the configuration parameters that will only be used during a create call. Please refer to the relevant upjet PRs: crossplane/upjet#224, crossplane/upjet#237

It also introduces a change in the external client that reconciles the MRs of this provider so that the external client now explicitly re-queues a reconcile request if a shared provider has expired. Please refer to the relevant upjet PR for more details: crossplane/upjet#241

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Please see crossplane-contrib/provider-upjet-aws#805 and crossplane/upjet#231 (comment) for tests related to the changes introduced here.

With @turkenf, we have also (re)tested the granular management policies alpha feature.

@turkenf turkenf marked this pull request as ready for review August 1, 2023 15:00
@turkenf
Copy link
Collaborator

turkenf commented Aug 1, 2023

/test-examples="examples/applications/application.yaml"

@ulucinar
Copy link
Collaborator Author

ulucinar commented Aug 1, 2023

/test-examples="examples/applications/application.yaml"

@ulucinar
Copy link
Collaborator Author

ulucinar commented Aug 1, 2023

/test-examples="examples/applications/application.yaml"

…o filter status updates out

- Support Granular management policies
- Explicitly queue a reconcile request if a shared provider has expired

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
@ulucinar
Copy link
Collaborator Author

ulucinar commented Aug 1, 2023

/test-examples="examples/applications/application.yaml"

Copy link
Collaborator

@turkenf turkenf left a comment

Choose a reason for hiding this comment

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

Thank you @ulucinar, LGTM.

@ulucinar ulucinar merged commit b2fada2 into crossplane-contrib:main Aug 1, 2023
8 checks passed
@ulucinar ulucinar deleted the bump-upjet branch August 1, 2023 16:21
turkenf pushed a commit that referenced this pull request Aug 4, 2023
Add an event filter with the resource.DesiredStateChanged predicate to filter status updates out
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