xiongzhongliang
ceb5d08972
add -q as shorthand for --quiet
...
Kubernetes-commit: a7e15c7606d24f0ff11c5ddf05f3cbc6ab891e16
2020-12-31 19:18:17 +08:00
Lee Verberne
4dec993ea4
kubectl debug: allow set-image-only invocation
...
Kubernetes-commit: d6024ce18dd66de2ebe076afa5b33ae4fcfbee67
2020-11-05 13:40:11 +01:00
Lee Verberne
5ed93efa24
Remove alpha from kubectl debug
...
Kubernetes-commit: 30262e9b14e2369528fd27241adb16fae02f684d
2020-11-04 16:30:49 +01:00
Lee Verberne
fdd6fda024
kubectl debug: Allow mutating image names
...
Kubernetes-commit: ee9f11b95f01b32dade5d8dc7329625c40ac0e63
2020-10-30 18:23:34 +01:00
Lee Verberne
6a3c6f9a42
kubectl debug: add tests for Complete,Validate
...
Kubernetes-commit: 3cfcf3a74fc24e6b4b3f58710fe454d1bc3644cc
2020-10-30 08:54:13 +01: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
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
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
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
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
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
wojtekt
5b27ac0ca2
Fix the flaky kubectl tests at scale
...
Kubernetes-commit: 98058a1b68da3726e1110dc8bba3838459d03b29
2020-04-23 22:05:55 +02:00
Kazuki Suda
736b43aee9
Fix missing a shorthand for container flag of kubectl alpha debug
...
Kubernetes-commit: fca1027dd6d69ca7c5b3dd54059c29b2c8d04762
2020-03-31 12:15:17 +09:00
Lee Verberne
c401716d75
kubectl debug: support different kinds
...
This is a refactor ahead of adding support for supporting `kubectl debug` of nodes.
Kubernetes-commit: 8414d180feb9ddb0d4b9b80ea8e570dcacf98703
2020-04-03 14:31:18 +02:00
Lee Verberne
c3d84a9e1c
Add kubectl debug alpha command
...
This first version of `kubectl alpha debug` is an import of the existing
kubectl-debug plugin, which supports adding ephemeral containers to
running pods. This attempts to follow patterns used by other kubectl
commands such as run, exec and scale.
Kubernetes-commit: e5b655938e55e0404545ff73e9239593a27a3272
2020-01-31 15:29:31 +01:00