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
I have multiple contexts I need to switch between, it would be very helpful to switch the context on a global level via an argument or environment-variable.
Motivation
Let's assume you have three contexts named dev, staging and production and are constantly changing via argocd context dev...., argocd context staging.... or argocd context production...., prior actual execution of the desired action. Also you have to check each time which context you are currently working in prior execution.
So the current workflow is:
# check which context I'm in
argocd context
# switch if required
argocd context staging...
# execute command, eg:
argocd app list
Proposal
Pass the context in the actual command, eg:
argocd app list --context staging...
or as environment variable
ARGOCD_CONTEXT=staging... argocd app list
The text was updated successfully, but these errors were encountered:
Summary
I have multiple contexts I need to switch between, it would be very helpful to switch the context on a global level via an argument or environment-variable.
Motivation
Let's assume you have three contexts named dev, staging and production and are constantly changing via
argocd context dev....
,argocd context staging....
orargocd context production....
, prior actual execution of the desired action. Also you have to check each time which context you are currently working in prior execution.So the current workflow is:
Proposal
Pass the context in the actual command, eg:
or as environment variable
The text was updated successfully, but these errors were encountered: