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

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Jul 14, 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.

I have:

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

How has this code been tested

Tested with crossplane/upjet#231.

@ulucinar ulucinar marked this pull request as draft July 14, 2023 15:20
@ulucinar ulucinar marked this pull request as ready for review July 26, 2023 17:20
@ulucinar ulucinar force-pushed the filter-status-updates branch 3 times, most recently from ad69663 to 4ba8384 Compare July 27, 2023 13:55
Copy link
Collaborator

@sergenyalcin sergenyalcin 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 I left two comments that are related to copy-paste.

"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for kafka group.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Configure adds configurations for kafka group.
// Configure adds configurations for kendra group.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks @sergenyalcin, done.

"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for kafka group.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Configure adds configurations for kafka group.
// Configure adds configurations for medialive group.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

…o filter status updates out

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
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