Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

The --namespace controller param and NAMESPACE environment variable should override to produce one canonical value (#70) #109

Merged
merged 2 commits into from Jan 29, 2021

Conversation

jgwest
Copy link
Member

@jgwest jgwest commented Jan 28, 2021

Fixes #70

As described on the issue, fix is to use the namespace value specified in this order (top is highest):

  • CLI --namespace param
  • NAMESPACE env var
  • finally, default to 'argocd'

@jgwest jgwest marked this pull request as ready for review January 28, 2021 16:55
main.go Outdated
}
setupLog.Info("using argocd namespace", "namespace", ns)

setupLog.Info("Using argocd namespace", "namespace", namespace)
Copy link
Contributor

Choose a reason for hiding this comment

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

The log might be misleading if the namespace is not argocd

@xianlubird xianlubird merged commit 9295445 into argoproj:master Jan 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants