Commit Graph

147 Commits

Author SHA1 Message Date
feihujiang
1e10a7cc59 Kubectl scale command accepts a filename param 2015-08-13 14:26:25 +08:00
feihujiang
18a1400928 Kubectl get command accepts a filename param 2015-08-13 14:12:29 +08:00
feihujiang
0110f3176b Kubectl patch command accepts a filename param 2015-08-13 11:13:31 +08:00
feihujiang
4b9afc516e Kubectl label command accepts a filename param 2015-08-13 10:21:38 +08:00
Brendan Burns
99b8df1812 Add field based sorting to the kubectl command line. 2015-08-12 16:51:36 -07:00
feihujiang
c0b2098844 Kubectl expose command accepts a filename param 2015-08-12 16:16:37 +08:00
Alex Robinson
5836d455b8 Merge pull request #12239 from eparis/bash-completions-rolling-update
Bash completion annotations for rollingupdates
2015-08-10 15:02:48 -07:00
Alex Robinson
9bda3c5998 Merge pull request #11138 from feihujiang/portForwardWithoutP
kubectl port-forward accept a pod without -p
2015-08-10 13:29:14 -07:00
Eric Paris
9de64328a5 Bash completion annotations for rollingupdates 2015-08-10 10:26:18 -04:00
Marek Grabowski
e27787c9d3 Merge pull request #12292 from brendandburns/stdin3
Add support for `--restart`
2015-08-10 14:54:54 +02:00
Satnam Singh
b071857c0f Merge pull request #10816 from feihujiang/kubectlDescribeAcceptFileNameParam
Kubectl describe command accepts a filename param
2015-08-07 15:23:57 -07:00
Brendan Burns
e42d6aa255 Add --restart support to kubectl run 2015-08-07 13:20:09 -07:00
feihujiang
90f4c79bb9 kubectl port-forward accept a pod without -p 2015-08-07 17:21:59 +08:00
feihjiang
2ca200f087 Kubectl describe command accepts a filename param 2015-08-07 16:28:51 +08:00
Brendan Burns
9ac50b4980 Add interactive run that combines run and attach. 2015-08-06 20:20:14 -07:00
Stef Walter
f6da3fdbe1 kubectl: Add proxy --unix-socket=/file/path option
Proxies on a TCP port are accessible outside the current security
context (eg: uid). Add support for having the proxy listen on a
unix socket, which has permissions applied to it.

We make sure the socket starts its life only accessible by the
current user using Umask.

