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
Antonio Ojea
69ef2e6a97
use networking v1beta1 for kubectl describe
...
Kubernetes-commit: c1d06c0ae421f180d0179e89daa1409e6d14bd7c
2024-06-29 10:04:47 +00:00
Jordan Liggitt
81ad0ffc39
Prune explicit nulls from client-side apply create
...
Kubernetes-commit: 8483b9c08763c8f615216e95efdde46d5c7f6ef7
2024-05-29 01:14:18 -04:00
Quan Tian
770b201e9c
Make the output of `kubectl describe service` more informative ( #125117 )
...
* kubectl: add internalTrafficPolicy to Service describer
* kubectl: add loadBalancer ipMode to Service describer
* kubectl: fix duplicate IP fields in Service describer
For a LoadBalancer Service, there were two "IP" fields in the output of
`kubectl describe service` if its loadBalancerIP is not empty, which
looks ambiguous.
Kubernetes-commit: 59d90eb17e41f855e65f6ca4ac3d93d3709a3067
2024-06-26 23:20:34 +00: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
babugeet
0b359223b4
Added logic to check portname in sidecar container (init)
...
Signed-off-by: "babugeet <abhinandhbg@gmail.com>"
Kubernetes-commit: 7a810c6bb6591c4d617b585144d8f54ebaaed334
2024-06-11 20:05:39 +05:30
lowang-bh
733ee4d85e
show pod Status as phase Failed or Succeeded if it has deletionTimestamp
...
Signed-off-by: lowang-bh <lhui_wang@163.com>
fix according to comments
Signed-off-by: lowang-bh <lhui_wang@163.com>
Kubernetes-commit: 4bd3274f433cc37bde2cff5875d61108cc97a7d2
2023-11-25 21:01:41 +08:00
James Munnelly
b57bb4f06e
KEP-4193: promote ServiceAccountTokenNodeBinding feature to beta
...
Kubernetes-commit: 5481e630dea4c57c31b65a4fadf1bbeca77c2c57
2024-05-31 12:16:03 +01:00
TessaIO
b56ea4761e
test: improve unit tests for container name autocompletion
...
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
Kubernetes-commit: fe81d0d5ac32c59bce138291cfcdaf5422617b06
2024-05-16 21:40:50 +02: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
Ritikaa96
6c2c451048
adding suggested changes
...
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
Kubernetes-commit: 6f4e60a6b7ce56a5e083330f2b8c2277f4a659f0
2024-02-26 11:05:01 +05:30
Ritikaa96
2f762a69a2
Improving kubectl get output
...
Adding namespace flag & examples
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
Kubernetes-commit: 22186fafaf79d6eae8375b3d018e181a645a3d31
2024-02-22 14:56:45 +05:30
Stephen Kitt
713b7e79c0
Use canonical json-patch v4 import
...
The canonical import for json-patch v4 is
gopkg.in/evanphx/json-patch.v4 (see
https://github.com/evanphx/json-patch/blob/master/README.md#get-it for
reference).
Using the v4-specific path should also reduce the risk of unwanted v5
upgrade attempts, because they won't be offered as automated upgrades
by dependency upgrade management tools, and they won't happen through
indirect dependencies (see
https://github.com/kubernetes/kubernetes/pull/120327 for context).
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Kubernetes-commit: 5300466a5c8988b479a151ceb77f49dd00065c83
2024-02-16 13:57:24 +01:00
Stephen Kitt
6b5d9dfa70
Update kubectl kustomize to kyaml/v0.17.1, cmd/config/v0.14.1, api/v0.17.2, kustomize/v5.4.2
...
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Kubernetes-commit: 33c6f6bc65395aa514c9cf17115a1c63564c22e7
2024-05-27 17:42:29 +02:00
ah8ad3
e5da5e005a
add approve as a valid verb in can-i
...
Kubernetes-commit: 12684aacefd3d4a2ba4eecded14086a0b626431b
2024-05-26 15:02:09 +03:30
Ritikaa96
ff551a76e3
correcting link to krew install
...
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
Kubernetes-commit: 23ac0be7adf9212bec4771a351417a1142520485
2024-05-27 16:52:19 +05:30
Ritikaa96
8941dd6b94
added name-only and examples in the kubectl plugin help
...
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
Kubernetes-commit: 3848c8b07a4b09d6fe9c8ea88b4229c6f637baf4
2024-04-08 15:02:36 +05:30
Brian Pursley
df7520c1f3
Fix inconsistent validation of -f or -k flag in kubectl create command
...
Kubernetes-commit: 4fddd6a3cda9c95c8ae5b4a36d3c3fb06aa1dce1
2024-05-22 15:36:28 -04:00
Abhishek Kr Srivastav
a4551ef19a
fixed flaky test by splitting expected output string
...
addressed review comments
Kubernetes-commit: 5de6f7cf6167b04892750423228ccd61ac09ddd4
2024-05-22 14:52:52 +05:30
Ahmad Zolfaghari
55821cad07
Fix kubectl explain bug when additionalProperties in schema defines as boolean. ( #124506 )
...
* Fix kubectl explain bug when additionalProperties in schema defines as:
`additionalProperties: true` to ignore iterating.
* trigger error on kubectl explain with integration test on crd with non bool additionalfields
* add changes to fix the problem
* replace sleep with loop and retry for kubectl explain integration test
* replaced testdata file with inline create
Kubernetes-commit: 834658cb26c1cfbb2b41ac2f04711563ee534682
2024-05-21 13:29:06 +00:00
Brian Pursley
8d8b5a6120
Use ptr.To instead of deprecated pointer functions
...
Kubernetes-commit: 288d132cf62efe029b6359c600565f8c7b12647d
2024-05-20 16:14:54 -04:00
mochizuki875
916a6ea031
Add keep options
...
Kubernetes-commit: b63fa1300ca99e65cbb8797c0128f3c1c1d1ef9f
2024-02-06 07:19:23 +00:00
Arda Güçlü
2e9d71e05d
kubectl create cronjobs: Manually set OwnerReferences
...
Kubernetes-commit: 11c0c8bb705f3c4f5dac00f8b0ddbec6a95cd7aa
2024-05-15 13:31:31 +03:00
Case Wylie
b1dfef4f42
feat: add all-pods log flag to kubectl
...
Signed-off-by: Case Wylie <cmwylie19@defenseunicorns.com>
Kubernetes-commit: 6db859eb5de14d748ace74974951697477848ee9
2024-05-07 19:43:46 -04:00
TessaIO
5f33246cf8
feat: add ports autocompletion for kubectl port-forward command
...
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
Kubernetes-commit: a84e893afa2d4fdd1e42ee6047812ff46daa9296
2024-05-01 23:33:39 +02:00
Eduard Voiculescu
f8b298459c
show warning message only when running kubectl get --watch-only
...
Kubernetes-commit: a0aa7bf6d18bbeccc48447bb859ffb8fe28da3dc
2024-02-29 13:53:11 -05:00
Brian Pursley
150571ea52
Change non-quantity strings to sort alphanumerically, instead of using "Natural Sort", which is confusing for users.
...
Kubernetes-commit: 322aa9a649de1db9f9a18889a3c249ec841d2127
2024-04-24 14:59:37 -04:00
ah8ad3
c572c1d825
Add completion for kubectl set image
...
Kubernetes-commit: ee58214bfb909c27222b635c55e2043c776cf211
2024-04-28 14:04:48 +03:30
Daman Arora
649e09882b
kubectl/describe: use endpointslices for describing endpoints
...
Signed-off-by: Daman Arora <aroradaman@gmail.com>
Kubernetes-commit: 3236891023c991f1b66a49b8c9f6331ed6b4a690
2024-05-01 15:09:02 +05:30
Daman Arora
5aca4630e4
kubectl/describe/svc: refactor TestDescribeService
...
Signed-off-by: Daman Arora <aroradaman@gmail.com>
Kubernetes-commit: df417aa9b8813d0e5e1208e9039f140edeff39db
2024-05-01 14:45:45 +05:30
TessaIO
3d99e3ab7e
fix: add whitespace for drain error message
...
Signed-off-by: ahmed.g <ahmed.g@adjoe.io>
Kubernetes-commit: 487f83500faadc8ec972aa164b07940476288e2f
2024-04-28 17:51:06 +02:00
Brian Pursley
852454f7f7
Improve performance of TestForceApply unit test.
...
Change backOffPeriod from const to var, so that it can be set lower during unit test.
Kubernetes-commit: f011ed5ca5b23971f2dc620971b3b5bebb346b84
2024-04-23 22:04:38 -04:00
rmiki
3e85d33843
[ja]fix typo in "kubectl config delete-context -h"
...
Kubernetes-commit: 6229729e86775febdb99b45d03be2b4026f00846
2024-03-13 01:21:01 +09:00
carlory
7f19a8d4f7
fix unusable secret manifest for type docker-registry
...
Kubernetes-commit: c12e12bd89570979efd7798a3a809228d36e7ec3
2023-07-26 18:08:01 +08:00
Claudiu Belu
0ee0d225f2
Replaces path.Operation with filepath.Operation (staging)
...
The path module has a few different functions:
Clean, Split, Join, Ext, Dir, Base, IsAbs. These functions do not
take into account the OS-specific path separator, meaning that they
won't behave as intended on Windows.
For example, Dir is supposed to return all but the last element of the
path. For the path "C:\some\dir\somewhere", it is supposed to return
"C:\some\dir\", however, it returns ".".
Instead of these functions, the ones in filepath should be used instead.
Kubernetes-commit: 856bb5c8f266f5276f1a576f47be622d7cb384e7
2022-06-15 15:17:24 +03:00
Dr. Stefan Schimanski
bea8dbbff9
kubectl: fix plugin lookup with positional arguments
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
Kubernetes-commit: 62d379fa5abd4f109b1f1dfe2112feff03c569b4
2024-03-31 19:44:03 +02:00
Amirsadra Abdollahi
41e94233a1
Fix: correct dryRunStratergy typo in kubectl expose cmd
...
Kubernetes-commit: 041337648938dee4229a4147a0239527b3689082
2024-03-25 18:58:35 +03:30
Siddhant Tibrewal
10fe45a704
Improving Legibility of Kubectl describe configmap by adding new line to output
...
Kubernetes-commit: cb560a72e0f63a28bdc7b8518f9de89d59f76be5
2024-02-29 18:46:27 +00:00
Jaime Caamaño Ruiz
9957529f9c
Describe NetworkPolicy port ranges
...
Signed-off-by: Jaime Caamaño Ruiz <jcaamano@redhat.com>
Kubernetes-commit: aa0e47e863293215db794d6cb5978945e76fe3e2
2024-02-15 12:00:47 +00:00