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
Jordan Liggitt
17aa60686e
Deprecate and remove use of alpha metadata.initializers field, remove IncludeUninitialized options
2019-01-23 16:34:43 -05:00
Kubernetes Prow Robot
e8a10abd31
Merge pull request #72605 from WanLinghao/port_forward_description_improve
...
Improve portforward command's description
2019-01-22 13:40:56 -08:00
Kubernetes Prow Robot
2300d7d923
Merge pull request #73144 from juanvallejo/jvallejo/deduplicate-user-path
...
add PATH de-duplication when searching for plugins
2019-01-22 08:46:01 -08:00
Di Xu
6576e1f790
kubectl supports copying files with wild card
2019-01-22 15:56:13 +08:00
Di Xu
37b9bd36f7
rename temp variable filepath to fpath
2019-01-22 15:48:53 +08:00
Kubernetes Prow Robot
0a7d8ec6cc
Merge pull request #73035 from juanvallejo/jvallejo/make-apiresource-discovery-nonfatal
...
make api-resource discovery errors non-fatal
2019-01-21 14:20:43 -08:00
juanvallejo
7f0303faf2
update bazel
2019-01-21 14:16:16 -05:00
juanvallejo
dbf9aa5009
add PATH de-duplication when searching for plugins
2019-01-21 13:00:42 -05:00
Mikalai Radchuk
2a230cc119
Allows to read from multiple logs simultaneously
...
Which makes possible to combile the `-f` and `-l` flags in kubectl logs
2019-01-20 13:50:22 +00:00
Kubernetes Prow Robot
9d58c8fbcf
Merge pull request #71117 from dixudx/read_kubeconfig_once
...
loads kubeconfig only once
2019-01-19 02:25:26 -08:00
WanLinghao
d4f5228b81
Add `kubectl auth can-i --list` option which could help users know what actions they can do in specific namespace.
2019-01-19 15:58:44 +08:00
juanvallejo
23d52b4829
update bazel
2019-01-18 17:28:09 -05:00
Kubernetes Prow Robot
2540969b64
Merge pull request #73024 from soltysh/fix_createjob
...
Image is a required parameter
2019-01-17 17:11:49 -08:00
juanvallejo
b20a8c6b04
make api-resource discovery errors non-fatal
2019-01-17 13:58:45 -05:00
Maciej Szulik
2f59dd752c
Image is a required parameter
2019-01-17 15:58:41 +01:00
Kubernetes Prow Robot
af31a202ea
Merge pull request #72276 from vithati/users/vithati/kubectlissue503
...
Allow setting images for 'InitContainers' through kubectl set command.
2019-01-17 05:18:04 -08:00
Sascha Grunert
ba7aaa911d
Update dedent to latest release
...
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-01-17 08:30:07 +01:00
Kubernetes Prow Robot
7a8ac58756
Merge pull request #72924 from liggitt/remove-swagger
...
Remove swagger 1.2, swagger-ui
2019-01-15 20:19:20 -08:00
Kubernetes Prow Robot
ce19aad22b
Merge pull request #70527 from qingsenLi/git181101
...
remove repetitive word in annotation
2019-01-15 20:19:09 -08:00
WanLinghao
71bf483618
Improve portforward command's description which hint the requirment of 'socat' command
2019-01-16 09:24:23 +08:00
Jordan Liggitt
ef4983fb52
Update generated files
2019-01-15 13:33:06 -05:00
Jordan Liggitt
9229399bd6
Remove build/verify scripts for swagger 1.2 API docs, API server swagger ui / swagger 1.2 config
2019-01-15 13:33:06 -05:00
Jordan Liggitt
c12d8a56f8
Find current resourceVersion for waiting for deletion/conditions
2019-01-11 15:24:05 -05:00
Alan
45e332c1fd
fix typo "udp" -> "UDP"
2019-01-11 13:25:44 +08:00
Vikranth Thati
f72072cd60
Allow setting images for initContainers through kubectl set command.
2019-01-10 22:28:26 +05:30
Kubernetes Prow Robot
1edd44bbe3
Merge pull request #72448 from nak3/attach-completion
...
Fix wrong completion for kubectl attach
2019-01-07 17:56:14 -08:00
Kubernetes Prow Robot
1831babae8
Merge pull request #72352 from liggitt/prune-apps-v1
...
Prune apps/v1 resources
2019-01-04 14:09:41 -08:00
Justin SB
19a5528a65
Remove executable permission from testdata
2019-01-03 12:21:31 -05:00
Jordan Liggitt
2b1a2d361f
Use tabwriter with remembered column widths
2019-01-01 22:27:36 -05:00
Kenjiro Nakayama
f7aca76bac
Fix wrong completion for kubectl attach
...
Although `kubectl attach POD_NAME <tab>` completes container name,
kubectl attach needs `-c` option so the command causes error as:
```
$ kubectl attach nginx-7cdbd8cdc9-b5rhr nginx
error: the server doesn't have a resource type "nginx-7cdbd8cdc9-b5rhr"
```
This patch changes the completion to the same way as `kubectl exec`.
2018-12-31 13:34:56 +09:00
Jordan Liggitt
9186a81489
Prune apps/v1 resources
2018-12-27 00:44:09 -05:00
Pingan2017
672cad60e9
code cleanup for kubectl config
2018-12-25 15:24:57 +08:00
Kubernetes Prow Robot
e2f2ca2b29
Merge pull request #70599 from caesarxuchao/kubectl-wait-all
...
Enable --all flag for kubectl wait
2018-12-21 20:19:21 -08:00
Kubernetes Prow Robot
6da32b078f
Merge pull request #72006 from soltysh/allnamespaces_shorthand
...
Introduce -A as a shorthand for --all-namespaces in kubectl
2018-12-19 14:13:40 -08:00
Jordan Liggitt
0ff455e340
generated files
2018-12-19 11:19:12 -05:00
Jordan Liggitt
fd9e9b01b1
Remove uses of extensions/v1beta1 clients
2018-12-19 11:18:53 -05:00
Maciej Szulik
885bed15da
Introduce -A as a shorthand for --all-namespaces in kubectl
2018-12-19 14:37:43 +01:00
Kubernetes Prow Robot
483dfc4902
Merge pull request #71934 from annehwatson/typo
...
Fix typo
2018-12-12 16:02:37 -08:00
Antoine Pelisse
95eec905c7
diff: Make filename cross-platform compatible
2018-12-11 15:36:26 -08:00
Antoine Pelisse
b6135f63aa
diff: Fix overlapping filenames
...
The filename can overlap when multiple resources have the same name (but
obviously are of a different type). Include the name of the type in the
file name to prevent the overlap.
2018-12-11 09:19:52 -08:00
annehwatson
0a8a07f666
Fix typo
2018-12-10 20:16:17 -08:00
Antoine Pelisse
f9ca4aafc6
apply: fix detection of non-dry-run enabled servers
...
Apply only checks that the server supports dry-run in the create path,
not the update path, which is pretty bad.
2018-12-07 10:54:03 -08:00
Kubernetes Prow Robot
1a82272782
Merge pull request #71684 from danielqsj/typo-fix
...
Fix typos like limitting
2018-12-07 07:58:09 -08:00
Di Xu
4b524ef995
kubectl loads config file once and uses persistent client config
2018-12-07 15:41:40 +08:00
Jordan Liggitt
4611bb448e
Fix sort-by regression
2018-12-06 12:32:30 -05:00
Kubernetes Prow Robot
b1aed1593e
Merge pull request #70682 from idealhack/fix-golint-pkg-kubectl-cmd
...
Fix some golint errors for packages in `pkg/kubectl/cmd`
2018-12-04 00:49:09 -08:00
danielqsj
3c055aa4b4
Fix typos like limitting
2018-12-04 11:01:40 +08:00
Jordan Liggitt
74ecf8d978
Improve reconcile output to explain what changes are being made
2018-11-29 10:55:38 -05:00
k8s-ci-robot
64b96d426a
Merge pull request #69885 from clickyotomy/master
...
Fix local copy path for `kubectl cp'.
2018-11-28 23:31:21 -08:00
Jordan Liggitt
2fd10764c8
Clarify reconcile command documentation
2018-11-27 23:27:15 -05:00
k8s-ci-robot
1e50c57113
Merge pull request #70740 from mfpierre/fix-kubectl-get-sort-out-of-range
...
Fix index out of range error when sorting kubectl get
2018-11-24 12:19:06 -08:00
Yang Li
141d33a2a5
Fix some golint errors for packages in `pkg/kubectl/cmd`
...
Co-authored-by: Arijit Basu <sayanarijit@gmail.com>
2018-11-22 22:09:08 +08:00
k8s-ci-robot
28182b6606
Merge pull request #71156 from apelisse/race-condition-diff
...
Optimistic-locking on diff
2018-11-21 03:35:04 -08:00
Antoine Pelisse
a889f37505
Optimistic-locking on diff
...
There is currently a race-condition when diffing, where we get the
object and then run a server-side dry-run patch and compare the two
results. If something changes the object on the server between the get
and the patch, the diff is going to show unrelated changes. We can now
specify the exact revisionversion that we want to patch, and that will
return a conflict, and we can retry multiple times to get a
non-conflicting diff. Eventually (after 3 times), we diff without
checking the version and throw a warning that the diff might be
partially wrong.
2018-11-20 14:34:37 -08:00
Antoine Pelisse
89daa462ff
Allow kubectl patcher to patch specific version
...
Give a new "ResourceVersion" option to the patch so that the patch can
be forced against a specific version. Also there is no way to customize
how many retries the patcher should do on conflicts, so also add a
"Retries" option that let's one customize it.
2018-11-20 14:34:08 -08:00
k8s-ci-robot
e26b730143
Merge pull request #71103 from Pingan2017/autoscale-sts-kubectl
...
support statefulset in kubectl autoscale command
2018-11-16 12:03:51 -08:00
k8s-ci-robot
1cdc918e11
Merge pull request #70728 from Pingan2017/remove-kubectl-run-container
...
Remove deprecated kubectl command aliases 'run-container'
2018-11-16 01:53:11 -08:00
Pingan2017
c3bb1c4601
support statefulset in kubectl autoscale command
2018-11-16 10:42:39 +08:00
k8s-ci-robot
e615df9d23
Merge pull request #70950 from yue9944882/chore/prune-cli-describer-internal
...
Use versioned types in kubectl describer
2018-11-15 15:00:12 -08:00
k8s-ci-robot
7cf211d7de
Merge pull request #69196 from CaoShuFeng/job.yaml
...
fix kubectl wait with no resource name provided
2018-11-15 14:59:42 -08:00
zuoxiu.jm
da9387131e
prune internal clients from kubectl describer
2018-11-16 00:11:10 +08:00
k8s-ci-robot
012a438dbe
Merge pull request #68655 from goodluckbot/kubectl-cordon-drain-uncordon
...
Support multiple arguments for cordon and drain
2018-11-14 20:34:48 -08:00
k8s-ci-robot
4c4a76557d
Merge pull request #70956 from apelisse/add-diff-test
...
Add test for CRD server-dry-run and fix bug
2018-11-13 19:45:53 -08:00
k8s-ci-robot
54243e1921
Merge pull request #69344 from zegl/improve-kubectl-apply-prune-output
...
Fix dry-run output in kubectl apply --prune
2018-11-13 19:45:34 -08:00
k8s-ci-robot
d00cb23c8d
Merge pull request #71006 from liggitt/kubectl-run-apps-v1
...
update kubectl run to generate apps/v1 deployments
2018-11-13 16:14:23 -08:00
k8s-ci-robot
709e6ac3e2
Merge pull request #70413 from Pingan2017/kubectl-config-view
...
validate args for kubectl config view
2018-11-13 16:13:45 -08:00
k8s-ci-robot
68b4be3e19
Merge pull request #70775 from freehan/pod-ready-cli
...
add readiness gates in kubectl extended output for pods
2018-11-13 14:59:18 -08:00
Jordan Liggitt
03f26e4612
update kubectl run to generate apps/v1 deployments
2018-11-13 14:39:25 -05:00
Sean Sullivan
e0b712d428
kubectl: move custom columns printers and flags
2018-11-12 14:31:59 -08:00
k8s-ci-robot
3bcbc5da79
Merge pull request #70887 from seans3/kubectl-get-fix
...
kubectl get: remove internal resource dependency
2018-11-12 13:20:08 -08:00
Antoine Pelisse
d3d4d268ac
Add test for CRD server-dry-run and fix bug
...
Add a new test to make sure we can server-dry-run CRDs and also fix a
typo now that we have a test, we could notice that it doesn't work.
2018-11-12 11:06:27 -08:00
goodluckbot
df31468ce7
Support multiple arguments for cordon and drain
2018-11-12 00:28:36 +08:00
Gustav Westling
37c253aba1
Fix the TestRunApplyPrintsValidObjectList test
...
The fake webclient should return one ConfigMap per request, not the whole ConfigMapList
Also added additional tests to the output
2018-11-11 15:19:29 +01:00
Gustav Westling
74e63c8f00
Fix dry-run output in kubectl apply --prune
...
Makes dry-run output match what would happen when running in non dry-run mode.
Objects would only get added to visitedUids if running in non dry-run mode.
visitedUids is used by prune() to know if an action should be taked on the item or not.
Fixes #67863
2018-11-11 15:06:38 +01:00
Davanum Srinivas
954996e231
Move from glog to klog
...
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
* github.com/kubernetes/repo-infra
* k8s.io/gengo/
* k8s.io/kube-openapi/
* github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods
Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
k8s-ci-robot
7872a1db2f
Merge pull request #70856 from lojies/cleanuptaint
...
code cleanup for kubectl taint
2018-11-10 00:14:22 -08:00
k8s-ci-robot
2dcdad297e
Merge pull request #70883 from seans3/printing-test-remove
...
kubectl: remove redundant test
2018-11-09 16:23:13 -08:00
Sean Sullivan
c814f61510
kubectl get: remove internal resource dependency
2018-11-09 11:33:11 -08:00
Sean Sullivan
6b0f66d864
kubectl: remove redundant test
2018-11-09 11:12:20 -08:00
lojies
e3d69d8c33
code cleanup for kubectl taint
2018-11-09 16:22:00 +08:00