You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sidecar CMP plugins are run with an environment inherited from the repo server container concatenated to their own environment. The inherited environment contains not only the variables declared in the application but also the regular environment of the repo server (for example PATH).
To Reproduce
A deployment of argocd with a sidecar plugin configured as in the documentation. We assume the side car plugin can print its environment somewhere as a debug output during generate phase is needed.
Patch the repo-server deployment to add a variable (eg. TEST) with value repo-server in argocd-repo-server container and cmp-server in the cmp container.
Expected behavior
After reconciliation, check the value of the saved TEST variable, it is repo-server and not cmp-server.
getPluginEnvs is both used for local plugins and sidecar plugins. For the later
do not include the environement variables of the repo-server in the supplied
variables.
Fixes: argoproj#9393
Signed-off-by: Pierre Crégut <[email protected]>
…9319)
* fix: do not export repo-server environment to sidecar (#9393)
getPluginEnvs is both used for local plugins and sidecar plugins. For the later
do not include the environement variables of the repo-server in the supplied
variables.
Fixes: #9393
Signed-off-by: Pierre Crégut <[email protected]>
* feat: Add plugin call variables to sidecar plugin discovery (#9273)
Gives access to variables declared in the call of the plugin in the application
manifest to the discover command run on the CMP server.
Variables are prefixed with ARGOCD_ENV_ to avoid security issues (plugin call
overiding important variables).
Fixes#9273
Signed-off-by: Pierre Crégut <[email protected]>
Checklist:
argocd version
.Describe the bug
Sidecar CMP plugins are run with an environment inherited from the repo server container concatenated to their own environment. The inherited environment contains not only the variables declared in the application but also the regular environment of the repo server (for example PATH).
To Reproduce
A deployment of argocd with a sidecar plugin configured as in the documentation. We assume the side car plugin can print its environment somewhere as a debug output during generate phase is needed.
Patch the repo-server deployment to add a variable (eg. TEST) with value
repo-server
inargocd-repo-server
container andcmp-server
in thecmp
container.Expected behavior
After reconciliation, check the value of the saved TEST variable, it is
repo-server
and notcmp-server
.Version
Also occurs on current master branch
The text was updated successfully, but these errors were encountered: