Commit Graph

3808 Commits (0c026bfac163f0bb04283a7c2bf6b5a39ea1d3e0)

Author SHA1 Message Date
Jingfang Liu 0c026bfac1 add -k flags to kubectl subcommands 2019-02-25 16:30:27 -08:00
Kubernetes Prow Robot b473d5c111
Merge pull request #73201 from YoubingLi/bugfix
Fixes #73077 - Allow to convert type across all version
2019-02-20 02:23:21 -08:00
He Xiaoxi 4c8d0a3cd4 Fix duplicate container query param on exec pod command
Signed-off-by: He Xiaoxi <xxhe@alauda.io>
2019-02-19 15:58:43 +08:00
Marek Counts 160ed26c20 autogen files to support new project structure. 2019-02-15 10:29:31 -05:00
Marek Counts 7744f90830 Moved flag and globalflag
Moved all flag code from `staging/src/k8s.io/apiserver/pkg/util/[flag|globalflag]` to `component-base/cli/[flag|globalflag]` except for the term function because of unwanted dependencies.
2019-02-15 10:28:13 -05:00
Youbing Li 0756781994 Fixes #73077 - Allow to convert type across all version 2019-02-15 04:03:35 -05:00
Kubernetes Prow Robot 120bcd7ddd
Merge pull request #73787 from soltysh/deprecate_export
Deprecate --export flag from get command
2019-02-14 05:18:24 -08:00
Kubernetes Prow Robot d8f0146138
Merge pull request #72214 from caesarxuchao/move-discovery
Move cached discovery clients to their own packages
2019-02-13 23:07:00 -08:00
Kubernetes Prow Robot a92729a301
Merge pull request #64820 from WanLinghao/ctl_selfsubjectrulesreview_support
Add `kubectl auth can-i --list` option which could help users know what actions they can do in specific namespace
2019-02-12 23:22:23 -08:00
Kubernetes Prow Robot ce4fd07b06
Merge pull request #71564 from liggitt/reconcile-details
Improve reconcile output to explain what changes are being made
2019-02-12 18:45:13 -08:00
Kubernetes Prow Robot 66149bd61d
Merge pull request #73033 from Liujingfang1/kustomizeSubcommand
add kustomize as a subcommand in kubectl
2019-02-12 15:10:36 -08:00
Chao Xu 1f2e2e61cf generated 2019-02-12 15:04:57 -08:00
Chao Xu 3f21ca029a changing imports 2019-02-12 10:06:04 -08:00
Dr. Stefan Schimanski 618050e35d client-go: extend discovery intf with ServerGroupsAndResources 2019-02-12 14:28:19 +01:00
Jingfang Liu 8d6ab20753 add kustomize as a subcommand in kubectl 2019-02-11 16:43:57 -08:00
Kubernetes Prow Robot 69cf2684bb
Merge pull request #73669 from WanLinghao/add_get_case
Add a case to illustrate how to use `kubectl get -o custom-columns`
2019-02-10 20:47:26 -08:00
Mikalai Radchuk 4ee2010111 Fixes address parsing in port-forward
The rules for address parsing are:

* Explicitly specified addresses must bind successfully
* `localhost` is pinned to `127.0.0.1` and `::1` and at least one of those must bind successfully

