-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Run atlantis container as atlantis user instead of root #11197
Conversation
Hi Chris, What's happening though is that the helm chart is setting
Which overrides the Docker Entrypoint (https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). Instead, I think we should change: command: ["atlantis"]
args:
- server to args:
- server Which should allow the default entrypoint to work. Would you mind seeing if that fixes things? |
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.
See ☝️
@lkysow Yep, good call, I can confirm removing the |
@chrisob: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/ok-to-test |
Nice! Please squash your commits. |
Signed-off-by: Chris O'Brien <chrisob91@gmail.com> Bump chart version Signed-off-by: Chris O'Brien <chrisob91@gmail.com> Revert "Run atlantis container as atlantis user instead of root" This reverts commit 8938f3f Signed-off-by: Chris O'Brien <chrisob91@gmail.com> Remove explicit atlantis command so as not to bypass docker entrypoint Signed-off-by: Chris O'Brien <chrisob91@gmail.com>
0d77475
to
a3b31a3
Compare
@lkysow done |
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.
👍 LGTM
/lgtm |
1 similar comment
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrisob, lkysow 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 |
Thanks @chrisob! 🎉 |
@lkysow thank you for such a great tool in the first place! |
Signed-off-by: Chris O'Brien <chrisob91@gmail.com> Bump chart version Signed-off-by: Chris O'Brien <chrisob91@gmail.com> Revert "Run atlantis container as atlantis user instead of root" This reverts commit 8938f3f Signed-off-by: Chris O'Brien <chrisob91@gmail.com> Remove explicit atlantis command so as not to bypass docker entrypoint Signed-off-by: Chris O'Brien <chrisob91@gmail.com>
Signed-off-by: Chris O'Brien chrisob91@gmail.com
@jkodroff @callmeradical @jeff-knurek @lkysow
What this PR does / why we need it:
Since atlantis v0.4.12 (specifically this PR), any custom gitconfig options are ignored, as the container/pod is running as
root
instead ofatlantis
.Which issue this PR fixes
Run the pod as UID 100, AKA theatlantis
user.Remove the
atlantis
command from the pod spec so as not to bypassdocker-entrypoint.sh
, whichgosu
s to theatlantis
user.Special notes for your reviewer:
Tested and working, my custom gitconfig specified in
values.yaml
works again.Checklist