-
Notifications
You must be signed in to change notification settings - Fork 244
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
Replace dump-init with go-init #2130
Replace dump-init with go-init #2130
Conversation
for reference: changes on odo-init-image - redhat-developer/odo-init-image#35 |
pkg/occlient/templates.go
Outdated
@@ -83,15 +83,13 @@ func generateSupervisordDeploymentConfig(commonObjectMeta metav1.ObjectMeta, com | |||
Ports: commonImageMeta.Ports, | |||
// Run the actual supervisord binary that has been mounted into the container | |||
Command: []string{ | |||
"/opt/odo/bin/dumb-init", | |||
"--", | |||
"/bin/bash", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably don't need bash
here. Executing just /opt/odo/bin/go-init
should be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
pkg/occlient/occlient.go
Outdated
@@ -95,7 +95,7 @@ const ( | |||
|
|||
// Default Image that will be used containing the supervisord binary and assembly scripts | |||
// use getBoostrapperImage() function instead of this variable | |||
defaultBootstrapperImage = "quay.io/openshiftdo/init:0.10.0" | |||
defaultBootstrapperImage = "quay.io/mohammedzee1000/odo-init-image:go-init" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just so we don' forget. This needs to point to quay.io/openshiftdo/init:0.11.0
once the redhat-developer/odo-init-image#35 and new version of the image is released.
Only after that, we can merge this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that is why I specifically marked that change in a separate commit, so that it can be dropped :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quay.io/openshiftdo/init:0.11.0
is built. @mohammedzee1000 please update it to this image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
0621488
to
53275d4
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kadel 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 |
/retest |
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
53275d4
to
419557f
Compare
s2i related error
/retest |
looks good to me |
/retest |
@mohammedzee1000: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
What is the purpose of this change? What does it change?
This PR makes use of go-init instead of dumb-init to avoid having to maintain our own rpm for dumb-init
How to test changes?
All standard workflows should pass