The patch
command should not require a KUBECONFIG when using --local
#523
Labels
sig/cli
Categorizes an issue or PR as relevant to SIG CLI.
The
kubectl patch
command currently fails when there is no kubeconfig present, no--config
flag is provided, and--local
is given:Since we are not hitting the server, no kubeconfig should be needed.
This error occurs here when attempting to retrieve a namespace in the command's Complete method.
We should be looking up the namespace much later in the command, and only if not running as
--local
.We could consider adding a
NamespaceFunc
field to the command's options struct that is called when needed in the Run method.cc @deads2k @soltysh
/sig cli
The text was updated successfully, but these errors were encountered: