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 #498

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Jul 31, 2023

Description of your changes

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 PR also generates the spec.initProvider API because it bumps the upjet version.

The PR also fixes a couple of linter issues.

I have:

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

How has this code been tested

Please see crossplane-contrib/provider-upjet-aws#789. We will also need to perform some further tests with #495.

@ulucinar ulucinar force-pushed the filter-status-updates branch 2 times, most recently from b6516eb to 10ce2ba Compare July 31, 2023 14:29
@turkenf
Copy link
Collaborator

turkenf commented Jul 31, 2023

/test-examples="examples/azure/resourcegroup.yaml"

Copy link
Contributor

@lsviben lsviben left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar . For future reference Ill add that this got a bit mixed up with #495 due to upjet bump, but merging both will make it all good

…o filter status updates out

- Generate the spec.initProvider API for the MRs.

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
@turkenf
Copy link
Collaborator

turkenf commented Jul 31, 2023

/test-examples="examples/azure/resourcegroup.yaml"

1 similar comment
@turkenf
Copy link
Collaborator

turkenf commented Jul 31, 2023

/test-examples="examples/azure/resourcegroup.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 2690bd6 into crossplane-contrib:main Jul 31, 2023
8 checks passed
@ulucinar ulucinar deleted the filter-status-updates branch July 31, 2023 16:43
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.

3 participants