-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
docs: document plugin prefixed env vars #9548
docs: document plugin prefixed env vars #9548
Conversation
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
allowConcurrency: true | ||
lockRepo: false |
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.
These are not actually applicable to sidecar plugins.
…v/argo-cd into plugin-env-vars-docs Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Codecov Report
@@ Coverage Diff @@
## master #9548 +/- ##
=======================================
Coverage 45.77% 45.77%
=======================================
Files 222 222
Lines 26372 26372
=======================================
Hits 12072 12072
Misses 12651 12651
Partials 1649 1649 Continue to review full report at Codecov.
|
Starting in 2.4, sidecar plugins will not receive environment variables from the main repo-server container. Make sure | ||
that any environment variables necessary for the sidecar plugin to function are set on the sidecar plugin. | ||
|
||
argocd-cm plugins will continue to receiver environment variables from the main repo-server container. |
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.
s/receiver/receive
user-supplied environment variables (#3 above) with `ARGOCD_ENV_`. This prevents users from directly setting | ||
potentially-sensitive environment variables. | ||
|
||
If your plugin was written before 2.3 and depends on user-supplied environment variables, then you will need to update |
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 confirming.. before 2.3 or 2.4?
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
* docs: document plugin prefixed env vars Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * restructure, clarify env vars from main container behavior Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * grammer Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * grammer Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * no link - the cert is bad Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * fixes Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Cherry-picked onto 2.4. |
Given the positive response to this post and the consensus of the Argo CD maintainers, we should go forward with environment variable prefixing in 2.4.