"kubectl logs" reports "__kubectl_namespace_flag" error while using bash completion. #31134
Labels
area/kubectl
priority/awaiting-more-evidence
Lowest priority. Possibly useful, but not yet enough support to actually get it done.
While doing ticket #25287 , found two issues.
The first issue is that if create a pod and query the logs with the following command:
the command will print error like
method __kubectl_namespace_flag not found
.I think the old method
__kubectl_namespace_flag
has already been renamed to__kubectl_override_flags
in this commit #23830The second issue is when using the flags defined here in the "--flag=value" style in kubectl command, the completion does not work. E.g. create a pod in k8s cluster, use the following command:
the above command will not return the possible pod list.
Will submit a patch to fix the issues then.
The text was updated successfully, but these errors were encountered: