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

Add 'exec' in all saltbase manifests using '/bin/sh -c'. #57756

Merged
merged 1 commit into from
Jan 3, 2018

Conversation

mborsz
Copy link
Member

@mborsz mborsz commented Jan 2, 2018

Right now, if docker sends SIGTERM, /bin/sh doesn't pass it to
underlying process, which breaks graceful process shutdown.

Changing '/bin/sh -c CMD > /var/log/FILE.log' pattern to '/bin/sh -c
exec CMD > /var/log/FILE.log' still allows to redirect output to log
file, but also passes all signals to CMD process.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #57707, Fixes #45959

Special notes for your reviewer:

Release note:

Allow kubernetes components to react to SIGTERM signal and shutdown gracefully.

Right now, if docker sends SIGTERM, /bin/sh doesn't pass it to
underlying process, which breaks graceful process shutdown.

Changing '/bin/sh -c CMD > /var/log/FILE.log' pattern to '/bin/sh -c
exec CMD > /var/log/FILE.log' still allows to redirect output to log
file, but also passes all signals to CMD process.
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 2, 2018
@mborsz
Copy link
Member Author

mborsz commented Jan 2, 2018

/assign wojtek-t

@yujuhong
Copy link
Contributor

yujuhong commented Jan 2, 2018

/lgtm

/assign @roberthbailey
/assign @dchen1107

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 2, 2018
@wojtek-t
Copy link
Member

wojtek-t commented Jan 3, 2018

/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mborsz, wojtek-t, yujuhong

Associated issue: #57707

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 3, 2018
@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here.

@roberthbailey
Copy link
Contributor

Thanks @mborsz. Sorry I didn't have time to review before this auto-merged but it lgtm too.

@wojtek-t
Copy link
Member

wojtek-t commented Jan 3, 2018

Thanks @mborsz. Sorry I didn't have time to review before this auto-merged but it lgtm too.

Sorry for not waiting for you approval, but my feeling was that it wasn't that controversial.

k8s-github-robot pushed a commit that referenced this pull request Jan 4, 2018
…-upstream-release-1.8

Automatic merge from submit-queue.

Automated cherry pick of #57756: Add 'exec' in all saltbase manifests using '/bin/sh -c'.

Cherry pick of #57756 on release-1.8.

#57756: Add 'exec' in all saltbase manifests using '/bin/sh -c'.
k8s-github-robot pushed a commit that referenced this pull request Jan 4, 2018
…-upstream-release-1.7

Automatic merge from submit-queue.

Automated cherry pick of #57756: Add 'exec' in all saltbase manifests using '/bin/sh -c'.

Cherry pick of #57756 on release-1.7.

#57756: Add 'exec' in all saltbase manifests using '/bin/sh -c'.
k8s-github-robot pushed a commit that referenced this pull request Jan 9, 2018
…-upstream-release-1.9

Automatic merge from submit-queue.

Automated cherry pick of #57756: Add 'exec' in all saltbase manifests using '/bin/sh -c'.

Cherry pick of #57756 on release-1.9.

#57756: Add 'exec' in all saltbase manifests using '/bin/sh -c'.
justinsb added a commit to justinsb/kops that referenced this pull request Jan 17, 2018
justinsb added a commit to justinsb/kops that referenced this pull request Jan 20, 2018
justinsb added a commit to justinsb/kops that referenced this pull request Jan 20, 2018
justinsb added a commit to justinsb/kops that referenced this pull request Jan 20, 2018
justinsb added a commit to justinsb/kops that referenced this pull request Jan 20, 2018
justinsb added a commit to justinsb/kops that referenced this pull request Jan 20, 2018
justinsb added a commit to justinsb/kops that referenced this pull request Jan 24, 2018
justinsb added a commit to justinsb/kops that referenced this pull request Jan 24, 2018
justinsb added a commit to justinsb/kops that referenced this pull request Jan 24, 2018
justinsb added a commit to justinsb/kops that referenced this pull request Jan 25, 2018
justinsb added a commit to justinsb/kops that referenced this pull request Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kube-apiserver is never killed gracefully salt manifests for kube components breaks graceful termination
7 participants