This change also makes output of the command consistent
between runs with the same arguments.
Previously the command was using the range via map of addresses
which sometimes was producing different output because the order
of values is not guaranteed in Go.
2019-02-10 12:48:52 +00:00
WanLinghao 4a1a2c9017 Add a case to illustrate how to use `kubectl get -o custom-columns` 2019-02-10 14:42:13 +08:00
Kubernetes Prow Robot 37a402a3bc
Merge pull request #72806 from zgfh/patch-3
fix typo "udp" -> "UDP"
2019-02-08 13:14:15 -08:00
Kubernetes Prow Robot b50c643be0
Merge pull request #73540 from rlenferink/patch-5
Updated OWNERS files to include link to docs
2019-02-08 09:05:56 -08:00
juanvallejo e8df247597
fix --local panic in set commands 2019-02-07 16:56:32 -05:00
Maciej Szulik 3f3316be31
Deprecate --export flag from get command 2019-02-06 15:04:57 +01:00
Kubernetes Prow Robot fcb0d60d4c
Merge pull request #73716 from deads2k/delete-all
add --all-namespaces to kubectl delete
2019-02-06 01:20:15 -08:00
David Eads 66b1f5ba67 add --all-namespaces to 2019-02-05 13:37:14 -05:00
Antoine Pelisse b55417f429 Plugin FieldManager in CRD handler, change to API 2019-02-04 13:51:49 -08:00
Antoine Pelisse 0e1d50e70f API Machinery, Kubectl and tests 2019-02-04 13:51:48 -08:00
Roy Lenferink b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Kubernetes Prow Robot 6ea70a036e
Merge pull request #73694 from soltysh/rename_polymorphichelper
Rename AttachableLogsForObjectFunc -> AttachablePodForObjectFunc to better reflect its purpose
2019-02-04 08:24:02 -08:00
Kubernetes Prow Robot b4a02c359b
Merge pull request #71746 from rctl/rctl-wait-all
Add support for waiting by label selector or on all resources
2019-02-04 06:21:00 -08:00
Maciej Szulik 0a04bbbd92
Rename AttachableLogsForObjectFunc -> AttachablePodForObjectFunc to better reflect its purpose 2019-02-04 13:18:02 +01:00
Kubernetes Prow Robot 1d4861ee3d
Merge pull request #71397 from liggitt/reconcile-doc
Clarify reconcile command documentation
2019-02-03 12:02:35 -08:00
Rasmus Jönsson 4c31e9855d Add support for waiting by label selector or on all resources
Add test for multiple deletions in kubectl watch
2019-02-02 16:26:00 +01:00
juanvallejo 0257a2bcee
allow re-usability of plugin handler, allow support for multiple valid plugin filename prefixes 2019-02-01 16:17:47 -05:00
Kubernetes Prow Robot b8b0dbcb7d
Merge pull request #73599 from tedyu/master
Add ps1 to windows executable extensions
2019-02-01 06:32:01 -08:00
Kubernetes Prow Robot ad58fb1ea0
Merge pull request #73542 from juanvallejo/jvallejo/log-missing-dir-errors
make missing-directory errors non fatal
2019-02-01 04:45:12 -08:00
Ted Yu 9e227af65c Add ps1 to windows executable extensions 2019-01-31 09:21:01 -08:00
Kubernetes Prow Robot 29e9ff36a9
Merge pull request #73063 from WanLinghao/kubectl_get_custom_clomuns_fix
Improve custom-columns option of `kubectl get ` command
2019-01-31 01:39:49 -08:00
WanLinghao 97ec74df03 The client-go library supports user get Object info in the form of .spec.containers[0:3].name.
But kubectl get command doesn't support this.
This patch fix this, now users could get object info like:
a. kubectl get pod test-pod -o custom-columns=CONTAINER:.spec.containers[0:3].name
b. kubectl get pod test-pod -o custom-columns=CONTAINER:.spec.containers[-2:].name
2019-01-31 09:38:04 +08:00
juanvallejo de015167a9
make missing-directory errors non fatal 2019-01-30 15:45:32 -05:00
Danny Shemesh aae1944a07 Added windows executable extensions to Kubectl plugins
Currently, the kubectl plugins system - when running under Windows - will determine that a plugin is executable
by looking at its extension, comparing it to '.exe'.

I think we should allow plugins w/ a few more known extensions (.bat, .com, .cmd; for example) -
This would give more of a similar experience to plugins under *nix, where shell scripts are often used.

Moreover, there were two windows-specific behaviors that were redundant,
which I've removed:

1. In plugin.go - There's no need to differentiate between windows and
under OS-es when looking at the PATH variable; It can be refered as 'PATH'
in Windows as well

2. In cmd.go - There's no need to append a suffix when looking up
plugins on windows; One can safely use 'exec.LookPath' without a suffix
on Windows - and get automatic resolving for known executable types
2019-01-30 19:24:16 +02:00
Kubernetes Prow Robot a5e424dc17
Merge pull request #72923 from saschagrunert/dedent-update
Update dedent to latest release
2019-01-25 18:32:23 -08:00
Kubernetes Prow Robot 408d4c0cb8
Merge pull request #72588 from prksu/kubectl-config-set-example
Add kubectl config set example
2019-01-25 06:41:31 -08:00
Ahmad Nurus S 69ad3dbeb7 Add kubectl config set example 2019-01-25 20:21:24 +07:00
Kubernetes Prow Robot 2cbb16bc8d
Merge pull request #73243 from andrewsykim/update-utils-vendor
Update vendor k8s.io/utils and remove internal utils
2019-01-24 16:30:14 -08:00
Kubernetes Prow Robot e28c757e87
Merge pull request #72972 from liggitt/remove-alpha-initializers
Remove use of alpha initializers
2019-01-24 14:54:52 -08:00
Andrew Kim 0bc5508aca replace client-go/util/integer with k8s.io/utils/integer 2019-01-24 15:34:21 -05:00
Kubernetes Prow Robot 9ecce4fdcf
Merge pull request #72641 from dixudx/cp_file_wildcard
kubectl supports copying files with wild card
2019-01-24 10:37:15 -08:00
Kubernetes Prow Robot 2cd88258c7
Merge pull request #69255 from Pingan2017/remove-show-all
remove --show-all
2019-01-24 06:30:43 -08:00
Kubernetes Prow Robot b18fc08ca7
Merge pull request #73153 from WanLinghao/apply_dry_run_warning
Add warning info against `kubectl apply --dry-run` which direct people use --server--dry-run instead
2019-01-24 02:56:18 -08:00
WanLinghao 66931c57e8 Add warning info against `kubectl apply --dry-run` which direct people use --server--dry-run instead 2019-01-24 13:18:50 +08:00