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(kubernetes): make preStop command work with busybox #3568

Merged
merged 2 commits into from
Jan 31, 2023

Conversation

stefreak
Copy link
Member

What this PR does / why we need it:

The pgrep -c option does not exist in busybox. Make the preStop command more portable.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

The pgrep -c option does not exist in busybox. Make the preStop command more portable.
@stefreak stefreak requested a review from Walther January 24, 2023 12:49
Walther
Walther previously approved these changes Jan 24, 2023
@stefreak stefreak marked this pull request as draft January 24, 2023 14:06
@stefreak stefreak marked this pull request as ready for review January 31, 2023 14:10
@stefreak stefreak requested a review from Walther January 31, 2023 14:10
Copy link
Contributor

@Walther Walther left a comment

Choose a reason for hiding this comment

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

nice, thanks! 🚀

@stefreak stefreak merged commit b062281 into main Jan 31, 2023
@stefreak stefreak deleted the fix-prestop-busybox branch January 31, 2023 15:01
vvagaytsev pushed a commit that referenced this pull request Mar 3, 2023
* fix(kubernetes): make preStop command work with busybox

The pgrep -c option does not exist in busybox. Make the preStop command more portable.

This avoids a weird error message in the logs of Garden Pods including the util container.
vvagaytsev pushed a commit that referenced this pull request Mar 6, 2023
* fix(kubernetes): make preStop command work with busybox

The pgrep -c option does not exist in busybox. Make the preStop command more portable.

This avoids a weird error message in the logs of Garden Pods including the util container.
This was referenced May 11, 2023
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