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

Suppress health check events when no changes made #151

Merged

Conversation

ordovicia
Copy link
Contributor

When no Kubernetes resources are created or configured for a Kustomization and it has no dependencies, the health check status for the Kustomization will not change.
In this case kustomize-controller does not have to deliver health check events.
What do you think?

@stefanprodan
Copy link
Member

@ordovicia I think it's ok to suppress the events no matter the dependencies. If a dependency is failing, it will never get to the health check part.

Because if a dependency is failing, the reconciliation will never get to
the health check part.
@ordovicia
Copy link
Contributor Author

Ah, right. Thank you.
I removed the len(DependsOn) > 0 condition.

Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @ordovicia 🏅

@stefanprodan stefanprodan merged commit 8bb4f4c into fluxcd:main Oct 22, 2020
@ordovicia ordovicia deleted the supress-healthchecks-when-no-changes branch October 26, 2020 04:03
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