This is useful for applications like Cockpit and other tools which
want the help of kubectl to handle authentication, configuration and
transport security, but also want to not make that accessible to
all users on a multi-user system.
2015-08-06 11:56:47 +02:00
Alex Mohr
0e8020f9bb Merge pull request #11779 from JanetKuo/add-kubectl-annotation
Auto commit by PR queue bot
2015-08-04 18:28:12 -07:00
Alex Mohr
7ac6c50b9d Merge pull request #12094 from brendandburns/kubectl
Auto commit by PR queue bot
2015-08-03 17:09:06 -07:00
Janet Kuo
7e63213478 Implement kubectl annotation update command. Refactor kubectl annotate to decouple command framework from business logic. 2015-08-03 14:35:56 -07:00
Mike Danese
cf4cb1a6a3 Merge pull request #10474 from kargakis/scale-multiple-controllers
Enable scaling multiple controllers
2015-07-31 14:51:43 -07:00
Brendan Burns
c9bc1456ff Add session affinity flags to kubectl expose 2015-07-31 10:34:52 -07:00
kargakis
0e796ca09a Enable scaling multiple controllers 2015-07-31 10:24:59 +02:00
Brendan Burns
97cb1cd071 Add support for attach to kubectl 2015-07-30 12:56:18 -07:00
Janet Kuo
0e42d0699a Add '-o name' to mutations 2015-07-27 14:06:53 -07:00
Janet Kuo
62b488359f Enable -c for kubectl logs container arg 2015-06-30 13:25:54 -07:00
Chao Xu
7f89a29aad add "kubectl patch". It will replace "kubectl udpate --patch" in the future 2015-06-29 16:36:45 -07:00
Chao Xu
9b3d42c090 Add command "kubectl replace". "kubectl update" is still supported as an alias.
"kubectl replace --patch" is NOT supported. It's moved to "kubectl patch" as a separate command in another commit.
2015-06-29 12:14:24 -07:00
Chao Xu
ef5de91fd7 add "--force" flag to "kubectl update";
update relevant tests
2015-06-25 17:16:20 -07:00
Anastasis Andronidis
b06ef70057 Print resource labels as columns 2015-06-22 00:44:51 +02:00
Eric Paris
f40fce4598 kubectl log->logs in bash completions
The kubectl log command switched to logs. But the bash completions code
was still looking for a singular
2015-06-19 16:00:58 -04:00
Mike Danese
3de11e2fa8 reenable patch serverside using strategic-merge-patch 2015-06-18 12:06:46 -07:00
Fabio Yeon
0453f9ea9d Merge pull request #9705 from hurf/label4describe
Add label support for kubectl describe
2015-06-15 19:33:09 -07:00
Abhi Shah
86b6150fb0 Merge pull request #9287 from brendandburns/kubectl
Add some XSRF protection to kubectl proxy.
2015-06-12 13:51:08 -07:00
hurf
fa0efe3927 Add label support for kubectl describe
Add -l option to kubectl describe command, allow it return
multiple results filtered by label selector.
2015-06-12 15:08:28 +08:00
Brendan Burns
4aeee94603 Add some XSRF protection to kubectl proxy. 2015-06-10 20:55:33 -07:00
derekwaynecarr
5b005fa30b Add namespace describer 2015-06-09 15:52:44 -04:00
Brendan Burns
ab0c9b8e1e Add a custom timeout flag for stop/delete. Also try to be smarter about setting the timeout. 2015-06-03 11:21:30 -07:00
Jeff Lowdermilk
90a5b8c845 Disable --patch for kubectl update 2015-05-29 09:31:49 -07:00
Tim Hockin
eab1ceccd4 Merge pull request #8628 from jlowdermilk/delete-not-found
Delete fails on notfound errors.
2015-05-27 16:26:41 -07:00
Tim Hockin
ffabf17ed4 Merge pull request #8604 from brendandburns/kubectl
Make exec more consistent with the rest of the kubectl commands.
2015-05-27 16:23:59 -07:00
Jeff Lowdermilk
3cf4d9b2e6 Delete fails on notfound errors.
If deleting multiple resources, command will continue on error and
report not found resources at the end.
2015-05-27 16:02:54 -07:00
Brendan Burns
2ec4b409e1 Make exec more consistent with the rest of the kubectl commands. 2015-05-27 15:47:32 -07:00
Anastasis Andronidis
9e3a540940 rename resize to scale 2015-05-27 19:08:06 +02:00
Anastasis Andronidis
d4a47bdb9e rename run-container to run in kubectl 2015-05-27 19:07:17 +02:00
Anastasis Andronidis
5eae2378d6 Warn for every _ flag user or cmd defined
also renames all global _ flags to -
2015-05-27 11:23:52 +02:00
Cesar Wong
cb872e9243 Rename 'kubectl log' to 'kubectl logs' 2015-05-26 08:28:16 -04:00
Justin Santa Barbara
973c2e4819 Add Type to ServiceSpec: ClusterIP or LoadBalancer 2015-05-22 19:14:21 -04:00
Dawn Chen
cc6a31354e Merge pull request #8169 from kargakis/expose-use-resource-builder
expose: Use resource builder
2015-05-22 12:29:24 -07:00
Masahiro Sano
8ce64ec69e add --all-namespaces flag to request across all namespaces 2015-05-22 23:25:12 +09:00
kargakis
30958f892d expose: Use resource builder
Plus:
* Rename flag --service-name to --name
* Some refactoring
2015-05-20 23:55:07 +02:00
Nikhil Jindal
d75bd8bf2a Merge pull request #7101 from liggitt/service_account
ServiceAccounts
2015-05-12 10:23:41 -07:00
Victor Marmol
43029345f9 Merge pull request #7973 from dchen1107/podstatus
Add kubectl log --previous support to view last terminated container log
2015-05-11 17:08:45 -07:00
Jeff Lowdermilk
ac87ed6516 Merge pull request #8064 from deads2k/death-to-auth-path
eliminate auth-path
2015-05-11 15:41:41 -07:00
Jordan Liggitt
53d55f4192 Add ServiceAccount API type, client 2015-05-11 17:18:05 -04:00
Jordan Liggitt
6e1e7dbb24 Add ServiceAccountToken SecretType 2015-05-11 17:18:05 -04:00
Dawn Chen
ecaf0874b2 Introduce --previous option to kubectl log 2015-05-11 10:14:22 -07:00
Nikhil Jindal
9c0fdc7afd Merge pull request #8039 from nak3/delete-status
Delete status from displayable resources
2015-05-11 10:11:42 -07:00
deads2k
19784dbc4f remove auth-path from kubeconfig 2015-05-11 10:40:23 -04:00
Kenjiro Nakayama
c13f457885 Use template to get first column in __kubectl_parse_get() 2015-05-10 23:32:24 +09:00
Kenjiro Nakayama
5a0acecc54 Delete status from displayable resources 2015-05-10 19:28:02 +09:00
Eric Paris
d28660ae49 Remove useless bash conditional
bash just returns the last return code, why are we testing and then
doing the same?
2015-05-08 12:22:07 -04:00
Brian Grant
32b4b1cdd7 Merge pull request #7575 from brendandburns/kubectl
Rolling Updates: Add support for --rollback.
2015-05-06 11:35:57 -07:00
Brendan Burns
c9e33e197d Add support for --rollback. 2015-05-06 10:21:35 -07:00
Eric Paris
930f8645b5 Update bash completions
Because we updated cobra, we get a better set of bash completions
2015-05-05 19:19:47 -04:00
Robert Bailey
93a781ff66 Merge pull request #7722 from eparis/minor-bash-fixes
Minor bash update found by shellcheck.net
2015-05-04 13:03:26 -07:00
Victor Marmol
90de73ac7a Merge pull request #7536 from rjnagal/node
Add --hostport to run-container.
2015-05-04 12:55:12 -07:00
Eric Paris
87613eee87 Minor bash update found by shellcheck.net 2015-05-04 14:52:50 -04:00
Wojciech Tyczynski
72f9e940a8 Merge pull request #7694 from nak3/bash-comp-add-label
Add kubectl_label to custom functions in bash completion
2015-05-04 15:11:41 +02:00
Kenjiro Nakayama
c3485ca85c Add kubectl_label to custom functions of bash completion 2015-05-04 20:57:56 +09:00
Filip Grzadkowski
be2b2466f3 Merge pull request #7076 from eparis/bash-5-kubectl-required-flags
annotate required flags for bash_completions
2015-05-04 13:26:11 +02:00
Rohit Jnagal
9cbfb0c3f9 Add --hostport to run-container.
This helps as a starting point to show a single-machine container.
Its easier to use this as an example to show where host port mapping breaks and move on to
services.
2015-05-01 23:45:03 +00:00
Piotr Szczesniak
11a2dc496f Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
Those are changes which touch users required by Termination Notice

