Omer Aplatony
2bb31e1a0f
Replace PollImmediate with PollUntilContextTimeout ( #128147 )
...
* Replace PollImmediate with PollUntilContextTimeout
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
* Add context to RetryErrorCondition function
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
* lint: fix error comparison in scale package
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
* Fix RetryErrorCondition function signature
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
* revert to if err statement
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
---------
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
Kubernetes-commit: 9d816f1587c918e7acae6d9195d33606aec998b1
2024-11-07 16:57:29 +02:00
Anish Shah
b22c40d47c
kubectl: remove subresource restrictions from all commands
...
Removing this restrictions will allow us to use these commands with the
new resize subresource.
Kubernetes-commit: e1ca63489f2b788f893ab37a27242ce319e1eaf6
2024-10-31 16:00:52 -07:00
Arda Güçlü
3f05cfcd78
Migrate genericclioptions.IOStreams usage to genericiooptions
...
Kubernetes-commit: 00c30941260a27e6929aef84c7fdbc8f1508518c
2023-04-05 14:07:46 +03:00
Sean Sullivan
e5c05deb7b
Refactor to simplify factory Validator
...
Kubernetes-commit: 5e8648b9f1cdbcbb10f22fd46b6ac40dbc471de2
2022-12-11 18:20:28 -08:00
Sean Sullivan
6dde41fea6
Removes unnecessary dry run verifier
...
Kubernetes-commit: 530f65d6fd5af81c0691143fbf2c00d440476bb9
2022-12-05 16:25:12 -08:00
inosato
8272d71ba6
Remove ioutil from kubectl
...
Signed-off-by: inosato <si17_21@yahoo.co.jp>
Kubernetes-commit: 774ab1349bfd553c97a99b992e9f38659f541c84
2022-07-30 22:31:16 +09:00
peizhouyu
975bff8512
fix that beginning of help text is cut off for apply and replace --filename flag
...
Kubernetes-commit: d216b3433d018fae95efdf987002dd8c4d006ae6
2022-07-28 11:33:34 +08:00
Arda Güçlü
9a8dad8efc
Change error messages
...
Kubernetes-commit: e41f2a1d7c06a1fd49bc5055fba7e0437ecaec0e
2022-07-07 15:05:17 +03:00
Arda Güçlü
bdaa26ce9e
Validate dry-run and force flags can not be used same time in replace
...
This PR adds validation to check that `dry-run` and `force` flags
are not used at the same time. Because when `force` flag is set,
`dry-run` is discarded and objects are replaced already.
Kubernetes-commit: e389b2723e6af29a9f70509fe8ff6e5121c30681
2022-06-01 14:01:40 +03:00
Arda Güçlü
81a25f37b5
Set validate functions requiring no parameters for all commands
...
Validate function is used to validate command options and should not get
any additional parameter. To preserve compatibility across all
kubectl commands, this PR removes all parameters in validate functions.
Kubernetes-commit: 8fb423bfabe0d53934cc94c154c7da2dc3ce1332
2022-05-17 11:38:20 +03:00
Kevin Delgado
61f42e595f
add server-side validation support to kubectl
...
Kubernetes-commit: fe3772890f650f9bcf020b43dc5a51fab0fa17f4
2022-03-09 14:52:32 +00:00
Yuvaraj Kakaraparthi
38487e770c
kubectl: add --support to get, patch, edit and replace commands
...
Co-authored-by: Nikhita Raghunath <nikitaraghunath@gmail.com>
Kubernetes-commit: a5aa858d44651ba48bdce634a39b55be91216614
2021-07-07 08:30:59 -07:00
Kevin Delgado
7e681490ec
Generalize dry run verify to arbitrary query param
...
Kubernetes-commit: d6c83281bc696474a76365a879f2255b8b568786
2022-03-09 14:51:50 +00:00
Andrea Hoffer
09ed00ef49
Minor adjustments to descriptions and example text
...
Kubernetes-commit: 6b736f348483bb6b20d4633319305960f4d9e4c1
2021-07-06 15:05:26 -04:00
Andrew Keesler
d9980eb6ca
kubectl: don't fight for stdin with exec plugins
...
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
Kubernetes-commit: 60246f69cc0fcc6f5cfd0a36eb069187a4bd9e98
2021-06-14 17:16:54 -04:00
Julian V. Modesto
04f62ffb0b
Cache the OpenAPI schema for server-side dry-run.
...
Currently, server-side dry-run fetches the OpenAPI schema for every
single object.
This change fetches the OpenAPI schema only once.
Kubernetes-commit: caa158610dfb53de3582ed6df0eb37359206fc66
2021-01-19 16:36:14 -05:00
zhouya0
8411619cbf
Support kubectl delete foreground
...
Kubernetes-commit: 383b5f676670d99dc1fba4254ba7f6a81a052ba3
2020-07-23 18:45:59 +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
Julian V. Modesto
415a73888a
Set kubectl field manager names
...
Kubernetes-commit: 360c348d0eb5be8c7c9720d5bfda16dbe04e8d15
2020-03-04 22:04:01 -05:00
Julian V. Modesto
9c1c5e4f10
Add --dry-run to more kubectl commands.
...
- delete
- taint
- replace
Kubernetes-commit: a9ec444d743940fd93b31313a6f3f857e5c5f048
2020-02-18 18:08:25 -05:00
Julian V. Modesto
a3f7877cd1
Support DryRun in cli-runtime REST Helper.
...
- Move TestSupportsDryRun to cli-runtime
- Move TestDryRunVerifier to cli-runtime
- Add OpenAPI schema for testdata to cli-runtime
- Use Helper.DryRun and DryRunVerifier for Apply
- Add WithOptions methods to Helper
Kubernetes-commit: 6bea0e469bcfe4967cbf2656a998d60e0b684747
2019-12-18 22:00:34 -05:00
Sean Sullivan
1483769081
Update gofmt
...
Kubernetes-commit: e2cae2344486af198f8ab38e4dd97d4f24dfd190
2019-08-01 13:14:06 -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