Christopher Montoro
74d55cc94b
Update the example for kubectl port-forward
...
Clarify that `REMOTE_PORT` is interpreted as identifying a _Service_ port when provided `TYPE` is `service`.
Also, highlight support for specifying a named port as `REMOTE_PORT`.
Kubernetes-commit: 68e8fd5f33647f22a1bd9ff8508003a969036e25
2020-10-07 21:37:03 -04:00
zhouya0
fd930e3995
Clean up nits in delete cascade
...
Kubernetes-commit: f5a035a7e66b25c932a82fc8bc7cde195dd05884
2020-09-25 11:38:28 +08:00
Sally O'Malley
87d74c1a63
clarify help for --api-version: note it's API group/version
...
Kubernetes-commit: 29cd320d89b286c175623a95dd7df8f2cd762c5d
2020-10-05 14:06:32 -04:00
Sally O'Malley
684354b3b1
include APIVersion in output of 'kubectl api-resources'
...
Kubernetes-commit: 068dbb44f39a3ff4c3cfaf82242c91598582ecd4
2020-10-02 09:28:27 -04:00
SataQiu
7a93b067f4
kubectl: improve the warning message when doing kubectl apply to the resource without expected annotation
...
Signed-off-by: SataQiu <1527062125@qq.com>
Kubernetes-commit: 9c163f0a0a97a9bcf10c3f91d2cee02567700d84
2020-07-29 10:39:59 +08:00
wawa0210
c1aa9082c9
Keep the imagePullPolicy of kubectl alpha debug consistent with the default
...
Kubernetes-commit: 6709d4f93855d485f6a809237efbdc1951fbc30a
2020-09-19 11:46:41 +08:00
Sai Harsha Kottapalli
ac26f503e8
fix staticcheck for kubectl pkg files
...
Kubernetes-commit: f6b3c5fb3f78d1d2736fe97326b976783b34f6b7
2020-09-30 15:33:29 +05:30
Ricardo Pchevuzinske Katz
aef03d78a9
Change kubectl clusterinfo to non offensive words
...
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
Kubernetes-commit: ab129349acadb4539cc8c584e4f9a43dd8b45761
2020-09-30 17:59:35 -03:00
Eddie Zaneski
951c0caa13
Add get-users and delete-user to kubectl config
...
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
Kubernetes-commit: 95b189fd8f69812738ba9ea472237ab946863d23
2020-04-03 16:41:46 -06:00
Lee Verberne
9e9322bdd6
Update the use message for kubectl debug
...
The command now supports type syntax similar to `kubectl get`.
Kubernetes-commit: 40904c7a7de4bcb050030eaf53dfb21c3f076ae9
2020-09-23 15:06:16 +02:00
zhouya0
8411619cbf
Support kubectl delete foreground
...
Kubernetes-commit: 383b5f676670d99dc1fba4254ba7f6a81a052ba3
2020-07-23 18:45:59 +08:00
Sai Harsha Kottapalli
abcbb6390c
allow adding annotations to pod when using kubectl run and add tests
...
Kubernetes-commit: 661de7f39eeab6a6977d59f9a24129477f7c5815
2020-07-23 19:37:22 +05:30
Eddie Zaneski
1ac77cf17d
Warn when creating roles with custom verbs kubectl
...
Remove errors when using custom verbs
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
Kubernetes-commit: c9420cd703b9431528e91a78428bb982d3b20b67
2020-06-24 16:20:13 -06:00
renzheng.wang
26aa5c6585
make kubectl/kubeadm completion script support busybox
...
Kubernetes-commit: ff888f3a43abcb48b773e108baa38858220d88e3
2020-04-08 23:03:53 +08:00
Maciej Szulik
62a25b9910
Handle nil elements when sorting, instead of panicking
...
Kubernetes-commit: a2d96fcbac6c4d92565fd0453cb6bc8c3b422bcb
2020-09-09 22:39:46 +02:00
brianpursley
f9c04a0266
Sort kubectl top output when --sort-by and --containers are used together
...
- Changed kubectl top to sort first at the pod level and then at the container level when --sort-by and --containers are used together.
- Refactored printSinglePodMetrics into two separate functions instead of passing in bool to change behavior.
- Refactored MetricsSorters to simplify code.
- Added unit tests to test container sorting.
- Fixed pod sorting unit tests which were not working because it was checking for --sort-by command line flag which was never true.
Kubernetes-commit: 04266b37ded103ddb84a192ec816499904fce1d1
2020-08-06 11:47:09 -04:00
Adrian Moreno
3de8ce8105
portforward: Fix UDP-only ports calculation
...
If a service has both TCP and UDP but the TCP port appears before in the
range loop, it will be considered a UDP-only port and the forwarding
will fail.
Fix that by calculating the difference between UDP ports and TCP ports.
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Kubernetes-commit: 21b598cbe752dc5d2a2bca0e46729c9e72d162a3
2020-09-11 19:50:11 +02:00
zhouya0
3c159f733a
kubectl wait add ignore not found flag
...
Kubernetes-commit: 3d2d95e99dd1219331ef3d32e63b39122a0ef116
2020-05-11 09:19:10 +08:00
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