-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(argo-cd): Entrypoint can be configured now #1898
Conversation
Signed-off-by: Gergely Czuczy <gergely.czuczy@sap.com>
Thank you for your contribution!
IMO, |
I wouldn't say so. For an example our internal images are already trying to the With this PR, this support for overriding the entrypoint is introduced, so people who want to do this (with using this chart) will be able to. Regarding the argo-cd image's entrypoint chage, it only means that after the 2.7 release, the defaults in the values will have to be updated to reflect the changes. With the current changes this PR is producing effectively the very same chart. It's the same
And
Effectively, it's no changes with the defaults in |
@gczuczy
Yes, I am aware that this PR does not change current configurations, as far as users don't override values.yaml.
Once this PR is released, users can configure the values even though Argo CD is still v2.6.x. The changes themselves are LGTM, so let me ask other maintainers to review. 🙋 |
Thanks. In the current state of ArgoCD I would say that this feature is most useful for users who are baking their own image. There's one thing I'm contemplating about. Other components are using the service directly as an entrypoint, and yet I'm not sure about it, but my gut instinct is telling me that those might also benefit from being able to use an init (such as tini) entry point. Which is especially useful if there are any side processes inside the container, but otherwise still useful. Here's a writeup on it from tini's side: I don't exactly know which other components might spawn processes, but if any of the others do, it would be beneficial to include those as well. |
Signed-off-by: Gergely Czuczy <gergely.czuczy@harmless.hu>
Signed-off-by: Gergely Czuczy <gergely.czuczy@harmless.hu>
@davidkarlsen , @mr-sour, @yann-soubeyrand, @mbevc1, @mkilchhofer, @yu-croco, @jmeridth, @pdrastil May I ask when will you have some time to check this, so we can merge it before argo 2.7? |
Nothing specifically comes to mind that would immediately break and should be okay. |
Signed-off-by: Gergely Czuczy <gergely.czuczy@harmless.hu>
Signed-off-by: Gergely Czuczy <gergely.czuczy@sap.com>
Signed-off-by: Gergely Czuczy <gergely.czuczy@sap.com>
This PR prepares the argo-cd chart for #1883
Two new global values has been introduced:
global.entrypoint.useImplicit
: defaults to false, if true, then containers are not explicitly declaring an entrypoint withcommand
.global.entrypoint.entrypoint
: Currently defaults toentrypoint.sh
, in caseuseImplicit
is false, the entrypoint specified here will be used in the command.Aftger the argo2.7 release,
useImplicit
can be set to true, and for safety reasons entrypoint should be set to the tini using an absolute path.Having this little mechanic accessable beforehand provides no incompatible changes, and also allows the argocd helm chart users to run their deployments with directly tini or any other way (currently it's not configurable).
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist:
Changes are automatically published when merged to
main
. They are not published on branches.