Addresses #6804
2015-04-30 18:00:33 +02:00
Brendan Burns
e1256c0802 Make delete actually stop resources by default.
Refactor for shared code.
2015-04-28 14:36:43 -07:00
Brendan Burns
217e6ff0d0 First part of improved rolling update, allow dynamic next replication controller generation. 2015-04-24 15:19:00 -07:00
Jeff Lowdermilk
fa6ce7b7bf Add a --raw flag to kubectl config view
Defaults to false, unless --flatten is specified. Default behavior
(--raw=false) is that byte data (Client{Certificate,Key}data,
CertificateAuthorityData) is redacted for a more human-readable view.
Useful for manually inspecting files that have embeded data.
2015-04-23 09:19:45 -07:00
Clayton Coleman
09d86b5fdb Add completions 2015-04-22 12:54:28 -04:00
Eric Paris
0620940d26 annotate required flags for bash_completions
some commands require that certain flags be set in order to function.
Annotate those flags so the bash completions will suggest to the user
that they be set.
2015-04-20 18:33:00 -04:00
Brendan Burns
d7b0b4a95b Merge pull request #6834 from eparis/bash-4-kubectl-describe
Annotate kubectl describe with describable object for bash completions
2015-04-20 14:13:53 -07:00
Fabio Yeon
951a125751 Add "componentstatus" to API for easier cluster health check. 2015-04-17 11:58:23 -07:00
Jeff Lowdermilk
97e4549170 Merge pull request #6680 from deads2k/deads-change-kubeconfig-chain
change kubeconfig loading chain
2015-04-16 13:57:31 -07:00
deads2k
de4be5422c change kubeconfig loading order 2015-04-16 13:05:09 -04:00
Eric Paris
f272e836e0 Annotate kubectl describe with describable object for bash completions 2015-04-14 18:51:18 -04:00
Eric Paris
de3864a1c2 bash_completions: Generic function for --filename arguments
This generic function adds --filename= arguments to commands, and does
the magic so they get bash completions to find json, yaml, or yml files.
2015-04-14 18:25:52 -04:00
Jeff Lowdermilk
037407f49e Merge pull request #6791 from eparis/bash-2-kubectl-get-resources
bash_completions: annotate kubectl get with resources
2015-04-14 15:02:34 -07:00
Jeff Lowdermilk
4f552053f1 Merge pull request #6789 from eparis/bash-custom-functions
Add bash completion custom functions
2015-04-14 11:54:22 -07:00
deads2k
bac5cbbe82 add flattening and minifying options to config view 2015-04-14 10:23:10 -04:00
Eric Paris
c75ecbd8e3 bash_completions: annotate kubectl get with resources which can be 'gotten'
A user types:
  kubectl get $resource

