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 exit non-zero exit codes when running as pid1 #344

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

thockin
Copy link
Member

@thockin thockin commented Mar 11, 2021

(v4 branch)

Prior to this we would swallow the exit code and always exit(0).

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 11, 2021
@k8s-ci-robot k8s-ci-robot requested a review from stp-ip March 11, 2021 20:58
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 11, 2021
@thockin thockin force-pushed the fix-pid1-exit-code-v4 branch from 8f58279 to 5fa0acc Compare March 11, 2021 23:00
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 11, 2021
@thockin thockin force-pushed the fix-pid1-exit-code-v4 branch from 5fa0acc to 64a3282 Compare March 15, 2021 16:20
Copy link
Member

@stp-ip stp-ip left a comment

Choose a reason for hiding this comment

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

/approve

Small nit/typo here as well

pkg/pid1/pid1.go Outdated Show resolved Hide resolved
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stp-ip, thockin

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

(v4 branch)

Prior to this we would swallow the exit code and always exit(0).
@thockin thockin force-pushed the fix-pid1-exit-code-v4 branch from 64a3282 to 45b2853 Compare March 15, 2021 16:28
@thockin
Copy link
Member Author

thockin commented Mar 15, 2021

Typo fixed

@stp-ip
Copy link
Member

stp-ip commented Mar 15, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 15, 2021
@k8s-ci-robot k8s-ci-robot merged commit 7b59478 into kubernetes:master Mar 15, 2021
bbguimaraes added a commit to bbguimaraes/release that referenced this pull request Dec 9, 2022
openshift-merge-robot pushed a commit to openshift/release that referenced this pull request Dec 9, 2022
Update to the latest version (apparently hosted elsewhere now):

https://github.com/kubernetes/git-sync/releases/tag/v3.6.2

Fixes silliness such as:

- #34630 (comment)
- kubernetes/git-sync#344
@thockin thockin deleted the fix-pid1-exit-code-v4 branch February 25, 2023 22:51
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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants