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

Fix removing PDB of non-ready statefulsets #28

Merged
merged 1 commit into from
Sep 24, 2019

Conversation

mikkeloscar
Copy link
Owner

This fixes two bugs in the handling of non-ready-ttl for statefulsets and deployments.

  1. Remove the obsolete readyReplicas < replicas check as it shadows the code for checking if an existing PDB should be removed.
  2. Allow handling nonReadyTTL from annotation even if no global nonReadyTTL is set.

This fixes the issues we saw where the pdb for prometheus was no removed in case both prometheus pods of a statefulset are getting OOM Killed.

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 44.792% when pulling 045d9ea on fix-nonready-handling into 1bd9d2b on master.

@mikkeloscar
Copy link
Owner Author

👍

1 similar comment
@aermakov-zalando
Copy link
Contributor

👍

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.

3 participants