Skip to content

Suppress health check events when no changes made#151

Merged
stefanprodan merged 2 commits intofluxcd:mainfrom
ordovicia:supress-healthchecks-when-no-changes
Oct 22, 2020
Merged

Suppress health check events when no changes made#151
stefanprodan merged 2 commits intofluxcd:mainfrom
ordovicia:supress-healthchecks-when-no-changes

Conversation

@ordovicia
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
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