Commit Graph

3492 Commits

Author SHA1 Message Date
Ben Luddy a03f363d8c Bump github.com/fxamacker/cbor/v2 to v2.6.0.
Kubernetes-commit: aac43dc96f2b679f0ab030fd3512c7e03b0f2df4
2024-02-12 15:46:17 -05:00
Kubernetes Publisher c689318b81 Merge pull request #121486 from benluddy/cbor-stub
KEP-4222: Add stub CBOR serializer.

Kubernetes-commit: 48228bf9dbac308f43abd59a53fdc069fbddee0f
2024-02-10 02:41:06 +00:00
Kubernetes Publisher c077418362 Merge pull request #123023 from ah8ad3/fix-kubectl-explain-show-enum
Fix kubectl explain to shows enum for field types if they were defined

Kubernetes-commit: 012f04b178a44c0002b0f3ded6cc43788daf9139
2024-02-09 06:51:17 +00:00
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
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
Kubernetes Publisher b73518af09 Merge pull request #119200 from eiffel-fl/francis/sysadmin-debug-profile
kubectl debug: add sysadmin profile

Kubernetes-commit: 4163ce5017268b0ae25df327f0a210032ef1cc80
2024-01-25 09:56:28 +00:00
Kubernetes Publisher 97bd96adbc Merge pull request #122618 from ivanvc/improve-describe-job-output
describer: improve job and pod template output

Kubernetes-commit: cf2003fde41756d1d16fcb2d941a86708e8c5460
2024-01-23 21:57:12 +00:00
Kubernetes Publisher 9e4e16118e Merge pull request #122842 from pohly/klog-update
dependencies: klog v2.120.1

Kubernetes-commit: b27b56a46c4c1e6be0dc2b1a0230d86223a7e903
2024-01-18 22:06:15 +00:00
Kubernetes Publisher 52a1a774ea Merge pull request #122839 from pohly/ginkgo-gomega-update
dependencies: ginkgo v2.15.0, gomega v1.31.0

Kubernetes-commit: c82da711b0e2184f851675aac4596bbd0f74763f
2024-01-18 22:06:14 +00:00
Patrick Ohly 22db5a11df dependencies: klog v2.120.1
Kubernetes-commit: e2222f1e304831cbbc57b61afa373612297055fb
2024-01-18 16:58:40 +01:00
Patrick Ohly 3a4f05a7c9 dependencies: ginkgo v2.15.0, gomega v1.31.0
The main reason for updating is support for reporting the cause of context
cancellation: Ginkgo provides that information when canceling a context and
Gomega polling code includes that when generating a failure message.

Kubernetes-commit: 18f0af1f000f95749ca1ea075d62ca89e86bb7da
2024-01-18 12:45:55 +01:00
Kubernetes Publisher d178a0367b Merge pull request #122523 from yasindce1998/secret-fix
fix: create tls secret cert to crt for --cert flag

Kubernetes-commit: 1e136ef8a0b2eaec6abe7a30bff6dc0abfd3f7dd
2024-01-18 09:58:33 +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
Kubernetes Publisher 2d05e1425e Merge pull request #122640 from carlory/kubectl-describe-vac
kubectl: vac support ResourceDescriber

Kubernetes-commit: 8bc0ed16cd8a4c966f6822c96fafc7bd2b1eb2ea
2024-01-15 09:58:24 +00:00
Kubernetes Publisher 136d701b1b Merge pull request #122706 from pacoxu/klog-upgrade
bump klog to  v2.120.0

Kubernetes-commit: 823ecb58f68fbe0a4b37b32e11e75c6f2e0f467c
2024-01-11 22:06:39 +00:00
Paco Xu 6672d5762a bump klog to v2.120.0
Kubernetes-commit: 3c86d21316c25b52a1cf3f9703a0bc2cbe97131c
2024-01-11 17:35:07 +08:00
Kubernetes Publisher 9079505b81 Merge pull request #122574 from brianpursley/kubectl-1532
Fix kubectl drain error handling bug.

Kubernetes-commit: 56ecdadd99aaee518fd9dde45f7c6b81f44d3785
2024-01-09 17:57:35 +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
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
Kubernetes Publisher 8073c5e9c0 Merge pull request #120159 from Ithrael/fix/delete-pod-declare-no-controllor-note
fix(kubectl): delete pod declare no controllor note

Kubernetes-commit: 96461a22a45e09bb9cfc3515ff49616779a9a2a6
2024-01-05 17:57:19 +00: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
Kubernetes Publisher b54e299c96 Merge pull request #122023 from ardaguclu/set-credentials-exec-flags
kubectl config set-credentials: Add InteractiveMode and ProvideClusterInfo flags

Kubernetes-commit: cacdf6c70728086bfcab387b901d9765cbcbfb6b
2024-01-03 17:56:37 +00:00
Kubernetes Publisher 66888859bf Merge pull request #121602 from bzsuni/cleanup/goleak
Update goleak from v1.2.1 to v1.3.0

Kubernetes-commit: c1c68acf29247479c870116d6539c49687ddefdc
2024-01-02 21:57:49 +00:00
bzsuni fc575c8a25 Update goleak from v1.2.1 to v1.3.0
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>

Kubernetes-commit: 5405dd0f9b801a94f0e74c140231dc0ec7a85499
2024-01-03 00:20:48 +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
Kubernetes Publisher da83f8c3d7 Merge pull request #122346 from Jefftree/patcher-fix-openapigetter-nil
Make Patcher tolerant of OpenAPIGetter being nil

Kubernetes-commit: 1b6b3ba013025c1914f6a992b7223e99c185599c
2023-12-27 21:55:42 +00:00
Kubernetes Publisher a01a48e661 Merge pull request #122447 from ardaguclu/fix-debug-attach
Initialize default attach func regardless of the value of flag

Kubernetes-commit: 5104e6566135e05b0b46eea1c068a07388c78044
2023-12-22 10:31:21 +01: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
Kubernetes Publisher 7ee7011bb3 Merge pull request #122441 from superbrothers/update-help-kubectl-delete-interactive
Update the help mesage of interactive flag in kubectl delete

Kubernetes-commit: 0f60241eae00f2fe36f8d47bdfc81f9fe1e3e005
2023-12-22 06:25:48 +01: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
Kubernetes Publisher 8b51c4efe3 Merge pull request #122412 from MadhavJivrajani/bump-go-tools
[go1.22] .*: bump golang.org/x/tools to v0.16.1

Kubernetes-commit: 8a4403a9e5127d2ec3f596c4ce75663e5392cb18
2023-12-20 19:11:55 +00:00
Madhav Jivrajani 2bb798d735 .*: bump golang.org/x/tools to v0.16.1
Bumping tools to include the fix for a nil pointer
deref error in go/types. See golang/go#64812
for more details.

This fix is needed for when we bump to go1.22.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>

Kubernetes-commit: a8da4202c0ac785d57b545e6e310fd754888b50e
2023-12-20 14:31:31 +05:30
Kubernetes Publisher e7a74669e6 Merge pull request #122395 from pohly/ginkgo-gomega-update
dependencies: gomega v1.30.0 + ginkgo v2.13.2

Kubernetes-commit: 7897910469aa091ebf6576740d055a7137fa147c
2023-12-20 10:08:08 +00:00
Patrick Ohly 9767edf07e dependencies: gomega v1.30.0 + ginkgo v2.13.2
The new gomega.BeTrueBecause and gomega.BeFalseBecause are going to be useful
for https://github.com/kubernetes/kubernetes/issues/105678.

Kubernetes-commit: c8f9ebfb72b6569b4e2ec9733f6998afc6602135
2023-12-19 16:16:02 +01:00
Kubernetes Publisher 66d8b6a16b Merge pull request #122310 from weilaaa/use_buildin_max_min_instead
use build-in max and min func to instead of k8s.io/utils/integer funcs

Kubernetes-commit: 2b5c0c281d7d3b75ed7df683f09339147c4a17e9
2023-12-18 21:58:59 +00:00
Jefftree d8e26d70e5 Make OpenAPIGetter tolerant of nil
Kubernetes-commit: 9d1829c33ac457d2c803ff900f67df03af50fa94
2023-12-15 13:44:54 -05:00
Kubernetes Publisher c64d77d39d Merge pull request #120246 from pacoxu/kubectl-apply-prune
remove PruneWhitelist, use prune-allowlist instead

Kubernetes-commit: 45656f8774c7c761f87a593f68563ccdb3b67523
2023-12-15 09:53:53 +00: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
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
Ben Luddy 03a9d1b276 Update vendoring to take new CBOR library dependency.
Kubernetes-commit: 09a1abda998fc37e2e29a120a82be7c6271656e0
2023-10-17 16:51:52 -04:00
ithrael b7a900337d fix(kubectl): delete pod declare no controllor note
Kubernetes-commit: c7549fe340dfa3c038addf84e61f7a923c6e39d5
2023-08-24 23:51:14 +08:00
carlory 7f19a8d4f7 fix unusable secret manifest for type docker-registry
Kubernetes-commit: c12e12bd89570979efd7798a3a809228d36e7ec3
2023-07-26 18:08:01 +08: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