• Avesh Agarwal's avatar
    Fix kubectl get error when both all-namespaces and namespace are provided. · c0e1623b
    Avesh Agarwal authored
    As per kubectl get help, --namespace should be ignored with all-namespaces,
    but kubectl get pods --all-namespaces --namespace=<name-space> gives
    following error:
    
    "the namespace from the provided object "default" does not match the
    namespace "". You must pass '--namespace=default' to perform this
    operation."
    
    This commit fixes this error issue.
    c0e1623b
get.go 9.2 KB