Kiyoshi Muranaka
5457c2b27c
Fix index out of range panic for kubectl alpha debug
...
Fix containerNameToRef func to get init containers and ephemeral containers properly.
Set EphemeralContainers in generatePodCopyWithDebugContainer func to nil which means
dropping ephemeral containers from a copy of pod so that it can be created successfully,
otherwise it is rejected by the API server.
Kubernetes-commit: bf3dfaf99942eab20fac1570ca0146d32cb93b57
2020-09-07 02:43:21 +09:00
Gaurav Singh
66f1998dda
kubectl: Use Fprintf
...
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Fix typo
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Change Fprintf to Fprintln
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Use %q instead of %s
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Change %q to %s
Kubernetes-commit: b326948a9a317dbc17c6f32dfeea26e090bde3b0
2020-05-25 18:19:27 -04:00
Eddie Zaneski
ac345319b3
Update kubectl to use new vendored github.com/fvbommel/sortorder dependency
...
The author of this dependency is removing the vanity url and has
instructed users to use the GitHub path.
This updates the dependency to the module-less pin to the v1 module tag.
https://github.com/fvbommel/util/issues/5
https://github.com/fvbommel/util/issues/6
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
Kubernetes-commit: db826b14583be77a1757f7f8aaef864ece627042
2020-09-02 17:52:26 -06:00
Clayton Coleman
8a21d7e297
kubectl: Allow --patch-file to be passed to `kubectl patch`
...
The current structure is limited in the size of the patch it can
accept depending on the shell of the environment (for instance, a
900kb patch cannot be applied in bash 4 on Fedora 32). Allow a user
to specify `--patch-file` to provide a file containing the patch
rather than directly on the command line.
Kubernetes-commit: 6c165083ce4665dbdbc29fbdea03e538e87abaa2
2020-07-29 18:40:55 -04:00
Maciej Szulik
e80cf9ce71
Use temporary directory when creating temporary file in tests
...
Kubernetes-commit: a7529f4cd90ea6f662e1398608eccd86e886026f
2020-07-17 10:41:16 +02:00
Adrian Smith
e8b951b248
Add unit test to kubectl/cmd/run
...
This test verifies that adding the "expose" parameter results in a
service being created for the pod.
Kubernetes-commit: c5c48c96804a6dd47cb8fbac25280f3b456f1cae
2020-06-15 20:25:45 +01:00
Sally O'Malley
ecd37ea662
get: -o yaml, json set ServerPrint false
...
Kubernetes-commit: 01e344feb6368647dc1a48c7a3a27b5852f9b89d
2020-08-12 12:23:23 -04:00
Antoine Pelisse
197a2c448d
Mention background deletion in kubectl delete cascade help
...
Kubernetes-commit: 6b7dea4c03ee5aab41fa5575bd0a45ca195add54
2020-07-22 16:06:50 -07:00
Cornelius Weig
8560c536e9
Link to krew's new project site
...
Kubernetes-commit: 152ee3b57a207abb1279f406b7832abb365e779f
2020-03-01 21:56:56 +01:00
Cornelius Weig
701d4a19e6
Use canonical URL for the krew project
...
Kubernetes-commit: 5a9a28f8ebdee91606afb2ec60757a4b6ed6ca1b
2020-02-26 23:05:28 +01:00
Jordan Liggitt
197605389f
Fix int->string casts
...
Kubernetes-commit: 124a5ddf725c4862520d8619017cac9db7a03522
2020-07-24 11:13:07 -04:00
weihan
a693563834
better understanding of kubectl attach description
...
Kubernetes-commit: 4fc4eb0c91b17a438e4ef56215b275e242433c59
2020-05-11 10:12:48 +08:00
Lee Verberne
63b6f85e5d
kubectl debug: add support for debugging nodes
...
When called with a node target, `kubectl debug` will create a run-once
pod in the target node's namespaces.
Kubernetes-commit: 7e63cc8b9d592abbb8a659205555e67b57080837
2020-04-03 18:36:32 +02:00
Maciej Szulik
c56b1f0b27
Strip .meta.managedFields for kubectl edit command
...
Kubernetes-commit: 9e5c533cb61b0afe50f926dea0e5562fd2cf7ea0
2020-06-09 14:56:57 +02:00
SataQiu
28378371e6
kubectl: fix the bug that kubectl scale does not honor --timeout flag
...
Signed-off-by: SataQiu <1527062125@qq.com>
Kubernetes-commit: 8d37c3b8f24478fe36da23f3ac453767f438e80b
2020-06-06 18:19:47 +08:00
SataQiu
4990be8686
kubectl: fix the bug that kubectl autoscale does not honor --name flag
...
Signed-off-by: SataQiu <1527062125@qq.com>
Kubernetes-commit: 84d177b6d4abab6193dc05302ad54378a0d34aec
2020-06-06 17:35:47 +08:00
Aylei
c73a3aa1bf
Add debug by copy support for kubectl alpha debug command
...
Signed-off-by: Aylei <rayingecho@gmail.com>
Update staging/src/k8s.io/kubectl/pkg/cmd/debug/debug.go
Co-Authored-By: Lee Verberne <lee@verb.is>
Apply suggestions from code review
Co-Authored-By: Lee Verberne <lee@verb.is>
Kubernetes-commit: cfece3edfe8a726fc5dc65ef89b89021316837c7
2020-04-13 01:58:36 +08:00
Aurélien Baumann
bef6c5ee32
Remove the dependency between create clusterrolebinding command and generators
...
Kubernetes-commit: 484361a1d1eb1e7d37569d0bbe7f3a6ca0de986b
2020-05-15 00:07:01 +02:00
Yuvaraj Kakaraparthi
36c221e3cf
kubectl: cannot use --force with --server-side
...
Kubernetes-commit: f93ad0204eeeb21e567df3d5841847373bf7a646
2020-07-06 10:07:26 -07:00
zhouya0
384af9bcb2
Change kubectl list option stdout
...
Kubernetes-commit: abad08d915531a6f8686f58a8cb41395ed77c714
2020-07-01 17:00:25 +08:00
zhouya0
1432c7799a
Support kubectl annotate list
...
Kubernetes-commit: ca1d598e58ab3efe4a6f51aaff8fb9796a0a11d0
2020-06-28 11:30:41 +08:00
Alex Wang
f00cf71393
Promote NonPreempt feature gate to beta ( #91899 )
...
* update nonpreempt featuregate to beta
* update
Kubernetes-commit: 209117413f32ec64e800dc32f69055ef2af75d54
2020-06-30 09:39:05 +00:00
Seth Pollack
b55288a363
add labels to diff command
...
Kubernetes-commit: 75af2fca6125516dff42e9825ceea89367986f78
2020-05-07 14:30:00 -04:00
zhouya0
2b8a7e264f
Remove kubectl run validate replicas logic
...
Kubernetes-commit: 4b82d5ae084719e5ff5e1d6a5036452eb91f4099
2020-06-16 17:01:33 +08:00
zhouya0
c6077ba088
Fix clusterdump info namespaces flag not working
...
Kubernetes-commit: 461fbad4122051f02422191f94b5ce26542b15a6
2020-06-08 14:21:31 +08:00
Naoki Oketani
404318cdbc
Remove --export flag from kubectl get command.
...
Kubernetes-commit: c0562815fada455daf4826f59df895942dad8df0
2020-02-28 17:41:00 +09:00
knight42
0597d045eb
refactor: move kubectl-cp to staging
...
Signed-off-by: knight42 <anonymousknight96@gmail.com>
Kubernetes-commit: 1b32dfdafdcd6cce21415c75385970a9ae5b0f01
2020-06-15 12:20:14 +08:00
knight42
5ee889da0a
feat(port-forward): warn users about UDP port
...
Signed-off-by: knight42 <anonymousknight96@gmail.com>
Kubernetes-commit: ca8da7e2984a92a9c024f8f0e6cac2b9ae87339b
2020-06-01 12:28:01 +08:00
zhouya0
7b9fac0696
Add kubectl apply generate name error message
...
Kubernetes-commit: c91ef266973904c82894492b887deb2a04b6d998
2020-03-10 15:51:41 +08:00
Brian Pursley
b4594b0812
Added kubectl apply check to prevent using --dry-run=server with --force
...
Kubernetes-commit: 99f6dca1a8d1ea64d22a68263c77bcafd6fedc48
2020-04-16 21:23:36 -04:00
Sergey Yedrikov
a2bdd9d806
Fix for kubectl issue 834:
...
"kubectl help api-resources --sort-by" text mentions nodes, not API resources
Kubernetes-commit: e5370afba2842b844699b239f3f14306f9923eb6
2020-03-06 15:26:06 -05:00
Jordan Liggitt
fe32c3454c
Add support for v1 CSRs to kubectl certificate commands
...
Kubernetes-commit: ca234db60151ccffdd4dc8ceb2ec3c69fd83af69
2020-06-04 11:39:02 -04:00
Brian Pursley
683f5c08eb
Added --privileged flag to kubectl run
...
Kubernetes-commit: cd005c1da41e54971319030687cecafec4884868
2020-04-28 16:30:59 -04:00
Maciej Szulik
f5762887af
Fix --save-config for kubectl create commands, where it was missing
...
Kubernetes-commit: 42ee2068384dd47d684121db8f92e593af1f50fc
2020-06-08 14:02:33 +02:00
zhouya0
c825cb5a2f
Support kubectl create deployment with replicas
...
Kubernetes-commit: b6213ed931930eba27b4a53db54b4b4d224a1c59
2020-05-29 14:52:07 +08:00
Jordan Liggitt
695c3d2c06
Make kubectl tolerate other versions of the CSR API
...
Kubernetes-commit: ea6e5e53de03b791c2d30781e29ba9a0c5e0cbf6
2020-06-02 13:53:26 -04:00
Julian V. Modesto
df62cad179
Remove deprecated --server-dry-run.
...
For the beta server-side dry-run feature, `kubectl apply` provided the
`--server-dry-run` flag.
As of 1.18, this flag was deprecated and marked to be removed after 1
release.
Kubernetes-commit: 3e93f9926279db8a4d064d615c4ad7cfdc7ab38b
2020-05-20 16:53:53 -04:00
zhouya0
635dca932f
Fix create deployment port not working
...
Kubernetes-commit: 24766024c17e6090b694b0f57d0b051884a2dac1
2020-05-27 15:56:35 +08:00
Julian V. Modesto
0d395d7c98
Make client-side apply safer
...
- Remove the ServerDryRun field and delegate it entirely to the resource.Helper
- Use resource.Helper for deletions (as in `kubectl apply --force`)
instead of using the pruner's method that uses a dynamic client
- Reduce the resource.Helpers and times we check for server-side dry-run
in apply
Kubernetes-commit: f0eb68c0cfcff6d50d9d5ec278f96820e3cb3f9a
2020-04-02 18:26:32 -04:00
Zhou Peng
27261dabef
[kubectl/pkg/cmd/rollout]: fix typo & tidy imports
...
Signed-off-by: Zhou Peng <p@ctriple.cn>
Kubernetes-commit: ef1deb8b40ca3033309f2ba875560a7a49d3c486
2020-05-25 09:37:18 +08:00
Maciej Szulik
0fc32c9e63
Refactor create deployment and add --port flag
...
Kubernetes-commit: ed1a0e945649095618bd3484c82b58046bcbd60c
2020-05-14 18:34:40 +02:00
Maciej Szulik
731925c63c
Set schedule and image flags required for create cronjob
...
Kubernetes-commit: 9e7ca872b4e2c9c95f7e7c224bc79c1b698789b9
2020-05-14 18:34:27 +02:00
zhouya0
c027f981b2
Fix kubectl create secret docker-registry
...
Kubernetes-commit: bbf41448f6c5494d5adabc4954d7230522b28d2e
2020-05-11 11:05:37 +08:00
Aurélien Baumann
3c8dea227e
Refactor kubectl create deploy: isolate obj construction logic
...
Kubernetes-commit: c43f62c10b55a8722f1cd5c0547307da388d6b23
2020-05-18 11:32:23 +02:00
Brian Pursley
7ed1bb5485
Changed kubectl config set-cluster and set-credentials to support process substitution for filenames
...
Kubernetes-commit: 84d5e664afb809b92c31a4c36acb2baa1fc8649e
2020-05-15 09:22:59 -04:00
zhouya0
2ece9ead67
Fix dry run client ignore namespace
...
Kubernetes-commit: 2f117260fb50926cf0967dfa2817728eb75e1e90
2020-04-26 15:13:20 +08:00
zhouya0
4a94a16b14
Fix kubectl run ignore namespace
...
Kubernetes-commit: b3c830d4bf260c68d4299cd1879dbe9ce9913bc6
2020-05-04 22:35:03 +08:00
Aurélien Baumann
d55dfd5661
Remove the dependency between create deploy command and generators
...
Kubernetes-commit: 0cbb2087dab0791956ac9233d9554399fd472bb5
2020-05-01 18:04:37 +02:00
Davanum Srinivas
445ad1366b
switch over k/k to use klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Kubernetes-commit: 442a69c3bdf6fe8e525b05887e57d89db1e2f3a5
2020-04-17 15:25:06 -04:00
Julian V. Modesto
415a73888a
Set kubectl field manager names
...
Kubernetes-commit: 360c348d0eb5be8c7c9720d5bfda16dbe04e8d15
2020-03-04 22:04:01 -05:00