mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-26 13:41:01 +01:00
The $KUBECONFIG variable is like $PATH, and supports multiple files separated by `:`, but --kubeconfig only takes a single file as a value. Since kubectl picks up the $KUBECONFIG variable already, don't pass it to kubectl. Also, use --namespace instead of -n to support older kubectl versions.