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

Emit healthcheck event when Kustomization was not ready #219

Merged

Conversation

ordovicia
Copy link
Contributor

Healthcheck can temporarily fail due to slow application startup, network failure, etc.
In this case, Flux emits an event of the failed healthcheck.
But when the healthcheck passes in another reconciliation, the current implementation does not emit a healthcheck event because the revision has not changed.

This PR fixes this behavior.
Flux will always emit a healthcheck event if a Kustomization was not ready in the previous reconciliation.

Signed-off-by: Hidehito Yabuuchi <hdht.ybuc@gmail.com>
@ordovicia ordovicia force-pushed the emit-healthcheck-when-was-unready branch from 65e29ca to 8b132d1 Compare December 17, 2020 08:50
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 added the area/kstatus Health checking related issues and pull requests label Dec 17, 2020
@stefanprodan stefanprodan merged commit b7db5cb into fluxcd:main Dec 17, 2020
@ordovicia ordovicia deleted the emit-healthcheck-when-was-unready branch December 17, 2020 09:07
@stefanprodan stefanprodan mentioned this pull request Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kstatus Health checking related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants