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

docs: document plugin prefixed env vars #9548

Merged
merged 8 commits into from
Jun 2, 2022

Conversation

crenshaw-dev
Copy link
Member

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.

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
@crenshaw-dev crenshaw-dev added the cherry-pick/2.4 Candidate for cherry picking into the 2.4 release branch label May 31, 2022
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Comment on lines -70 to -71
allowConcurrency: true
lockRepo: false
Copy link
Member Author

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.

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
…v/argo-cd into plugin-env-vars-docs

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
@codecov
Copy link

codecov bot commented Jun 2, 2022

Codecov Report

Merging #9548 (d80c42b) into master (b2fe209) will not change coverage.
The diff coverage is n/a.

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b2fe209...d80c42b. Read the comment docs.

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.
Copy link
Collaborator

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
Copy link
Collaborator

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?

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Copy link
Collaborator

@leoluz leoluz left a comment

Choose a reason for hiding this comment

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

LGTM

@crenshaw-dev crenshaw-dev merged commit a5618f1 into argoproj:master Jun 2, 2022
@crenshaw-dev crenshaw-dev deleted the plugin-env-vars-docs branch June 2, 2022 19:44
crenshaw-dev added a commit that referenced this pull request Jun 2, 2022
* 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>
@crenshaw-dev
Copy link
Member Author

Cherry-picked onto 2.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/2.4 Candidate for cherry picking into the 2.4 release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants