k3s/pkg
Kubernetes Submit Queue 3787a068fc Merge pull request #30955 from lojies/modifygetresource
Automatic merge from submit-queue

use valid_resources to replace kubectl.PossibleResourceTypes

```release
Fix resource list printed by kubectl help 
```

 `kubectl get` return 

> 
You must specify the type of resource to get. Valid resource types include:
   * componentstatuses (aka 'cs')
   * configmaps
   * daemonsets (aka 'ds')
   * deployments
   * events (aka 'ev')
   * endpoints (aka 'ep')
   * horizontalpodautoscalers (aka 'hpa')
   * ingress (aka 'ing')
   * jobs
   * limitranges (aka 'limits')
   * nodes (aka 'no')
   * namespaces (aka 'ns')
   * pods (aka 'po')
   * persistentvolumes (aka 'pv')
   * persistentvolumeclaims (aka 'pvc')
   * quota
   * resourcequotas (aka 'quota')
   * replicasets (aka 'rs')
   * replicationcontrollers (aka 'rc')
   * secrets
   * serviceaccounts (aka 'sa')
   * services (aka 'svc')
error: Required resource not specified.
See 'kubectl get -h' for help and examples.

while `kubectl get --help` return

> root@k8s-node1:~# kubectl get --help
Display one or many resources.
Possible resource types include (case insensitive): pods (po), services (svc), deployments,
replicasets (rs), replicationcontrollers (rc), nodes (no), events (ev), limitranges (limits),
persistentvolumes (pv), persistentvolumeclaims (pvc), resourcequotas (quota), namespaces (ns),
serviceaccounts (sa), ingresses (ing), horizontalpodautoscalers (hpa), daemonsets (ds), configmaps,
componentstatuses (cs), endpoints (ep), and secrets.
By specifying the output as 'template' and providing a Go template as the value
of the --template flag, you can filter the attributes of the fetched resource(s).
......

kubectl.PossibleResourceTypes missing some resouces such as jobs quota.
describe and explain have the same problem.

i think using valid_resources to replace kubectl.PossibleResourceTypes more suitable.
2016-08-19 15:49:15 -07:00
..
admission
api Merge pull request #30386 from derekwaynecarr/fix-pvc-validation 2016-08-19 07:46:03 -07:00
apimachinery
apis Merge pull request #26044 from smarterclayton/multiversion_encode 2016-08-18 21:10:55 -07:00
apiserver Merge pull request #30736 from liggitt/close-websocket-watch 2016-08-19 15:47:47 -07:00
auth Convert() should accept the new conversion Context value 2016-08-18 14:45:20 -04:00
capabilities
client Merge pull request #31016 from krousey/tcp_reuse 2016-08-19 15:45:34 -07:00
cloudprovider GCE changes for the new provisioning model 2016-08-18 10:36:50 +02:00
controller Merge pull request #30903 from jingxu97/cherrypick-8-19 2016-08-19 15:45:58 -07:00
conversion Introduce GroupVersioner for capturing desired target version 2016-08-18 14:45:00 -04:00
credentialprovider
dns Use MarshalIndent instead of marshal and indent 2016-08-16 18:00:30 +09:00
fieldpath Fix default resource limits (node capacities) for downward api volumes 2016-08-16 14:41:17 -04:00
fields add RequiresExactMatch test for empty andterm 2016-08-12 11:51:52 -07:00
genericapiserver Merge pull request #30233 from mbohlool/swagger2 2016-08-19 04:21:48 -07:00
healthz
httplog
hyperkube
kubectl Merge pull request #30955 from lojies/modifygetresource 2016-08-19 15:49:15 -07:00
kubelet Merge pull request #30668 from euank/dockertools-host-network 2016-08-19 14:35:17 -07:00
kubemark
labels
master Generates OpenAPI (aka Swagger 2.0) Spec on /swagger.json path 2016-08-18 15:32:04 -07:00
metrics
probe
proxy change KUBE-XLB back to KUBE-FW 2016-08-18 10:19:59 -07:00
quota Quota admission errors if usage is negative 2016-08-11 11:26:59 -04:00
registry Convert() should accept the new conversion Context value 2016-08-18 14:45:20 -04:00
runtime Encoding nested objects must support unregistered runtime.Objects 2016-08-18 14:45:40 -04:00
security Initial Quobyte support 2016-08-18 17:13:50 +02:00
securitycontext
serviceaccount
ssh
storage Increase buffer size in etcd_watcher 2016-08-19 13:00:31 +02:00
types
ui
util Merge pull request #30887 from johscheuer/fix-osx-kublet 2016-08-19 14:34:36 -07:00
version
volume Merge pull request #27778 from screeley44/k8-vol-executor 2016-08-19 08:27:48 -07:00
watch Update generated files due to dependency shift. 2016-08-09 10:41:09 -05:00
OWNERS