Janet Kuo
b5b76d8187
Document that endpoints is only plural in resource aliases
2018-03-14 16:02:51 -07:00
tcharding
63ffb1995b
kubectl: Move utility functions to util package
...
`parseFileSource()` and `parseLiteralSource()` are utility functions.
We have a package already for utility functions, `kubectl/util/`.
Move utility functions to `kubectl/util`, capitalize function names to
export from package.
2017-09-04 20:14:16 +10:00
Alexander Campbell
f9913c4948
kubectl: rewrite docstrings in several files
...
Fixing inaccuracies and clarifying in the case of ambiguities.
2017-06-23 09:49:30 -07:00
xiangpengzhao
5daa6980e1
Add short name "netpol" for networkpolicies
2017-03-01 14:40:56 +08:00
Clayton Coleman
2aa4abb73b
Refactor commands to use new factory method
2017-02-23 00:28:32 -05:00
deads2k
d3da1d102d
deprecate and disconnect --output-version
2017-02-16 13:23:59 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
p0lyn0mial
ad688d7761
ShortcutExpander has been extended in a way that it will examine a hardcoded list of tuples anticipated from the server when
...
searching for an alternative name for the resource. Note that the list is ordered and the first match will yield the extended resource's name.
One important thing to highlight is that the ShortcutExpander will fall back to PriorityRestMaper to determine the group for
the resource. Also this PR introduces a new shortcut namely sc which will resolve to storageclasses within storage.k8s.io group
In addition the type of kubectl.ShortForms has been changed to ResourceShortcuts struct. It has got a brand new name,
it was also extended and ordered by group.
2016-12-22 17:29:52 +01:00
Michail Kargakis
86c515ebc3
kubectl: set alias for poddisruptionbudget
2016-12-02 18:39:55 +01:00
Clayton Coleman
35a6bfbcee
generated: refactor
2016-11-23 22:30:47 -06:00
deads2k
61673c4b39
make kubectl get generic with respect to objects
2016-11-04 09:04:57 -04:00
deads2k
771915c6c4
make shortcut expanding restmapper handle all
2016-09-15 11:03:51 -04:00
lojies
f81fef1f04
use valid_resources to replace kubectl.PossibleResourceTypes
2016-08-19 09:42:46 +08:00
Mike Danese
0ca2511b37
add shortname for certificate signing request
2016-08-05 14:17:14 -07:00
Daniel Smith
b712bfd7ac
Revert "Extend all to more resources"
2016-08-01 21:51:57 -07:00
k8s-merge-robot
95b4572e7c
Merge pull request #28955 from dims/roadmap-extend-all
...
Automatic merge from submit-queue
Extend all to more resources
Added more things from the list here:
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/cmd.go#L159
Note, did not add events as it did not seem useful to me. Since
this is just a list of messages generated by the system.
Related to a suggestion in issue #22337
2016-08-01 10:07:01 -07:00
lojies
79f09cb687
add shorthand cm for configmaps
2016-07-27 10:54:11 +08:00
Davanum Srinivas
ccf4e4d61e
Extend all to more resources
...
Added more things from the list here:
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/cmd.go#L159
Update the devel/kubectl-conventions.md with the rules mentioned by
a few folks on which resources could be added to the special 'all' alias
Related to a suggestion in issue #22337
2016-07-24 21:14:50 -04:00
Clayton Coleman
c077bac341
Implement a RESTMappings method
...
With the introduction of batch/v1 and batch/v2alpha1, any
MultiRESTMapper that has per groupversion mappers (as a naive discovery
client would create) would end up being unable to call RESTMapping() on
batch.Jobs. As we finish up discovery we will need to be able to choose
prioritized RESTMappings based on the service discovery doc.
This change implements RESTMappings(groupversion) which returns all
possible RESTMappings for that kind. That allows a higher level call to
prioritize the returned mappings by server or client preferred version.
2016-07-13 21:18:53 -04:00
Sergey Lukjanov
3c0f0474d3
Add "deploy" abbrev for deployments to kubectl
2016-07-12 16:52:17 +03:00
k8s-merge-robot
b71b6eb8e8
Merge pull request #25646 from nhlfr/kubectl-petset-resource
...
Automatic merge from submit-queue
Include petsets in kubectl valid commands
Petsets are already implemented in kubectl, but there were no hints
for that subcommand.
Fixes #25615
2016-07-08 16:36:54 -07:00
juanvallejo
7df60d6b64
display resource type as part of its name
2016-07-01 12:58:02 -04:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Michal Rostecki
d285faaf8a
Include petsets in kubectl valid commands
...
Petsets are already implemented in kubectl, but there were no hints
for that subcommand.
Fixes #25615
2016-06-28 08:07:11 +02:00
Gyu-Ho Lee
a14a288c3f
pkg/kubectl: preallocate slice
...
To avoid slice growth with append operations.
2016-05-29 02:09:39 -07:00
derekwaynecarr
25ed62c3ea
Fix kubectl create secret/configmap to allow = values
2016-05-04 17:14:12 -04:00
Dr. Stefan Schimanski
7e0bb885f1
Make kubectl bash completion namespace aware and add noun aliases
...
- add namespace filtering to bash completion
- add --namespace flag bash completion
- add bash completion noun aliases
- adapt to new cobra package structure
2016-04-03 16:25:56 +02:00
Brendan Burns
be6c5b332b
Add third party support to kubectl
2016-03-31 10:53:32 -07:00
Lucas Käldström
3507bf814f
Add sa as a shorthand for serviceaccounts
2016-03-25 23:28:52 +02:00
Janet Kuo
e93b855242
Update kubectl help for 1.2 resources
2016-03-22 14:14:35 -07:00
deads2k
94d683e89b
fix ShortcutRESTMapper and prevent it from ever silently failing again
2016-02-25 07:35:22 -05:00
Madhusudan.C.S
781480d7fe
Add DaemonSets and Deployments to valid resources list in kubectl.
2016-02-23 11:19:19 -08:00
Paul Morie
51a9c2c9ba
Add kubectl create configmap
2016-02-18 21:24:21 -05:00
deads2k
9901a386c3
remove ResourceIsValid
2016-02-15 07:49:48 -05:00
Madhusudan.C.S
4f9b8b2bfc
Link all the ReplicaSet controller boilerplate together.
...
1. Enable replica set in controller manager.
2. Enable replica set etcd storage in master package.
3. Add replica set support to kubectl commands.
2016-02-05 21:05:10 -08:00
Paul Weil
03261146b0
api
2016-02-05 08:45:50 -05:00
deads2k
20f9c2c545
find partial resource matches
2015-12-21 09:26:06 -05:00
Clayton Coleman
151b4e5958
Tweak explain messages and abstract client
2015-12-18 00:27:22 -05:00
Abhishek Shah
6f63875165
Reverting 18442
2015-12-17 16:57:29 -08:00
deads2k
41b78ad2b6
find partial resource matches
2015-12-16 10:19:31 -05:00
k8s-merge-robot
f525c2e587
Merge pull request #18268 from tmrts/sort/constants
...
Auto commit by PR queue bot
2015-12-09 08:44:01 -08:00
deads2k
66eecb963a
update more kubectl bits for groupversion
2015-12-07 09:01:44 -05:00
Tamer Tas
5ac372dfce
Alphabetize kubectl resource shortcuts list
2015-12-07 06:05:42 +02:00
deads2k
8679925847
update RESTMapping API to be properly typed
2015-11-25 14:02:37 -05:00
deads2k
5c4fb5bcbe
make RESTMapper.KindFor
2015-11-25 14:02:37 -05:00
deads2k
9e9b9f2da3
fix outputversion restmapper
2015-11-25 12:15:48 -05:00
Janet Kuo
54b743bc05
Change resource "ingress" to "ingresses" in URL path and kubectl
2015-10-25 16:54:25 -07:00
Janet Kuo
57388f9f94
Support kubectl group/resource name
2015-10-06 13:12:32 -07:00
Prashanth Balasubramanian
99b0e051fc
Kubectl printer
2015-09-29 18:51:24 -07:00
Mike Danese
77a06cbf05
Merge pull request #13183 from mikedanese/daemon_kubectl
...
Add daemonset support to kubectl
2015-09-16 19:02:36 -07:00