zhouya0
cbbf8d8bf6
fix kubectl annotate local error
...
Kubernetes-commit: 568edf72ec1fc10368a19be8184b201265e6c39e
2020-01-08 17:10:08 +08:00
zhouya0
65d1aa5d00
fix apply set last applied namespace
...
Kubernetes-commit: 4291a03e39559d10eab0253f9cd431d6a375e235
2019-12-20 16:09:49 +08:00
danielqsj
4b914450ab
unify alias of api errors under pkg and staging
...
Kubernetes-commit: 5bc0e26c1902e7e28abfc828de19a2dbb3e492c2
2019-11-12 16:26:59 +08:00
hbceylan
f0cc26a729
fix kubectl run help image name
...
Kubernetes-commit: 5b4a7744fad614732de87e032f5d4dba743fddf9
2019-12-23 21:49:37 +00:00
Sean Sullivan
2598a9eb6d
Adds PreProcessor and PostProcessor functions for modifying apply behavior
...
Kubernetes-commit: 79bc63fb4b79caea4b141d318b11a0892ca14c95
2019-12-17 14:58:54 -08:00
Sean Sullivan
641631dfad
Moves visitedUids and visitedNamespaces (used for pruning) into ApplyOptions
...
Kubernetes-commit: 4e45421f610eb881a03c0d82fca038788db12b08
2019-12-17 14:19:00 -08:00
Sean Sullivan
42da131431
Move patch functionality for apply into its own file.
...
Kubernetes-commit: 670369f2a4a7a7d9dad3a1ae1a334317a135f6c7
2019-12-16 16:41:49 -08:00
Sean Sullivan
65d873e277
Moved prune functionality into its own file.
...
Kubernetes-commit: e38e320222a1f44373ab3eaea8713f4772b26f6b
2019-12-16 16:13:39 -08:00
Sean Sullivan
dfcc649b05
Refactored some apply printing functionality; removed unneeded count and objs variables
...
Kubernetes-commit: 07cb2fda5dada5c5145216bcab90e38426cf68e8
2019-12-16 15:21:57 -08:00
Sean Sullivan
dd819b3425
Created GetObjects() method for ApplyOptions and integrated into apply
...
Kubernetes-commit: 02af4c9be20db201f2a2069816e97004a96bf760
2019-12-16 13:56:52 -08:00
Sean Sullivan
395bc6fc90
Changes Visit() to Infos() in apply to keep slice of objects
...
Kubernetes-commit: 2103ea4ddedc59d14322fd0fc34c8a9928256551
2019-12-16 13:00:33 -08:00
Anish Shah
3c43664ced
Refactor `kubectl proxy` command to have similar design pattern as other kubectl commands.
...
Few days ago I watched this kubectl code base tour on Youtube
(https://www.youtube.com/watch?v=uz8TS3V9qqY ). It talks about a design
pattern that almost every command follows. But I found out that
`kubectl proxy` command does not follow this pattern. So, I'm
refactoring this command to use similar design pattern as other kubectl
commands.
Kubernetes-commit: 0bd41a300f12b1dbaec19fc94b868f91640542df
2019-09-21 10:52:42 -07:00
Haosdent Huang
08def252f7
fix static check in kubectl/pkg/cmd/annotate.
...
Kubernetes-commit: 303c1a40bcee81fe14845d2af9dae2073f86ec52
2019-12-08 23:25:50 +08:00
Naoki Oketani
fe07b19cb4
Fix a bug in port-forward: named port not working with service
...
Kubernetes-commit: 73c1ab71e27eee0066ba637575e60093952f3ff1
2019-11-22 02:59:26 +09:00
zhouya0
0833d7cba2
kubectl change podSecurityPolicy group
...
Kubernetes-commit: 7947b6ce6d8a498000d81b68fa674f88b1d7680a
2019-11-18 15:00:33 +08:00
Michael Gugino
ebda9f6262
kubectl/drain: add option skip-wait-for-delete-timeout
...
Currently, some circumstances may cause waitForDelete to
never succeed after the pod has been marked for deletion.
In particular, Nodes that are unresponsive and have
pods with local-storage will not be able to
successfully drain.
We should allow drain to ignore pods that have a
DeletionTimestamp older than a user-provided age.
This will allow controllers utilizing kubectl/drain
to optionally account for a pod that cannot be
removed due to a misbehaving node.
Kubernetes-commit: da53044abdf8c8a9771a5c3dfd861f0c4ec78c40
2019-11-23 20:00:06 -05:00
Sally O'Malley
6d309ed99e
When running `kubectl drain` in dry-run, list warnings and pods that would be deleted.
...
Kubernetes-commit: 909300b8be909c48a68900c407de03be95555409
2019-09-12 14:31:09 -04:00
Michael Gugino
feccbe3c28
kubectl/drain: add disable-eviction option
...
Currently, if eviction is supported during a drain operation,
eviction is always used.
This commit allows the user to specify disabling eviction.
This is particularly useful when you wish to ignore
PodDisruptionBudgets after a normal drain has failed for
some time.
Kubernetes-commit: 6c1d587d5142b95e6c169a198a086332a7e4d8ad
2019-11-23 11:18:52 -05:00
Jordan Liggitt
1d31df4756
fixup kubectl test
...
Kubernetes-commit: deb75da17bb1fa95e5b56fb1207ba247cd9953dd
2019-11-26 13:13:38 -05:00
Jordan Liggitt
74e4737411
Switch TableGenerator/TableConvertor interfaces to metav1
...
Kubernetes-commit: 36eb250cbb441984260ded6f7abeb796974031c3
2019-11-26 13:13:25 -05:00
Sally O'Malley
de3d4fcc02
don't error if set-resources patch is empty
...
Kubernetes-commit: ecd1c0747272ab908daa64b0f4b2b18a8cb18362
2019-11-20 19:22:18 -05:00
zhouya0
6d82c82d12
add test coverage with kubectl get components
...
Kubernetes-commit: 07806d4300c5f410194c0dcd2da86c40bef42e1b
2019-11-25 17:57:56 +08:00
Jordan Liggitt
25e7825a5b
Fix --resource-version handling in kubectl
...
Kubernetes-commit: 0ac8345d3a4c5ee38fd3fc2c40976ba876d815e7
2019-11-14 09:24:42 -05:00
Maciej Szulik
dfa60c7722
Drop job from scale description
...
Kubernetes-commit: c3964927f758be88a65f833595a0b0d5456ce729
2019-10-23 12:25:42 +02:00
louisgong
ae926dc56e
fix kubectl diff panic
...
Kubernetes-commit: 4f13f2739a3a33c7ed4b86b98054972c0fde4579
2019-11-09 20:34:51 +08:00
Clayton Coleman
4ca8f5ecfe
test: kubectl unit tests should be using codecs without conversion
...
Tests are also refactored to use the simpler RESTClient code path.
Kubernetes-commit: 8a9b8c87c40ee65751828d9dd02f4f642588f0ce
2019-11-03 15:20:10 -05:00
Ted Yu
eb7c1bf189
Only put un-filtered pod in podDeleteList
...
Kubernetes-commit: 65c2f61806468d25795516d6077ce0c31c83adcd
2019-10-30 09:55:34 -07:00
Maciej Szulik
89d9f2ef29
Set TypeSetter in get print flags, like we do everywhere else
...
Kubernetes-commit: 626b9081fbee1eeae3f96a99f40da6c665d5753f
2019-10-31 18:25:46 +01:00
ritho
b0cd1c2290
Do some Kubectl optimizations suggested by the golangci linter
...
The tool golangci-lint gives a bunch of warnings. This PR solves the easier/less controversial ones, so the code is simpler and a little bit more optimal, since it removes some if conditions.
Kubernetes-commit: cd2adbe760641f844d84d411f9adcf17fb6982ff
2019-06-04 01:25:43 -05:00
clarklee92
87db492820
Modify the status code number to HTTP status semantics
...
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
Kubernetes-commit: f86f5ee14ef3c8adf9855ce16dcc57beca949719
2019-11-06 00:45:35 +08:00
Sean Sullivan
3ec9685c39
Rename test/data directory to testdata
...
Kubernetes-commit: 4ce97d6c48ae4735463f020430dd20539a03e8c5
2019-10-31 13:40:02 -07:00
Sean Sullivan
7965551001
Moves kubectl get subcommand to staging
...
Kubernetes-commit: 2a3f28863baa804a05d35c3958a107f9210b4c9e
2019-10-29 15:51:00 -07:00
Pablo Mercado
6b77b0790a
Kubectl certificate signing: fix certificate deny message ( #84400 )
...
* add certificate deny flag message
* bring back NewCertificateOptions with operation parameter
Kubernetes-commit: e528c2f2925d61fa7a12313a895af5a312d36dd6
2019-10-27 03:24:33 +00:00
Ted Yu
587c053a55
Add note on the applicability of --grace-period
...
Kubernetes-commit: abc9a9f8369c220ee3a1de2e1917edef3d7d680e
2019-10-24 16:07:02 -07:00
Sean Sullivan
c6a8c8a72e
Removes duplicate TabWriter. Several updates to reference the one remaining TabWriter in cli-runtime.
...
Kubernetes-commit: 958d7d3b6e74b8648fb897ce09f52049eb9823a1
2019-10-17 13:32:40 -07:00
David Eads
3fa753054c
add option to skip verifying kubelet certificates for logs
...
Kubernetes-commit: f0931cbf48cb4f170177d42c1a3c75b9d8792c52
2019-10-23 14:33:37 -04:00
Ivan Shvedunov
6bf46a2bba
Fix crash in kubectl drain
...
When there's a pod that can't be evicted/deleted, and apiserver
connection breaks at a wrong moment, kubectl can panic due
to nil pointer dereference. This PR also improves drain tests
to avoid confusing panics with fatal errors.
Kubernetes-commit: 37226f8e8306475895d7e68eb52c57e57f00ee28
2019-10-11 22:12:26 +03:00
Niclas Ladd
72381882b1
Add a new --sort-by flag to kubectl api-resources command
...
Kubernetes-commit: cf492e95ebbe5f58c5988ddb69ff58c823c96ac1
2019-10-07 10:17:34 -07:00
Mikalai Radchuk
a38258b351
Adds --prefix flag to the kubectl log command
...
Kubernetes-commit: 8cadd185d67e84dd186728669d6e72e9e415db70
2019-09-04 16:23:02 +01:00
tanjunchen
588a48c6ab
remove the repeat word in documents
...
Kubernetes-commit: de3cf23414efb2eb4d94e821996cd4c93e6534e4
2019-10-04 15:32:48 +08:00
fang duan
28ba3d4e95
Fix help text in kubectl top -h
...
close https://github.com/kubernetes/kubernetes/issues/82843
[heapster deprecation timeline](https://github.com/kubernetes-retired/heapster/blob/master/docs/deprecation.md )
Kubernetes-commit: 13a37abb8bca75e7cad8952da1145bd980aa05a1
2019-09-27 23:05:02 +08:00
Ted Yu
04c0c6e8db
Prune should respect namespace
...
Kubernetes-commit: 88e2f8e04fa310e848f07d0a2ab801aa0917e408
2019-09-25 16:43:08 -07:00
wojtekt
52d3bfc415
Minor cleanup of jsonFallbackEncoder
...
Kubernetes-commit: cd24a0e5fa7af1bd921386cf80c90cd535954e6c
2019-09-22 13:50:05 +02:00
Lantao Liu
7c6594395c
Fix kubectl panic when handling invalid error.
...
Kubernetes-commit: 12d944b860e4872085fa1155590c7fcef58e6bb8
2019-09-19 21:48:50 -07:00
ZP-AlwaysWin
b3895b0e0e
fix kubectl run --generator=xxx bug
...
Kubernetes-commit: 860845b58216fa7fa058bacd06b4be5caefa6251
2019-09-15 14:27:33 +08:00
ZP-AlwaysWin
a376c2df78
replace 200 with http.StatusOK
...
Kubernetes-commit: cfa77048f9b7fa96bad4eebb059cf60acc9dfd29
2019-09-12 22:35:19 +08:00
Han Kang
010c893f0a
remove pkg/version and some of redundant copies of it
...
Change-Id: Ia58367c1b1274bfb49c8a4784051463abaf795de
Kubernetes-commit: 866ea74326fba45241cbccd3ca4624b68ba7022f
2019-09-10 14:42:55 -07:00
David Symonds
deabbd435b
Fix description of diff flags.
...
Running `diff -u` produces a unified diff. It isn't related to Unicode.
Also, `diff -N` treats _absent_ files as empty, not new files.
Kubernetes-commit: 0af2dedd96e973f4ed59af0cc325a70ca0b9100a
2019-05-22 13:34:30 +10:00
haoshuwei
4dd9f90e6e
fix some missing errors return statements
...
Signed-off-by: haoshuwei <haoshuwei24@gmail.com>
Kubernetes-commit: c4fe8f11b200d0a97e8ce447e5af592b5c4870d0
2019-09-09 13:54:14 +08:00
draveness
a61556981e
feat: remove deprecated include uninitialized flag
...
Kubernetes-commit: f18f86ad9a16335e44b2799a419f51c9b606526b
2019-07-19 10:01:17 +08:00
Maciej Szulik
b567e802b1
Move kubectl cp back to k/k
...
Kubernetes-commit: ab1c56ae87780a390bd31d50558e4e44bca551dc
2019-08-28 19:01:25 +02:00
Antoine Pelisse
4574b365f9
Rename --experimental-* flags to --* for server-side apply
...
Kubernetes-commit: a3f4e6e933d3292b3921cdc7b60d7ae019ca1580
2019-08-26 09:09:40 -07:00
Maciej Szulik
e82cbf6bec
Remove kubectl log
...
Kubernetes-commit: 6939e77277808672864b6ae43916e44bbcbe4752
2019-05-20 11:36:43 +02:00
Antoine Pelisse
440d570248
Improve error message on server-side apply conflicts
...
Kubernetes-commit: a890331115340280bb1878c8baa46670cd6f0814
2019-08-26 10:37:42 -07:00
Lee Verberne
8408ed1e0b
Allow kubectl to attach to an ephemeral container
...
Kubernetes-commit: 5bd8a045d651005cd8cb1d34d835fdb487651325
2018-04-13 16:55:15 +02:00
knight42
8f0927a4b0
fix: patch the Scale subresource if no precondition was given
...
Kubernetes-commit: c02d141b134d4dee17f7b1e87a65d13ae93d80a3
2019-08-13 10:50:25 +08:00
Justin SB
3989dccd8b
Make drain library more reusable
...
Move more functionality from the kubectl cmd to a package with
fewer dependencies.
Kubernetes-commit: c74f2f6a72bf6fe2718d1e386e4e08747f34fe7b
2019-07-11 13:28:25 -04:00
AllenZMC
7f06f2436c
fix typos in create_namespace.go
...
Kubernetes-commit: e9da014de9f5a1a717c885d2b5108d0a39acacc1
2019-08-06 20:45:12 +08:00
Sean Sullivan
47bc52d240
Unexport kubectl cmd profiling
...
Kubernetes-commit: 2621e6a0d61fccdb50df3ec90a84de4ebc3b5de5
2019-08-02 11:46:13 -07:00
Sean Sullivan
315ba50222
Update .golint_failures to reflect code move to staging
...
Kubernetes-commit: 4e64aaf27e66218571542446498cc47db5df95ff
2019-08-01 15:38:06 -07:00
Sean Sullivan
1cba7858ad
Update test data to reflect code move to staging
...
Kubernetes-commit: 58b59ae4e07f9d3718271a43740a4de9508d8688
2019-08-01 15:17:53 -07:00
Sean Sullivan
1483769081
Update gofmt
...
Kubernetes-commit: e2cae2344486af198f8ab38e4dd97d4f24dfd190
2019-08-01 13:14:06 -07:00
Sean Sullivan
d35a876e3f
Update BUILD files reflecting code move to staging
...
Kubernetes-commit: dc743f7edd1b0104f09ef7dcc1e31c712f850843
2019-08-01 13:12:31 -07:00
Sean Sullivan
5b48717f2d
Update import statements to reflect code move
...
Kubernetes-commit: acece3c2964115a4f29a43e368ad5de59dbbc258
2019-08-01 11:10:05 -07:00
Sean Sullivan
c6063dd846
Move pkg/kubectl/cmd/{command} to staging
...
Kubernetes-commit: 0e0ea523392f1121f61f99ac30a9bc2043eaed90
2019-08-01 11:01:40 -07:00
Sean Sullivan
1919d7fa45
Move pkg/kubectl/cmd/util and subdirs to staging
...
Kubernetes-commit: 6c96a059dd4a64f1917378b4a0c13899dff31918
2019-07-28 21:29:36 -07:00