Bug 1480766 - kubectl 1.6.7 bash completion has invalid options
kubectl 1.6.7 bash completion has invalid options
Status: NEW
Product: Fedora
Classification: Fedora
Component: kubernetes (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jan Chaloupka
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-08-11 16:29 EDT by Giovanni Tirloni
Modified: 2017-08-11 16:38 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Giovanni Tirloni 2017-08-11 16:29:24 EDT
Description of problem:
kubectl bash completion has invalid options

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Type: kubectl get <tab>
2. See options available
3. Try `kubectl get status` or `kubectl get thirdpartyresourcedata` or `kubectl get cluster`

Actual results:
Error message is displayed: the server doesn't have a resource type "status"

Expected results:
These options are not available in completion options

Additional info:
Tested against minikube 1.7.3
Comment 1 Giovanni Tirloni 2017-08-11 16:33:36 EDT
Just noticed kubectl is at version 1.6.7. For some reason I thought Fedora already had 1.7.x. This is likely the issue here (version mismatch).
Comment 2 Giovanni Tirloni 2017-08-11 16:38:01 EDT
Maybe the bash completion does need an update. Tested against minikube 1.6.4 now but same results:

$ /usr/bin/kubectl version --short
Client Version: v1.6.7
Server Version: v1.6.4

$ /usr/bin/kubectl get 
certificatesigningrequest  event                      pod                        service
cluster                    horizontalpodautoscaler    poddisruptionbudget        serviceaccount
clusterrole                ingress                    podsecuritypolicy          statefulset
clusterrolebinding         job                        podtemplate                status
componentstatus            limitrange                 replicaset                 storageclass
configmap                  namespace                  replicationcontroller      thirdpartyresource
cronjob                    networkpolicy              resourcequota              thirdpartyresourcedata
daemonset                  node                       role                       
deployment                 persistentvolume           rolebinding                
endpoints                  persistentvolumeclaim      secret

Note You need to log in before you can comment on or make changes to this bug.