Commit Graph

1341 Commits

Author SHA1 Message Date
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
Arda Güçlü 49f3ec973c Add e2e test for kubectl interactive delete
Kubernetes-commit: 7faa8bbac3bbd36a4ee680e6f82460d587186139
2024-01-09 10:12:42 +03:00
Arda Güçlü 14d23cc879 Add custom debug profiles on top of static profiles
This PR adds `custom` flag to let user customizes debug resources.
`custom` flag accepts partial container spec in json format.

Kubernetes-commit: af2dadcb18a0411a0f9aa286c743801efdb81049
2023-09-01 11:46:01 +03:00
Sean Sullivan 18888dae3e adds comments to tunnelingResponseWriter
Kubernetes-commit: 3d56ff21fd3c9c9da82ff22044691ef0671ac7b6
2024-03-04 11:10:17 -08:00
Sean Sullivan 1ac3b7558a adds return context in RunPortForward()
Kubernetes-commit: 9e1546284302c66fda0bae12fc301ee8acf39933
2024-03-01 21:10:32 -08:00
Sean Sullivan 858d3a5b72 portforward: tunnel spdy through websockets
Kubernetes-commit: 8b447d8c97e8823b4308eb91cf7d75693e867c61
2024-02-21 08:56:07 +00:00
Craig Newton 0f1712d674 Add namespace to NotFound error for kubectl logs command (#120111)
Signed-off-by: Craig Newton <newtondev@gmail.com>

Kubernetes-commit: 20b28312ea9278c7b93340d0eca71023c45a43b3
2024-03-01 16:16:48 +00:00
ah8ad3 0184416a0c cleanup: add zero as a value for token create duration and act as default, added test, updated the help text
change duration validator text message in create token

unit bug fixed

Kubernetes-commit: 3b5a79f6471309055090b123a6f88197217e9276
2024-02-28 21:52:58 +03:30
Sean Sullivan 2b8ea3563c remote command turn on feature gates
Kubernetes-commit: a147693deb2e7f040cf367aae4a7ae5d1cb3e7aa
2024-02-13 14:10:40 -08:00
Tim Hockin 18e7a287d1 Cleanup: s/depreciated/deprecated/g
Kubernetes-commit: 9f4b82bf3b079fe868effbd2498b61464db6d459
2024-02-18 14:50:55 -08:00
ah8ad3 2ee8f95181 add some comments, redesign style of enums in simple and long view, fix tests to these new changes
Kubernetes-commit: c82c80099d8217b2a3431beeba7c83c52314af37
2024-02-01 14:46:05 +03:30
ahmad.zo c4d840c46e change the extractEnum function to add limit, intent and add tests for new behaviours
Kubernetes-commit: 9d4997ea69eb1d33572f292effe1969376df79f4
2024-01-31 13:54:53 +03:30
ahmad.zo 16b821ae90 fix gofmt error
Kubernetes-commit: 0283498ab408294fabd2ddf3c919f81b954ba425
2024-01-30 11:23:41 +03:30
ahmad.zo 9d1817215f change style of enums
Kubernetes-commit: 0c7281624ea5b489ef8e7354be7b968a4f5aef5d
2024-01-30 10:01:12 +03:30
ah8ad3 f17e427a18 fixes kubectl explain to shows enum for field types if they were defined
Kubernetes-commit: c222db1429ea3699464edec5ce7a0b0a7fa4b9fb
2024-01-29 19:51:35 +03:30
ah8ad3 60b309860d fixes kubectl explain to shows enum for field types if they were defined
Kubernetes-commit: 2216361c59e9e4863fb83b903a6fc14893c16e67
2024-01-29 19:27:27 +03:30
José Carlos Chávez 65a57a36aa chore: adds consistent vanity import to files and provides tooling for verifying and updating them. (#120642)
* chore: drops update vanity imports from script.

* chore: changes copyright year to 2024.

* chore: makes lint happy.

Kubernetes-commit: 6d6398ef9266abce3518a4c9a3d4e4d8feeffdc1
2024-02-08 15:58:16 +00:00
Francis Laniel 4bcd969a9e kubectl debug: add sysadmin profile
Add the sysadmin profile from KEP 1441 [1].

Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
[1]: https://github.com/kubernetes/enhancements/tree/master/keps/sig-cli/1441-kubectl-debug#debugging-profiles

Kubernetes-commit: 4d6c0ba518d6c4037102736fe443490dde006fc2
2023-07-10 14:21:39 +02:00
Ivan Valdes 7cd57900bf describer: improve job and pod template output
* Add Node-Selectors and Tolerations to pod template's describe output.
* Add Suspend, BackoffLimit and TTLSecondsAfterFinished to job's describe
  output.

Kubernetes-commit: 6d65c063caaee8e35a7ae02f2f74cb7b081fdef0
2024-01-05 14:29:01 -08:00
Mohammed Yasin 3e5acb915d fix: create tls secret cert to crt for --cert flag
- Fixed help message for crete tls for --cert flag
- Renamed to "cert" to "crt"

Signed-off-by: Mohammed Yasin <yasindce1998@gmail.com>

Kubernetes-commit: 2203cb7dde8196da4e769d7f7a99918f2c7bb6d3
2023-12-29 06:19:28 +00:00
Vandit Singh 3731515d71 Negative index regression test for json-patch (#122625)
* add testcase with negative index

* exercise successful negative index patching

* use different values for testing

Co-authored-by: Chris Bandy <bandy.chris@gmail.com>

---------

Co-authored-by: Chris Bandy <bandy.chris@gmail.com>

Kubernetes-commit: 83ff8a2f49f820fb355b24c65b8629710dca8a54
2024-01-18 09:58:32 +00:00
carlory 654e5eb2dc vac support ResourceDescriber
Co-authored-by: Arda Güçlü <aguclu@redhat.com>

Kubernetes-commit: d2b16b2a21c0669f9a7b60efbd632da25aef8f19
2024-01-08 18:45:06 +08:00
Brian Pursley 2687c08c5c Fix kubectl drain error handling bug.
Fixed a bug where kubectl drain would consider a pod as having been deleted if an error occurs while calling the API.

Kubernetes-commit: 4aecb151b8301a6fc69f63c08f640c7b2b4289fc
2024-01-04 08:53:57 -05:00
ithrael b7a900337d fix(kubectl): delete pod declare no controllor note
Kubernetes-commit: c7549fe340dfa3c038addf84e61f7a923c6e39d5
2023-08-24 23:51:14 +08:00
Arda Güçlü cb3e3dd9f6 Use tristate for provideclusterinfo to manage provided flag
Kubernetes-commit: 38c67af789bc62b88275e6a12facfe3f7881208c
2023-11-29 08:58:59 +03:00
Arda Güçlü 2f794d398e move provideclusterinfo assignment into correct place
Kubernetes-commit: 5e5f8b1dd29d1c4f983620dd818b1bc1f00d7319
2023-11-28 08:54:54 +03:00
Arda Güçlü 7af2fcf712 kubectl config set-credentials: Add InteractiveMode and ProvideClusterInfo flags
`set-credentials` command can also be used to config kubeconfig with credentials
exec plugins. However, there is no flag provided by this command to set
`InteractiveMode` and `ProvideClusterInfo` fields in credentials exec plugins.
Since `InteractiveMode` is required field, this makes the command's output
is incomplete and invalid. This PR introduces 2 new flags in set-credentials
command to let users can configure these 2 fields in credentials exec plugins,
especially the one `InteractiveMode` which is required.

Kubernetes-commit: b088e65007761bda1aee0b5fb92f79d1aae82c05
2023-11-23 15:32:32 +03:00
Jefftree d8e26d70e5 Make OpenAPIGetter tolerant of nil
Kubernetes-commit: 9d1829c33ac457d2c803ff900f67df03af50fa94
2023-12-15 13:44:54 -05:00
Arda Güçlü bd6c3274b0 Initialize default attach func regardless of the value of flag
Kubernetes-commit: acbbaddada4cf302134962b1d7fd9fb2c0bdba37
2023-12-22 09:50:48 +03:00
Kazuki Suda 2f8da6f89c Update the help mesage of interactive flag in kubectl delete
Kubernetes-commit: 90e68e3a024cf3793a8a6aae5dcfbf7750f4c6e1
2023-12-21 21:42:23 +09:00
weilaaa b84e274c59 use build-in max and min func to instead of k8s.io/utils/integer funcs
Kubernetes-commit: eb8f3f194fed16484162aebdaab69168e02f8cb4
2023-12-15 15:09:11 +08:00
yulng 4afdc439d1 remove PruneWhitelist, use prune-allowlist instead
Signed-off-by: yulng <wei.yang@daocloud.io>
Signed-off-by: Paco Xu <paco.xu@daocloud.io>

Kubernetes-commit: 06679402e75d001d54770c9ec67cacbf28794009
2023-07-05 11:38:20 +08:00
Ritikaa96 54c3cc2496 making suggested changes
Signed-off-by: Ritikaa96 <ritika@india.nec.com>

Kubernetes-commit: 9efff41b8e0103361cd7b8a41dc9641638c5a292
2023-11-30 13:09:54 +05:30
Ritikaa96 b32cbdf03a Updated descriptions in kubectl create deployment help , added example for multiple images
Signed-off-by: Ritikaa96 <ritika@india.nec.com>

Kubernetes-commit: 76919e9569746e4e1ae0ec190892af3a142553c9
2023-09-04 13:53:57 +09:00
calvin 9a67ed3d47 cleanup the retrun style for cp execute function
Signed-off-by: calvin <wen.chen@daocloud.io>

Kubernetes-commit: 6e0ece85c49462c40221cb4e322197dbbcdc8fd4
2023-10-07 19:05:50 +08:00
Antonio Ojea 931e867953 describer: use new ServiceCIDR API
Change-Id: Iff11c70f20bab3e55e4e569fb110ef25dd6dd97e

Kubernetes-commit: 513fdb5422932e3234590d03c4b8d417e7544796
2023-10-29 17:55:03 +00:00
Antonio Ojea 17964a895f kubectl describe
Change-Id: I0664e11a3a5549e1cc9602b22dcaf294200792a4

Kubernetes-commit: 7e77e8b21d1e26b0ee2e4f54684ddd80e4d29983
2022-08-15 19:53:39 +02:00
Jefftree 351ba8bb1c Lazy load OpenAPIV2
Kubernetes-commit: eb32969ab8f3d1455c33a595bba5b3ce4d8a03b8
2023-10-30 15:42:22 -04:00
Jefftree 8c8a04f6d0 Add feature toggle for OpenAPI V3 apply in kubectl
Kubernetes-commit: f23ab829bee7951188d3196c16794cc489d0348c
2023-10-27 01:23:19 -04:00
Jefftree 03a47d93ec use OpenAPIV3 for kubectl diff
Kubernetes-commit: e7216c6623049d713fbf7cc04e2c42eb957a607e
2023-09-15 17:53:10 -04:00
Jefftree 8b0ab9a40e Use OpenAPI V3 for client side SMP
Kubernetes-commit: 4f3b0b15182d80b02d7a7bd2c210c145b7552f82
2023-09-15 16:46:53 -04:00
James Munnelly 468fb1fd0c KEP-4193: bound service account token improvements
Kubernetes-commit: 76463e21d4dec90b4d49975b182a13e1fdb6b20a
2023-09-19 15:23:28 +01:00
Sean Sullivan 5cdf0dd00c OpenAPIResourcesGetter allows lazy-loading OpenAPI V2
Kubernetes-commit: 2eb06e79ef3ac341bf660b86b390740977fc94e7
2023-03-13 20:28:40 -07:00