mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-27 09:21:56 +02: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.