Skip to content
Snippets Groups Projects
  • Chance Zibolski's avatar
    c845c3c9
    Don't pass $KUBECONFIG to kubectl --kubeconfig flag · c845c3c9
    Chance Zibolski authored
    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.
    c845c3c9
    History
    Don't pass $KUBECONFIG to kubectl --kubeconfig flag
    Chance Zibolski authored
    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.