This will cause the bash completions to suggest the possible objects the
user can ask for.  The complete list right now is:

endpoints
event
limitrange
namespace
node
persistentvolume
persistentvolumeclaim
pod
replicationcontroller
resourcequota
secret
service
status

But this list should stay up2date as api objects are added or deleted
2015-04-13 19:11:26 -04:00
Eric Paris
f6878aed3c Add bash completion custom functions
These functions call out to kubectl to get information about running
resources.  They give us completions which are kubernetes aware and thus
obviously better than just cobra subcommands and flags.
2015-04-13 18:49:28 -04:00
Eric Paris
ebb0affc21 Automatically generate bash completions for kubectl 2015-04-13 15:27:55 -04:00
Eric Paris
d5f7d5eadf Fix bash completions and update to latest 2015-04-07 20:30:57 -04:00
Eric Paris
931044be01 update the actual bash completions using this code! 2015-04-06 18:44:03 -04:00
deads2k
bc93de314a remove --ns-path option from .kubeconfig file, kick tests 2015-02-03 14:22:55 -05:00
Eric Paris
45a71bb8f3 fix kubectl log completion
When kubectl started returning the right object it changed the template
that needed to be used to get the name of the containers inside the pod.
2014-11-19 14:17:51 -05:00
Joe Beda
5b9bb1ff6f Merge branch 'eparis-rename-to-kube'
* eparis-rename-to-kube:
  rename kube server binaries to kube-
2014-11-17 09:55:11 -08:00
Eric Paris
a99c3c7963 rename kube server binaries to kube-
apiserver becomes kube-apiserver
controller-manager -> kube-controller-manager
scheduler and proxy similarly.

Only thing I promise is that right now hack/build-go.sh and
build/release.sh exit with 0.  That's it.  Who knows if any of this
actually works....
2014-11-13 20:08:26 -05:00
Eric Paris
2ec36f71ce bash completion update
add flags for namespace
add get events
add log
remove 'table' output format
add 'templatefile' output format
add 'apply' (but pretend createall doesn't exist becaues it sux when you
    want to complete on just 'create')
2014-11-07 16:41:43 -05:00
Eric Paris
a160c0f06b bash completions for kubectl
Support pre command flags:
--api-version=
-a, --auth-path=
--certificate-authority=
--client-certificate=
--client-key=
--insecure-skip-tls-verify=
--match-server-version=
-s, --server=

And commands:
get
describe
create
update
delete

Tries to be smart about things like

kubectl get -o template  requires a template file

It also tries to accept both sigular and plural versions of all
resources.  Even though it will only complete to the plural version.
2014-10-21 12:54:43 -04:00