Open NiklasRosenstein opened 1 week ago
Hi everyone,
Is there any confirmation or update regarding the issue? Today, I also tried to SSH into the avp container and echo the environment variables $KUBE_VERSION and $KUBE_API_VERSIONS, but I couldn’t find either of them. I am running ArgoCD v2.11.7.
Checklist:
argocd version
.Describe the bug
Sometimes the
ARGOCD_APP_NAMESPACE
environment variable isn't set when a CMP'sdiscover.find.command
is executed.To Reproduce
Create a CMP that tells you the the environment variables. Mine looks like this:
What I find is that for every application, there is a variant without the namespace:
Looking through these files, it seems they are only from invoking the
discover.find.command
. However, I can also find logs aboutdiscover.find.command
where the namespace is set. From the behaviour I've observed so far, this appears to maybe be an issue only immediately after theargocd-repo-server
restarted.The debug logs of my CMP also log all environment variables beginning with
ARGOCD
where you can also confirm thatARGOCD_APP_NAMESPACE
is not set:Expected behavior
In
/var/log/nyl
I can only find files formatted as{namespace}-{name}.log
because theARGOCD_APP_NAMESPACE
is always set.Version