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

Allow overriding readinessProbe and LivenessProbe #1776

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

mkuratczyk
Copy link
Collaborator

There can only be 1 probe and without this change, specifying an exec readinessProbe in the spec.override would add it on top of the default TCP probe.

As for livenessProbe, since there's currently no default, everything works without this change. However, we could add the default livenessProbe in the future and allowing this override doesn't break anything right now, so it's just future-proofing.

This PR supersedes #1775 which didn't contain tests

This closes #1698

There can only be 1 probe and without this change,
specifying an exec readinessProbe in the spec.override would
add it on top of the default TCP probe.

As for livenessProbe, since there's currently no default,
everything works without this change. However, we could add
the default livenessProbe in the future and allowing this override
doesn't break anything right now, so it's just future-proofing.

Co-authored-by: joey <[email protected]>
@mkuratczyk mkuratczyk requested a review from Zerpet November 22, 2024 08:57
Copy link
Collaborator

@Zerpet Zerpet left a comment

Choose a reason for hiding this comment

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

Looks good 👍 It makes me a bit uneasy that this function assumes that container[0] exists and that container[0] is rabbitmq. That assumption was prior to this PR, so no objections to merge 🚀

@mkuratczyk
Copy link
Collaborator Author

Yup, same. But this is something can fix separately.

@mkuratczyk mkuratczyk merged commit b9a4ef2 into main Nov 22, 2024
13 checks passed
@mkuratczyk mkuratczyk deleted the allow-overriding-probes branch November 22, 2024 10:00
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.

Problem with overriding statefulset readiness probe
2 participants