Arda Güçlü
608a0553d7
Use generic sets rather than deprecated sets.String
...
Kubernetes-commit: c3f15fd707a092e6cb7d96b84b81ada1f118d759
2024-11-21 13:22:39 +03:00
Omer Aplatony
56c9d286fe
kubectl: fix wait --for=create to work correctly with label selectors ( #128662 )
...
* kubectl: fix wait --for=create to work correctly with label selectors
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
* Add unit test
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
* add integration test
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
* Increase wait time to 40 seconds
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
---------
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
Kubernetes-commit: 0cc926220067cd814cecd8f3d0c3b9235e6a68db
2024-12-12 06:49:46 +00:00
alingse
92bb3cdeda
fix: fix miss makezero bug ( #125132 )
...
* fix: fix miss makezero bug
Signed-off-by: alingse <alingse@foxmail.com>
* add testcase for new verb
* Update create_role_test.go
---------
Signed-off-by: alingse <alingse@foxmail.com>
Kubernetes-commit: 5b06498cb24ee68dbc2815a1d9fa505da3452d98
2024-12-12 10:56:37 +08:00
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
Omer Aplatony
dc6975b78c
port-forward: fixed error handling for empty remote port
...
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
Kubernetes-commit: c01a8a51af10811e182be896795168bbd561c7e9
2024-10-26 14:24:09 +03:00
Davanum Srinivas
69f03b081e
Drop go-colortext and its usage
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Kubernetes-commit: d450b6e653a8dcf11f28822eadea379734b3f53d
2024-11-01 09:55:42 -04:00
Omer Aplatony
bb485d40d9
kubectl: add test coverage for autoscale command
...
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
Kubernetes-commit: 6cb17d85a550ce8237f8542a9e59fdd03973c7d6
2024-10-31 14:26:15 +02:00
Monis Khan
1014b1d5f2
Fix tests that assume core clients use JSON
...
Signed-off-by: Monis Khan <mok@microsoft.com>
Kubernetes-commit: 6595fa40268bc8e7f46dcc28267e5e8b0b1ae493
2024-08-19 10:38:16 -04:00
Arda Güçlü
4c8c153513
Wire context to logs command and add interrupt handler ( #127503 )
...
* Wire context to logs command and add interrupt handler
* Move conditional outside of interrupt handler
Kubernetes-commit: 5826868586d501060a6151d04c511236b11a26d4
2024-10-22 21:49:06 +03:00
Arda Güçlü
484ede079f
KEP-4292: Add e2e test for custom profile in kubectl debug ( #127187 )
...
* Remove KUBECTL_DEBUG_CUSTOM_PROFILE env var
* Add e2e test for custom profile in kubectl debug
* Keep feature flag until 1.33
* Update comment
* Simplify tests by relying on test framework functionality
* Rename import alias to better to pass verify-import-alias
Kubernetes-commit: 1caf9a150b794a7c4a17e63a54b902ec0b0be570
2024-10-22 21:48:59 +03:00
Maciej Szulik
80dc149179
Fix spacing in --validate flag description
...
Kubernetes-commit: 7b0660ec9f572c7b8c964c5447aa9169684f9a2b
2024-10-15 11:16:33 +02:00
googs1025
c90e4a0fd8
bug(kubectl): return resource builder error in scale cmd
...
Kubernetes-commit: 8d084809296a845f01a0a1177bb0bf825f498d84
2024-10-14 18:25:13 +08:00
Akash
4106fc8791
Added shorthand for explain --output
...
Removed short flag example
Kubernetes-commit: 923a41370dc85062241fa149edda1307a16910e2
2024-10-05 03:19:57 +05:30
koba1t
983dddad9d
Update kubectl kustomize to kyaml/v0.18.1, cmd/config/v0.15.0, api/v0.18.0, kustomize/v5.5.0
...
Kubernetes-commit: e7daa708520502cb375945af117b9e647acf5014
2024-10-09 23:32:45 +09:00
Stephen Kitt
0f462824c7
Use sigs.k8s.io/yaml instead of gopkg.in/yaml
...
Since we have a Kubernetes-specific fork of go-yaml, use that
consistently throughout the project. This doesn't eliminate the
dependencies on gopkg.in/yaml, which are still used indirectly; but it
ensures that the whole project benefits from fixes or changes to
sigs.k8s.io/yaml.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Kubernetes-commit: f1fa4086b329376861272708d81da7988e8c4ad0
2024-10-07 14:27:52 +02:00
Josh Soref
209732ca71
chore: Order ScalingReplicaSet message from->to
...
* change format of event
* include `from 0` for new replicas
* update describe tests to reflect current output
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Kubernetes-commit: 502c05ed019573e8ed43c412f739882eec0f5f7c
2024-05-24 12:18:06 -04:00
David Eads
d6ad8b12b7
add --subresource to kubectl apply
...
Kubernetes-commit: 55ba8b2cbb375aaedcd01dd5d4dd0f81ef0415bf
2024-09-25 17:23:09 -04:00
Matthieu MOREL
c0e80201dc
fix: enable formatter rule from testifylint in module `k8s.io/kubectl`
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Kubernetes-commit: 3e558fe604d9f209a9758e30866226aefda39f8a
2024-07-14 07:58:03 +00:00
Andrea Hoffer
a0d920bb63
Adding example for interactive delete
...
Kubernetes-commit: 8e7593e18ab1788dc15e7f7db669301adcd42b2e
2024-09-20 14:54:52 -04:00
Matthieu MOREL
cfb4ff091f
fix: enable contains rule from testifylint in module `k8s.io/kubectl`
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Kubernetes-commit: 1e7bd5541ea20b41d961f1bb88d9cc958a69ff66
2024-09-22 11:56:01 +02:00
Abhishek Kr Srivastav
36d480f43c
Fix Go vet errors for master golang
...
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com>
Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com>
Kubernetes-commit: 95860cff1c418ea6f5494e4a6168e7acd1c390ec
2024-09-12 18:15:22 +05:30
Keita Mochizuki
90452b2e92
kubectl debug: warning message about legacy profile ( #127230 )
...
* Add warning message for legacy profile
* fix1
* fix2
Kubernetes-commit: dd4943c831dbc43fb8d410ccdbc27e3c807131fa
2024-09-20 00:28:38 +09:00
alegueri
9a0e211708
Update logs.go
...
Kubernetes-commit: ab01874a0658407e1121235591c75f2d6bae0108
2024-08-29 23:52:36 -07:00
Alessandra Guerinoni
b06b2ef141
[UPDATE] updating logs examples to contain --all-pods flag
...
Kubernetes-commit: 8bb6e0282ea1ccefe6fd465c7718c560facc888a
2024-08-25 20:10:07 -07:00
Ryan Winter
1945b46b05
document the "create" option to the "kubeclt wait" command.
...
Signed-off-by: Ryan Winter <ryanwinter@outlook.com>
Kubernetes-commit: a3615ce5a38e9ea09339d4b45b843a84e2bf391d
2024-09-12 09:21:37 -07:00
Micah Hausler
e1b9b58b72
Include additional verbs to can-i
...
Kubernetes-commit: 08ea67334e1cd664c9f3c34be9a51c0f216183aa
2024-08-20 13:21:55 -05:00
Arda Güçlü
2c705c6f91
Increate timeout to 10sec and shortcut when ctx deadline is exceeded
...
Kubernetes-commit: ca2c9c64b489d14352e9b6f4c827506a5653a569
2024-08-16 16:13:01 +03:00
Benjamin Elder
ee337ad2d6
kuebctl cp: discard output from test command
...
we only care about the exit code
see https://github.com/kubernetes/kubernetes/issues/126669
Kubernetes-commit: 78ae67a90042aa6ed5e91fc5730c10f26ba8d7f6
2024-08-14 16:58:02 -07:00
Arda Güçlü
4fe61440d3
Add timeout cancellation to kubectl cp destination path check
...
Kubernetes-commit: d981b19ad30c3396e8a4d197bedc346e68e0270b
2024-08-13 11:02:04 +03:00
Tobias Klauser
d80cbcdb4d
Use Go standard library slices package instead of k8s.io/utils/strings/slices
...
The package was introduced in Go 1.21 and is already in use in the k8s
code base.
Kubernetes-commit: 23dcd2604883c7ba91d72f5a9d84706650260c55
2024-08-15 14:43:53 +02:00
Maciej Szulik
8f2f49349b
wait: don't lowercase condition in --for argument
...
Kubernetes-commit: fad6c424ac9b69229e02f9d9058c8131005f86e2
2024-08-12 16:30:20 +02:00
Sean Sullivan
2c588bc5ed
Falls back to SPDY for gorilla/websocket https proxy error
...
Kubernetes-commit: 9d560540c5268e0e2aebf5306907494cf522c260
2024-07-19 12:04:41 -07:00
Andrea Hoffer
60dccb9d13
A few minor help text tweaks
...
Kubernetes-commit: 5252f79f9bd1142bf838aeaf8168ca7fe7616445
2024-07-17 13:30:34 -04:00
Matthieu MOREL
1a58d7f437
fix: enable empty and len rules from testifylint on pkg package
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Kubernetes-commit: f014b754fb5925dfbca6e27a44d0c3968b157e14
2024-06-28 21:20:13 +02:00
Maciej Szulik
df17d35554
Add --for=create option to kubectl wait
...
Kubernetes-commit: aaf1fb50f32466aa5e845ff423fc4acc8f04c402
2024-07-08 13:32:31 +02:00
Maciej Szulik
1c0cdd03d9
kubectl wait: split condition functions into separate files
...
Kubernetes-commit: 6eec9d6b21316833bc66b1586207d5b2326b35fe
2024-07-03 11:27:08 +02:00
Arda Güçlü
cefe6cb0a0
Add yaml format custom profiling support
...
Kubernetes-commit: e8f473036197b14d33df10b76de8a1c8b12f79ce
2024-06-04 15:06:45 +03:00
Arda Güçlü
157dc2e404
Enable custom profiling in kubectl debug as default
...
Kubernetes-commit: 4e650a995412d60ace07ab67b556137b0bcba1be
2024-06-04 14:59:17 +03:00
TessaIO
25c985cf66
fix: add namespace autocompletion for kubectl config set-context command
...
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
Kubernetes-commit: 62be85249e27e58a92ab3a1caf672159dc3cfd7f
2024-05-20 14:44:54 +02:00
Maciej Szulik
5eeba3a134
Remove deprecated kubectl drain flag
...
delete-local-data was deprecated back in v1.20 with this commit:
625e47aaa2
It's about time we entirely drop the support for this flag. Users should
be already using delete-emptydir-data instead.
Kubernetes-commit: 4b5cf0a2766c02ba88b5d104a79c16b1f1f367b6
2024-07-02 15:48:40 +02:00
Maciej Szulik
b3015b8e3e
Remove deprecated kubectl run flags
...
This commits removes the following flags from kubectl run:
- filename
- force
- grace-period
- kustomize
- recursive
- timeout
- wait
Those flags are deprecated since v1.26, see this commit
09804a198c
.
Kubernetes-commit: f1917f18eb715353610b6dfa0744698fa3fa7654
2024-06-26 17:42:13 +02:00
Jordan Liggitt
81ad0ffc39
Prune explicit nulls from client-side apply create
...
Kubernetes-commit: 8483b9c08763c8f615216e95efdde46d5c7f6ef7
2024-05-29 01:14:18 -04:00
Jordan Liggitt
3f7d004bdf
Revert "Add new --wait-for-creation flag in kubectl wait command"
...
This reverts commit e24b9a022f3b1e97ea538c9754d4d38f119f275e.
Kubernetes-commit: 8d67437865a8e1abaed0b813d6913b412f7ed2b4
2024-06-21 12:13:08 -04:00
Arda Güçlü
d5a8f05803
Remove deprecated kubectl exec command execution without dash ( #125437 )
...
* Remove deprecated kubectl exec command execution without dash
* Use command execution with dash in kubectl exec
* Modify unit tests to only use command after dash
Kubernetes-commit: 6f4e97e905e5553e75a5a8c042c9f5a29bd1b78d
2024-06-21 19:22:55 +03:00
Arda Güçlü
64a1fe556b
Add new --wait-for-creation flag in kubectl wait command
...
kubectl wait command errors out when the waited resource does not exist.
But we need to provide a way to the users about intentionally also waiting for
the creation of resources.
This PR introduces a new flag to cover waiting for the creation of resources
with preserving the default behavior.
Kubernetes-commit: e24b9a022f3b1e97ea538c9754d4d38f119f275e
2024-01-26 15:53:55 +03:00
Sean Sullivan
13611d4701
Graduate PortForwardWebsockets to Beta
...
Kubernetes-commit: 3ae3b4ea551443d8ef695d31bf0c51963fe35ac3
2024-06-15 16:09:23 -07:00
James Munnelly
b57bb4f06e
KEP-4193: promote ServiceAccountTokenNodeBinding feature to beta
...
Kubernetes-commit: 5481e630dea4c57c31b65a4fadf1bbeca77c2c57
2024-05-31 12:16:03 +01:00
Oldřich Jedlička
1d05cd7a4e
Fix editor launch with Windows cmd.exe when KUBE_EDITOR has spaces
...
Kubernetes-commit: df71672e5798960d0c6b4fa730aa7ac12991aef5
2022-08-29 22:13:25 +02:00
Ritikaa96
24a31a929b
correcting description as per review
...
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
Kubernetes-commit: b9ec8b3c4643c36491ba94e48e6b957828c850cb
2024-05-30 11:53:02 +05:30