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
the pod namespace is now passed using the env var POD_NAMESPACE
Before, the namespace used to be guessed by looking up the service
account's `namespace` file at
/var/run/secrets/kubernetes.io/serviceaccount/namespace
Although this way is "OK" since the agent will always have a service
account token mounted to the pod, we decided that passing the namespace
to the pod using an explicit env var would be better.
return"", fmt.Errorf("POD_NAMESPACE env var not set, meaning that you are probably not running in cluster. Please use --install-namespace or POD_NAMESPACE to specify the namespace in which the agent is running.")
0 commit comments