Kubernetes Publisher
9ba2b870d2
Update dependencies to v0.34.7 tag
2026-04-15 22:47:46 +00:00
Kubernetes Publisher
e4156f317e
Merge pull request #138357 from dims/update-moby-spdystream-v0.5.1-1.34
...
[1.34] Update github.com/moby/spdystream from v0.5.0 to v0.5.1
Kubernetes-commit: ca12702454dbad87694dcabe97c5112a4a437a90
2026-04-14 15:08:39 +00:00
Kubernetes Publisher
e7de3f265b
Merge pull request #138349 from dashpole/update_prop_34
...
[release-1.34] Update go.opentelemetry.io/otel to v1.41.0
Kubernetes-commit: 678244eee1990c685faade85b513e981c4d65e1c
2026-04-14 15:08:37 +00:00
Davanum Srinivas
32b5239e8e
Update github.com/moby/spdystream from v0.5.0 to v0.5.1
...
Kubernetes-commit: 7e9c2c8eef26f99aa2f94d8e09d6d32de86c7769
Kubernetes-commit: 4b3d41fae7331a1d9b62e7a362307e31fb400431
2026-04-13 14:22:13 -04:00
David Ashpole
3f8d3ef06b
update go.opentelemetry.io/otel to v1.41.0
...
Kubernetes-commit: 27f03ccf2d87c03a9b105af127b13ed62f2d920c
2026-04-13 14:42:47 +00:00
Kubernetes Publisher
3a88ce1003
Merge pull request #135716 from p0lyn0mial/automated-cherry-pick-of-#135591-upstream-release-1.34
...
Automated cherry pick of #135591 : downgrade reflector watchlist fallback log to V(4)
Kubernetes-commit: 59ffdb45fe5314000349a61bbd241ee6530c0c36
2026-01-07 10:27:37 +05:30
Lukasz Szaszkiewicz
c80976c4dc
downgrade reflector watchlist fallback log to V(4)
...
Kubernetes-commit: 4691935a3e87dd3a9694d36df885cc224f73545f
2025-12-04 16:14:19 +01:00
Kubernetes Publisher
ab04e77fe9
Merge pull request #135592 from serathius/automated-cherry-pick-of-#135580-upstream-release-1.34
...
Automated cherry pick of #135580 - Embed proper interface in TransformingStore
Kubernetes-commit: 2f17c6c3972753a829cbd018fc2570553fecb385
2025-12-04 17:44:55 -08:00
Jordan Liggitt
25da70165e
Use transformer in consistency checker
...
Kubernetes-commit: 9043cb4f1c3f893675872a957076d371fe4bbb53
2025-11-26 15:19:00 -05:00
Valerian Roche
0c76ee5d62
Add unit tests for Data Consistency Detector
...
Kubernetes-commit: 86c4e09a78828504aba09218ff54c222685459d4
2025-07-28 13:53:34 -04:00
Valerian Roche
cc3d9d0039
Embed proper interface in TransformingStore to ensure DeltaFIFO and RealFIFO are implementing it
...
Signed-off-by: Valerian Roche <valerian.roche@datadoghq.com >
Kubernetes-commit: be4a4f5c207ae62b129a59368cc149f4fadc4e34
2025-07-28 13:53:34 -04:00
Kubernetes Publisher
1bb1ad283d
Merge pull request #134589 from liggitt/automated-cherry-pick-of-#134588-upstream-release-1.34
...
Automated cherry pick of #134588 : go 1.25.2/1.24.8 related fixes
Kubernetes-commit: 00b6a4c7afdbd95d9ef5b5f3cada04ac15b0c135
2025-10-14 08:41:34 -07:00
Jordan Liggitt
2505205c42
Remove invalid SAN certificate construction
...
Kubernetes-commit: f40e4ce55298e0d0ea0149987e774b44a276075c
2025-10-09 16:27:05 -04:00
Kubernetes Publisher
7ffba0fd20
Merge pull request #134004 from DerekFrank/automated-cherry-pick-of-#133573-upstream-release-1.34
...
Automated cherry pick of #133573 : fix: Update unit test to catch actual nil Labels case and fix functionality to handle nil Labels
Kubernetes-commit: a147a2c8da02ff628e560c32202de5951f296662
2025-09-26 05:16:16 -07:00
DerekFrank
145cb8f04b
gofmt and review feedback
...
Kubernetes-commit: 4a40ddf1e6b6ec907a2875f0427e129de4bd789f
2025-08-18 09:52:15 -07:00
DerekFrank
ddcdc12cd6
fix: Update unit test to catch actual nil Labels case and fix functionality to handle nil Labels
...
Kubernetes-commit: 4ae3b64b73617c9f9f162874e87f500e265f05e1
2025-08-15 14:28:18 -07:00
Kubernetes Publisher
97396af4f4
Merge remote-tracking branch 'origin/master' into release-1.34
...
Kubernetes-commit: c5d688bb1020431135dabe225e562052c0b296e3
2025-08-16 10:27:36 +00:00
Benjamin Elder
5f737f36c5
clarify that staging repos are automatically published
...
Kubernetes-commit: e49f6116f9eec5d48f2c8913e598fef496644d01
2025-08-15 14:33:07 -07:00
Benjamin Elder
0b8655b458
add pointer to CONTRIBUTING.md for more details on contributing, clarify read-only
...
Kubernetes-commit: ada2ed8487708056ff11bd2413da1073558e6d7c
2025-08-15 10:13:18 -07:00
Benjamin Elder
c00384c00d
link to what a staging repository is
...
Kubernetes-commit: 011d50019758a7405c6ff37f0fdbd44dacb607b5
2025-08-15 10:10:26 -07:00
sAchin-680
b53b1f8624
docs: clarify that this is a staging repository and not for direct contributions
...
Signed-off-by: sAchin-680 <mrmister680@gmail.com >
Kubernetes-commit: 7c43e6d2fdbf88f8d92559dac3cabb23da2a2957
2025-04-17 17:51:45 +05:30
Sunyanan Choochotkaew
42e61823a9
KEP-5075: generated codes from make update
...
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com >
Kubernetes-commit: 59bba927178174041c5e72f60432e70c5db210bf
2025-08-08 19:39:44 +00:00
Kubernetes Publisher
da11948805
Merge pull request #130653 from yliaog/master
...
kubelet and scheduler for extended resource backed by DRA
Kubernetes-commit: 1b273b385e0ec817167040ec2b75cb7fdda105da
2025-07-29 22:51:22 +00:00
yliao
3b7d818a7f
extended resource backed by DRA: codegen
...
Kubernetes-commit: 3068b60b830fb77694300c2274144de13a220481
2025-07-17 16:45:05 +00:00
Kubernetes Publisher
bb115818ba
Merge pull request #130160 from KobayashiD27/dra-device-binding-conditions
...
Implement DRA Device Binding Conditions (KEP-5007)
Kubernetes-commit: e2ab84070896a8ed5b703b015522326d44597400
2025-07-29 14:53:08 +00:00
Kobayashi,Daisuke
9999d6448a
KEP-5007 DRA Device Binding Conditions: Run make update
...
Kubernetes-commit: ac81b829e4a1a26e11b5eb058b754b3fc621b0aa
2025-07-29 11:34:03 +00:00
Kubernetes Publisher
f78361a647
Merge pull request #132942 from thockin/kyaml
...
Add KYAML support to kubectl
Kubernetes-commit: 1451dd1b0873e801e082f3a06a52685bcd68dcac
2025-07-25 02:49:18 +00:00
Kubernetes Publisher
8b03d65abb
Merge pull request #132632 from sdowell/gc-rv-race
...
fix: add RV check on GC delete calls
Kubernetes-commit: a5d8ab60efe08062bdf065646f200ec83d4278d8
2025-07-25 02:49:16 +00:00
Kubernetes Publisher
bce2be2f20
Merge pull request #132642 from yuanwang04/restart-rules
...
Implement container restart policy rules
Kubernetes-commit: 26045b2fab22857c5b8a836ad709df717637491a
2025-07-25 02:49:15 +00:00
Kubernetes Publisher
6314d905de
Merge pull request #131549 from carlory/KEP-3751-GA
...
[Kep-3751] Promote VolumeAttributesClass to GA
Kubernetes-commit: 7912e5fd677226e4ab18a1940aa8c91bac816997
2025-07-25 02:49:13 +00:00
Kubernetes Publisher
d4f2d5b8cc
Merge pull request #132935 from benluddy/cbor-bump-custom-marshalers
...
KEP-4222: Adopt text and JSON transcoding support for CBOR.
Kubernetes-commit: dfc0998baa4d6c2cd630aa3c5b8def4e9b1fcd8e
2025-07-24 22:49:06 +00:00
Kubernetes Publisher
f4919f808e
Merge pull request #133171 from p0lyn0mial/upstream-fake-metadata-client-opts-watch
...
client-go/metadata/fake: sets opts.Watch to true
Kubernetes-commit: 3a99a64438d7f15e170889181f93bb1dc48c4888
2025-07-24 18:49:18 +00:00
Tim Hockin
38777006cd
Re-vendor sigs.k8s.io/yaml @ v1.6.0
...
Kubernetes-commit: 8182a27f3b0769cefe1bcebfb938a7bafd51c88e
2025-07-24 11:46:03 -07:00
Mayuka Channankaiah
753cfe1811
client-go, kubectl: Replace deprecated ErrWaitTimeout with recommended method ( #132718 )
...
* client-go: Replace depracted ErrWaitTimeout with recommended method
* Fix UT and Integration tests
* IT test
Kubernetes-commit: ffe306d67958297202e9492ea644b42c0e7e694d
2025-07-24 20:26:27 +05:30
Kubernetes Publisher
764374b324
Merge pull request #132706 from pohly/dra-api-v1
...
DRA API: graduation to GA
Kubernetes-commit: 254a46943aab33017b581a7e9e393f3b720feef8
2025-07-24 14:49:11 +00:00
Lukasz Szaszkiewicz
fcbe18a69a
client-go/metadata/fake: sets opts.Watch to true
...
Kubernetes-commit: 12d67506661cfc3e16a769ded834f5d08dba40c9
2025-07-24 13:50:05 +02:00
Patrick Ohly
14fa3d1f20
DRA API: s/v1beta2/v1/ and generated files
...
Kubernetes-commit: 4e592f6c145bb322786aa77ff2d25d8fe370b893
2025-07-03 13:29:02 +02:00
Patrick Ohly
dce90c45af
DRA API: verbatim copy v1beta2 -> v1
...
Kubernetes-commit: 1f2f433f76dbc28d1fd6602f96e6dd871893601b
2025-07-03 12:11:01 +02:00
Kubernetes Publisher
5f1f878e5c
Merge pull request #132558 from HirazawaUi/Implement-4762
...
KEP-4762: Allows setting any FQDN as the pod's hostname
Kubernetes-commit: 6ef2215eb7e4227ca762ad1c2d462f109b37292d
2025-07-24 02:49:01 +00:00
Jordan Liggitt
70f53edfc8
Make dynamic and metadata clients plumb DeleteOptions
...
Kubernetes-commit: 84f6d742c5b09480fc3199f9995effb898c60099
2025-07-01 19:38:11 -04:00
Yuan Wang
3d6860cb41
Add container restart rules to API
...
Kubernetes-commit: af595a44aefcbf01dfad82c40af2e97346c938d9
2025-07-01 02:33:00 +00:00
HirazawaUi
8d8a532ad4
Add the HostnameOverride field to the Pod API
...
Kubernetes-commit: 8b3814c4ab8971dc4c1bef32457a595c5a6eaa63
2025-06-27 19:41:18 +08:00
Kubernetes Publisher
06fcc8a075
Merge pull request #133124 from p0lyn0mial/upstream-fake-dynamic-client-opts-watch
...
client-go/dynamic/fake: sets opts.Watch true
Kubernetes-commit: c2be2cac02d07edc01ea7e6c2f789992e6c1f96f
2025-07-23 06:28:49 +00:00
Bing Hongtao
a052c014c7
KEP-3721: Support for env files ( #132626 )
...
* Add FileKeyRef field and struct to the Pod API
* Add the implementation code in the kubelet.
* Add validation code
* Add basic functionality e2e tests
* add codes for drop disabled pod fields
* update go.mod
Kubernetes-commit: 6f3b6b91f08585727784620285f990782901572f
2025-07-23 06:28:49 +00:00
Lukasz Szaszkiewicz
aca441f80e
client-go/dynamic/fake: sets opts.Watch true
...
Kubernetes-commit: b97decb7d918083e97beb7ff4e5e2052b6e63220
2025-07-22 15:58:22 +02:00
Kubernetes Publisher
ec5b832e60
Merge pull request #128010 from ahmedtd/pod-certificates-types
...
Pod Certificates: Preliminary implementation of KEP-4317
Kubernetes-commit: cc674e7470cc1e98145ce6f915469ff6f748f443
2025-07-22 05:10:00 +00:00
Kubernetes Publisher
b9f61132f4
Merge pull request #133101 from isimluk/cleanup-testfiles
...
ci: client-go: test should cleanup their temp dir
Kubernetes-commit: 9636317da03df9e8e71eab9327854c0ec8dc9d7c
2025-07-22 01:09:48 +00:00
Kubernetes Publisher
8ff0be58e3
Merge pull request #133103 from isimluk/remove-unnecessary-test-harness
...
ci: remove unnecessary test harness
Kubernetes-commit: b4de8bc1b1095d8f465995521a6986e201812342
2025-07-21 10:04:28 -07:00
Šimon Lukašík
f4943db564
ci: remove unnecessary test harness
...
This TestMain() is equivalent to not having any TestMain() at all.
This is the only such instance in whole repo.
Kubernetes-commit: 7e5aafcb164db5135a4d18ee4661c8813f2cc908
2025-07-21 12:59:52 +02:00
Šimon Lukašík
2d84553721
ci cleanup: make sure to remove test KUBECONFIGs
...
Calling os.Exit() skipped the
`defer os.RemoveAll(tmp)`
above and thus dangling files & dirs would appear in their $TMPDIR.
Since go1.15 we can safely remove os.Exit() from TestMain() function.
As this exact issue was common enough so that go1.15 changed[1] the API of
TestMain to no longer require os.Exit to be called.
Reproducer:
$ (cd staging/src/k8s.io/client-go; go test ./tools/clientcmd)
$ ls -d /tmp/testkubeconfig*
/tmp/testkubeconfig1015943687
[1]: https://go-review.googlesource.com/c/go/+/219639
Kubernetes-commit: 457df1cf9817e29381609fbf2d85854a6b6a52ac
2025-07-21 10:46:37 +02:00
Taahir Ahmed
0d5cb31872
Pod Certificates: make update
...
Change-Id: Ib258c1f3bf238f41cfa1d6de8e8d0de5b8379a06
Kubernetes-commit: 6d4000f844e22a13bc4f9cb3932ea1ab50216651
2025-07-21 05:41:20 +00:00
Kubernetes Publisher
5f8e38e02c
Merge pull request #133030 from PatrickLaabs/132749-timerptr
...
chore: replacing timer ptr with ptr.To
Kubernetes-commit: 792061af02da263576b9b0676c331e28b93d3943
2025-07-19 05:09:29 +00:00
Kubernetes Publisher
be36413bbc
Merge pull request #132821 from cici37/mapBeta
...
[KEP-3962]Promote MutatingAdmissionPolicy to Beta
Kubernetes-commit: 3dd0e86190cc023a98f59d48d75efde08a27fd82
2025-07-18 01:09:28 +00:00
Kubernetes Publisher
fa10fa2dea
Merge pull request #132849 from kei01234kei/update_lease_resource_version_before_update_lease
...
Prevent the failure of releasing the lock by updating the resource version in case of the resource conflict
Kubernetes-commit: 793191529651ab5c9e49914f19e9bdf85d412218
2025-07-17 17:09:21 +00:00
Kubernetes Publisher
715e46ed57
Merge pull request #133020 from pohly/apimachinery-list-map-keys
...
support optional listMapKeys in server-side apply
Kubernetes-commit: d33af7f7efc7ff5d8813a85290189883167a5226
2025-07-17 17:09:20 +00:00
Keisuke Ishigami
e36950929b
set the timeout to Get method
...
Kubernetes-commit: 300c7b815a2eb9598c53c0b386715650f5052804
2025-07-17 22:33:32 +09:00
PatrickLaabs
d4f7b29b04
chore: replacing timer ptr with ptr.To
...
Kubernetes-commit: 2b13b87e609b83f453f7a160d9cae8a15c0e64f2
2025-07-17 15:11:55 +02:00
Kubernetes Publisher
a21e7a8bf0
Merge pull request #131293 from skitt/typo-watchAction
...
Typo fix: watchActcion
Kubernetes-commit: 051cf278cf7b1d8784c6c6ca39bd8ab6c4a8c02f
2025-07-17 09:09:20 +00:00
Jordan Liggitt
d1ceeb33a0
sigs.k8s.io/structured-merge-diff/v6 v6.3.0
...
Kubernetes-commit: 4d34975a46658efd90274c5fe05d46732e04ca67
2025-07-16 16:57:41 -04:00
Kubernetes Publisher
f78427e367
Merge pull request #132871 from dims/bump-k8s.io/kube-openapi-to-latest-SHA-f3f2b991d03b
...
Bump k8s.io/kube-openapi to latest SHA (f3f2b991d03b) and sigs.k8s.io/structured-merge-diff/{v4 => v6}
Kubernetes-commit: 48e04d0d6c43cfc4729857775252b89b68d65b87
2025-07-15 09:09:29 +00:00
Kubernetes Publisher
34f52c14ea
Merge pull request #131200 from ntnn/kcp3350-client-go
...
Update docs on workqueue to match implementation
Kubernetes-commit: c34c70b2db75efc113402805d0a3bff391d13a79
2025-07-15 05:09:06 +00:00
Kubernetes Publisher
f84a70ae3c
Merge pull request #132928 from p0lyn0mial/upstream-watchlist-reflector-table-unsupported
...
reflector: detects unsupported meta.Table gvks for watchlist
Kubernetes-commit: 1127e027898e12b4dde8694660da2fbf81c7028a
2025-07-14 21:09:13 +00:00
Keisuke Ishigami
be4c8bc002
fix test
...
Kubernetes-commit: 9a7dddf5a713e109418f3726514fdf60246ada3b
2025-07-15 01:07:43 +09:00
Keisuke Ishigami
3633ea23d3
chore
...
Kubernetes-commit: 09ec6f744833fb72a319013ae25cf0286cdd125e
2025-07-15 01:07:25 +09:00
Keisuke Ishigami
b62c1cc29f
add test which checks release method calls Get
...
Kubernetes-commit: f20be4c094cdc037e54d755dcd6292991cee701d
2025-07-14 23:17:19 +09:00
Lukasz Szaszkiewicz
c1d15a3638
reflector: detects unsupported meta.Table gvks for watchlist
...
Kubernetes-commit: da7c55e0d2f962c8493864a069be5acb8902579f
2025-07-14 13:13:44 +02:00
Kubernetes Publisher
3a4ad9c658
Merge pull request #132878 from ylink-lfs/chore/int32ptr_removal
...
chore: replace int32Ptr usage with ptr.To
Kubernetes-commit: 20114b2090791e191eff4417dfd56f50252fd714
2025-07-13 05:08:51 +00:00
ylink-lfs
81caec87ee
chore: replace int32Ptr usage with ptr.To
...
Kubernetes-commit: e0f9914ef726bd5bcafcdadf5a6a0a6e92d9a885
2025-07-11 09:11:04 +08:00
Davanum Srinivas
f4d210639b
Bump k8s.io/kube-openapi to latest SHA (f3f2b991d03b)
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: ebc1ccc491c944fa0633f147698e0dc02675051d
2025-07-10 09:21:52 -04:00
Nelo-T. Wallus
6116f46372
Update docs on shutdown and draining
...
Kubernetes-commit: 67aaa956da3e6110e8155cc08539c488fc5e1298
2025-07-09 21:43:30 +02:00
Keisuke Ishigami
500bfe00cd
Prevent the failure of releasing the lock by updating the resource version in case of a resource conflict
...
Kubernetes-commit: 271233a62aeab02eb0f7a6567d3ddba6d09a4f21
2025-07-10 02:59:21 +09:00
Kubernetes Publisher
5439ef7b0c
Merge pull request #132775 from ash2k/use-sets-type
...
Use `sets.Set` instead of a local impl
Kubernetes-commit: 1d392729b52129886d8ed286282be8f6dd36fa9f
2025-07-09 01:08:32 +00:00
Kubernetes Publisher
879be6242f
Merge pull request #131203 from xuzhenglun/fix-ws-race
...
make sure all streams are created before start demux websocket
Kubernetes-commit: 2dfb3e4ffd31c8b6b9f7c55328bcf8c7da53aa68
2025-07-08 17:08:40 +00:00
Cici Huang
6d6ff9fbae
Auto gen
...
Kubernetes-commit: 6cd00cdcba01f8d6873a3c94a4e997e1e9329187
2025-07-08 13:34:43 +00:00
xuzhenglun
2f016580ef
make sure all streams are created before starting demux websocket
...
Kubernetes-commit: 3379d5ac4b6a1afbbaead06689a8584ce546a275
2025-07-08 18:31:30 +08:00
Mikhail Mazurskiy
76df3ebd2e
Use sets.Set instead of a local impl
...
Kubernetes-commit: d193ffe57ffbbbc07dd49993e4f06ab3b50b2317
2025-07-07 19:21:39 +10:00
Kubernetes Publisher
6c24674413
Merge pull request #132005 from kei01234kei/handle_context_in_processloop
...
Handle context in the process loop
Kubernetes-commit: 43a30ef17b378ea460bb34d47f16047da50bfce2
2025-07-07 01:08:46 +00:00
Kubernetes Publisher
660181394a
Merge pull request #132699 from PatrickLaabs/132086-csr
...
chore: depr. pointer pkg replacement for the csr
Kubernetes-commit: de74ab716ef1014206427622d2070482dc304cc6
2025-07-03 21:08:33 +00:00
Kubernetes Publisher
7d9d3036fb
Merge pull request #132698 from PatrickLaabs/132086-reflector
...
chore: depr. pointer pkg replacement for the reflector
Kubernetes-commit: 0ce9a03285b8d689e0072b06a42ffeae77fc416c
2025-07-03 21:08:31 +00:00
PatrickLaabs
286cc8368b
chore: depr. pointer pkg replacement for the csr
...
Kubernetes-commit: 6c3146e3557e1de3d617f49d0b64ee380a42a8b1
2025-07-03 11:34:13 +02:00
PatrickLaabs
735f105e54
chore: depr. pointer pkg replacement for the reflactor
...
Kubernetes-commit: 9345552274d2999c59a609488d0673edbb3a246e
2025-07-03 11:27:00 +02:00
Kubernetes Publisher
2cfeed63b2
Merge pull request #132675 from dims/bump-sigs-k8s-io-json-no-code-changes
...
Bump sigs.k8s.io/json to latest - no code changes
Kubernetes-commit: e47ac3eb6faa97874658dc281c72b5623f994801
2025-07-03 01:08:29 +00:00
Kubernetes Publisher
783cf83ee3
Merge pull request #132677 from dims/update-github.com/emicklei/go-restful/v3-to-v3.12.2
...
Update github.com/emicklei/go-restful/v3 to v3.12.2
Kubernetes-commit: 305c0e06c99ff9df013edd804294217a04e4dd31
2025-07-02 21:08:39 +00:00
Arthur Befumo
6980728f27
Fix AuthInfo godoc for Token / TokenFile precedence ( #132659 )
...
* Fix AuthInfo godoc for Token / TokenFile precedence
* nit
* update
Kubernetes-commit: 33cd2e1ba08bf6b936c0c2c29bcabe502ce75851
2025-07-02 11:55:24 -04:00
Kubernetes Publisher
0746d1b732
Merge pull request #132676 from dims/bump-go.yaml.in/yaml/v3-to-v3.0.4
...
Bump go.yaml.in/yaml/v3 to v3.0.4
Kubernetes-commit: 01c03ae9cf7b1371c8bc2bdf12d9244e63e83750
2025-07-02 17:08:47 +00:00
Davanum Srinivas
cb8249f035
Update github.com/emicklei/go-restful/v3 to v3.12.2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: b44b0fbf1299c6821033076352b91914d2efef67
2025-07-02 08:00:43 -04:00
Davanum Srinivas
cec6959636
Bump go.yaml.in/yaml/v3 to v3.0.4
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 58e620cc4403d30f9fb6aab245cfb47db17957de
2025-07-02 07:37:06 -04:00
Davanum Srinivas
e5813734c1
Bump sigs.k8s.io/json to latest - no code changes
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 00f8cbae6b8fd3799a1a044abcefdbb572d35b27
2025-07-02 07:32:24 -04:00
Kubernetes Publisher
b254476a92
Merge pull request #132654 from Jefftree/b-openapi
...
Bump kube-openapi
Kubernetes-commit: db49c25956df36c777213251c4a47d6d9ee1c5ea
2025-07-01 21:08:27 +00:00
Jefftree
059a564a92
Update vendor
...
Kubernetes-commit: d04ee27c98ba91680ac6c6a8ade9e33d7ee44569
2025-07-01 15:23:58 +00:00
Jefftree
599cc9f395
pin kube-openapi to v0.0.0-20250628140032-d90c4fd18f59
...
Kubernetes-commit: b41d375b8881f25ff5fe7775b4dedaba1eaa3f02
2025-07-01 15:21:22 +00:00
Kubernetes Publisher
5e8db78e04
Merge pull request #131799 from DataDog/client-go-reflector-transformer
...
[client-go #1415 ] Use transformer from provided store within internal stores in reflector to limit memory usage bursts
Kubernetes-commit: 3f0a1c6c7f02f33649e58996408b1501fce3c0ee
2025-06-30 17:29:37 +00:00
Kubernetes Publisher
c2ce9a8b31
Merge pull request #132584 from alvaroaleman/fix-asfafs
...
Applyconfiguration-Gen: Only the root AC should implement runtime.ApplyConfiguration
Kubernetes-commit: b361d91a6f789d89c1b125d8fc8838adbb91d5c5
2025-06-28 01:29:33 +00:00
Kubernetes Publisher
267615c1eb
Merge pull request #132438 from dims/golangci-plugin-for-sorting-feature-gates
...
golangci plugin for sorting feature gates
Kubernetes-commit: 2e02a0088574d126c6d4a82ea472c7cb6c3252f5
2025-06-27 21:29:30 +00:00
Alvaro Aleman
3d73750dfc
Re-generate applyconfigurations
...
Kubernetes-commit: 7d5ab75627716d57f8937a7eb0f453f420cb766d
2025-06-27 14:30:38 -04:00
Valerian Roche
71776a84bd
[client-go #1415 ] Use transformer from provided store within internal stores in reflector to limit memory usage bursts
...
Signed-off-by: Valerian Roche <valerian.roche@datadoghq.com >
Kubernetes-commit: 585ed0a5cb378e794e4775bc846d5309ca65f2c6
2025-06-26 22:00:41 -04:00
Keisuke Ishigami
d9cda8802e
resolve linter check
...
Kubernetes-commit: 5cca03792748714547c39330ac9cb8cb9c7c60ae
2025-06-27 00:49:02 +09:00
Keisuke Ishigami
fc748aa158
Revert "pop respects the context"
...
This reverts commit 1c33d98762511c10f89c40358a1935250b03b0c8.
Kubernetes-commit: 74af3ac8ad1122528bb9971c3a2d282eff529beb
2025-06-26 23:49:34 +09:00
Keisuke Ishigami
bc19363821
Revert "modify tests"
...
This reverts commit 2cd5dbbdaab98020b37df7125f622db7a6dd885a.
Kubernetes-commit: 2dcce93336e52eb16aab595fcc75254f4abfa5ae
2025-06-26 23:49:25 +09:00
Davanum Srinivas
40f8130723
Ensure all the files have the updated sorting
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: d50e1a684cd53950210041b875ae3a41dac05c33
2025-06-25 08:21:01 -04:00
Kubernetes Publisher
9582881101
Merge pull request #132357 from dims/drop-usage-of-forked-copies-of-goyaml.v2-and-goyaml.v3
...
Drop usage of forked copies of goyaml.v2 and goyaml.v3
Kubernetes-commit: c1afec6a0b15ca1ed853c1321ac2c972488bf5b8
2025-06-25 17:29:11 +00:00
Kubernetes Publisher
cf3a9d7f2e
Merge pull request #132504 from jpbetz/name-formats
...
Introduce OpenAPI format support for k8s-short-name and k8s-long-name
Kubernetes-commit: 1d932bd6cc951b9182d07d701946aebaf667df94
2025-06-25 17:29:09 +00:00
Davanum Srinivas
11885e75d4
switch to latest sigs.k8s.io/yaml v1.5.0 (run update-gofmt.sh as well)
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: c5b4b133ce3252ee19b7167eb69a99d88fdefda8
2025-06-25 08:03:06 -04:00
Lukasz Szaszkiewicz
1785b5afec
client-go/reflector: stop exposing UseWatchList ( #132453 )
...
* client-go/reflector: stop exposing UseWatchList
* apiserver/cacher: stop setting reflector.UseWatchList
* test/integration/watchlist: fix TestReflectorWatchListFallback
Kubernetes-commit: b8b3984874e930c92057589fd1a7668dbdffc117
2025-06-25 13:04:29 +02:00
Ben Luddy
39c7041873
Bump to github.com/fxamacker/cbor/v2 v2.9.0.
...
Kubernetes-commit: 917659269af60f8ca960deeb0991df93e5ad1635
2025-06-24 14:25:43 -04:00
Kubernetes Publisher
bb7300621b
Merge pull request #132255 from likakuli/feat-nothingfastreturn
...
feat: optimize ListAll and ListAllByNamespace to return directly when nothing to select
Kubernetes-commit: c379296bd1b29ee8e890aff393959398ac905b2f
2025-06-24 17:29:33 +00:00
Joe Betz
6a256de8a6
Bump to latest kube-openapi
...
Kubernetes-commit: dc323756cea2d1ebe32d7acb5a14a1769c14486f
2025-06-24 09:24:27 -04:00
Keisuke Ishigami
00429ab356
modify tests
...
Kubernetes-commit: 2cd5dbbdaab98020b37df7125f622db7a6dd885a
2025-06-14 22:04:22 +09:00
Keisuke Ishigami
d56ed5816f
pop respects the context
...
Kubernetes-commit: 1c33d98762511c10f89c40358a1935250b03b0c8
2025-06-14 21:59:56 +09:00
likakuli
d158bb37c5
feat: optimize ListAll and ListAllByNamespace to return directly when nothing to select
...
Signed-off-by: likakuli <1154584512@qq.com >
Kubernetes-commit: 5a7e04b6cc70bd7624536e09b4e977e8f25cb476
2025-06-12 17:33:32 +08:00
Kubernetes Publisher
41574813b1
Merge pull request #132194 from alvaroaleman/local0dev
...
Add an interface that all apply configurations implement
Kubernetes-commit: 7b04d7faefcc28a90fb092e789abda467b086403
2025-06-19 11:27:34 +00:00
Alvaro Aleman
97456eac24
Re-Generate applyconfigs
...
Kubernetes-commit: a5d42f5693973c11ca911863a0fd6cc2f2a0b4a6
2025-05-28 17:35:29 -04:00
Kubernetes Publisher
212c32462b
Merge pull request #132350 from p0lyn0mial/upstream-rm-data-consistency-checker-for-list-requests
...
client-go/util/consistencydetector: remove CheckListFromCacheDataConsistencyIfRequested
Kubernetes-commit: c0cb737a9e198b60dfac235ca77edee07fc7c45d
2025-06-17 10:50:59 -07:00
Lukasz Szaszkiewicz
16465459fa
client-go/util/consistencydetector: move IsDataConsistencyDetectionForWatchListEnabled
...
Kubernetes-commit: 32fcaf14067c3dc054c887f5060bdb3325965014
2025-06-17 15:05:46 +02:00
Lukasz Szaszkiewicz
a7dabba123
client-go/util/consistencydetector: remove CheckListFromCacheDataConsistencyIfRequested
...
Kubernetes-commit: bad49390493c10e5288ecdd5d81dc6c16f2b7520
2025-06-17 13:37:57 +02:00
Kubernetes Publisher
10fe56d6e0
Merge pull request #132221 from dims/new-cmp-diff-impl
...
New implementation for `Diff` (drop in replacement for `cmp.Diff`)
Kubernetes-commit: 3e39d1074fc717a883aaf57b966dd7a06dfca2ec
2025-06-17 03:31:48 +00:00
Kubernetes Publisher
62b0aba8c9
Merge pull request #132285 from p0lyn0mial/upstream-watchlist-rest-client-rm
...
rest client: remove support for API streaming
Kubernetes-commit: c6777da47d1f9e93585cf23363da5c393eb7011a
2025-06-13 06:43:11 -07:00
Lukasz Szaszkiewicz
65a2176a48
client-go/rest: rm watchlist
...
Kubernetes-commit: 6a37976848b43dae9aa82854b5c5d321f148bb0b
2025-06-13 10:48:45 +02:00
Kubernetes Publisher
03836b3bdc
Merge pull request #132257 from p0lyn0mial/upstream-watchlist-typed-client-rm
...
typed client: remove support for API streaming
Kubernetes-commit: 41dc045529a306932165684450cfe89d160fe8c9
2025-06-13 14:12:13 +00:00
Kubernetes Publisher
4e82e68412
Merge pull request #132269 from dims/update-to-latest-github.com/modern-go/reflect2
...
Update to latest github.com/modern-go/reflect2
Kubernetes-commit: d55b119d34883bbad2a3436dcb6c62339d963031
2025-06-12 20:00:49 +00:00
Kubernetes Publisher
87b1ff7794
Merge pull request #132000 from pohly/dra-api-alpha3-removal
...
DRA API: remove obsolete types from v1alpha3
Kubernetes-commit: 7e94ec9eacc2996e0e5b00af003276ae751915bc
2025-06-12 20:00:47 +00:00
Davanum Srinivas
25fa1fdef2
Update to latest github.com/modern-go/reflect2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 3908550c0dc189cfa9de38a84bee508fa0659463
2025-06-12 11:20:39 -04:00
Kubernetes Publisher
d33a6ba860
Merge pull request #132229 from p0lyn0mial/upstream-watchlist-dynamic-client-rm
...
dynamic client: remove support for API streaming
Kubernetes-commit: 5abd2ac2e3900165d87c6078f55afd98ae6b085a
2025-06-12 08:00:42 +00:00
Lukasz Szaszkiewicz
3fab93670b
client-go/gentype: remove watchlist
...
Kubernetes-commit: 2f943293ed80e329141a0b8ab8ce093416c456c7
2025-06-11 13:43:37 +02:00
Lukasz Szaszkiewicz
6708db95c9
client-go/dynamic: rm watchlist
...
Kubernetes-commit: 3038f3530d1b35d896826673acdae0bd55bd769c
2025-06-11 09:45:09 +02:00
Davanum Srinivas
f21dd69478
Add a replacement for cmp.Diff using json+go-difflib
...
Co-authored-by: Jordan Liggitt <jordan@liggitt.net >
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 03afe6471bdbf6462b7035fdaae5aa0dd9545396
2025-06-10 23:08:41 -04:00
Kubernetes Publisher
c828854c20
Merge pull request #131670 from pohly/client-go-watch-context-comment
...
client-go: call out WithContext inconsistency
Kubernetes-commit: 3d699ce0ecd9b2abff3ee98c1dcbaa8e073ac5cd
2025-06-11 00:01:06 +00:00
Kubernetes Publisher
9638111dc7
Merge pull request #132149 from p0lyn0mial/upstream-watchlist-meta-client-rm
...
metadata client: remove support for API streaming
Kubernetes-commit: 3aa448625c2d2f10275c608f54b88074ef6aeafa
2025-06-09 12:01:07 +00:00
Kubernetes Publisher
ce2092b6b1
Merge pull request #132176 from dims/tolerate-newer-golang/oauth2-version
...
tolerate newer golang/oauth2 version in TestTokenSourceTransportRoundTrip
Kubernetes-commit: 34cea34c7f1530edbaaeb0524c16885d7894a7ec
2025-06-08 20:38:22 -07:00
Davanum Srinivas
f7066acf25
tolerate newer golang/oauth2 version
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 32aa52adf667d7873eaed8094fc5489a93517e38
2025-06-07 19:52:48 -04:00
Kubernetes Publisher
12398ddf4e
Merge pull request #132103 from nojnhuh/typed-ring-buffer
...
Replace queue.FIFOs with k8s.io/utils/buffer.Ring
Kubernetes-commit: 5090812df4fb6cf09a9181635d90c2e154eab8cc
2025-06-06 20:03:05 +00:00
Lukasz Szaszkiewicz
e6fed26045
client-go/metadata: rm watchlist
...
Kubernetes-commit: a38ad3a2c67290e0bc3dcda17f571ad16573714e
2025-06-06 16:15:43 +02:00
Kubernetes Publisher
7c500240b1
Merge pull request #131632 from DerekFrank/custom-lease-metadata
...
feat: Allow leases to have custom labels set when a new holder takes the lease
Kubernetes-commit: 3eebe671eaccc63062e002ddc09fa24623ac30e6
2025-06-06 00:09:29 +00:00
Jon Huhn
e3f8badef8
Update k8s.io/utils for new generic ring buffer
...
Kubernetes-commit: 8cdbbf5cdaef7e37cfd432e9044aa52f4d42adcd
2025-06-04 12:09:53 -05:00
Kubernetes Publisher
647bbbe859
Merge pull request #132039 from alvaroaleman/fix-w-unstructured
...
FieldManagedObjectTracker: Fix to work with unstructured
Kubernetes-commit: fd53f7292c7d5899135fddd928c0dc3844126820
2025-06-03 01:42:04 +00:00
Alvaro Aleman
81ecec406a
FieldManagedObjectTracker: Fix to work with unstructured
...
Prior to this patch, this fails because the skipnonappliedfieldmanager
uses the `objectcreater` (aka `*runtime.Scheme`) to create a new object
for which it never sets the GVK. In the case of
`*unstructured.Unstructured`, the GVK can not be derived from the object
itself so the operation would subsequently fail [here][0] with an
```
Object 'Kind' is missing in 'unstructured object has no kind'
```
error. Fix this by explicitly setting the GVK in case of unstructured.
[0]: 02eb7d424a/staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/structuredmerge.go (L98)
Kubernetes-commit: dbdd6a3b4358d91a064de9c0f01d3050e606d553
2025-05-30 15:30:33 -04:00
Kubernetes Publisher
e9ca982cec
Merge pull request #132004 from alvaroaleman/fix-fasf
...
ManagedFieldsObjectTracker: Reload scheme
Kubernetes-commit: c5c87bde8f0ff405f89ead5aff9f609b42e29b55
2025-05-30 01:41:51 +00:00
Kubernetes Publisher
26cda34605
Merge pull request #132022 from Jefftree/client-go-template
...
Update client-go PR template
Kubernetes-commit: fc0e3bf957808d08da103d824164b993ea763556
2025-05-30 01:41:49 +00:00
Jeffrey Ying
d90ce655d4
Update client-go template with backticks
...
Kubernetes-commit: b9496d1a9d7a2aea71603896cca40374a98f1aed
2025-05-29 16:18:47 -04:00
Jefftree
2dd7d946ba
Update client-go PR template
...
Kubernetes-commit: d70fcf731bd302eda3f58c96cdb3f3cc7bfa406f
2025-05-29 20:13:56 +00:00
Keisuke Ishigami
03728c1ebe
handle context in process loop
...
Kubernetes-commit: f67d30b3529ea970dd5fd069eaddfc7f61d74169
2025-05-29 00:34:43 +09:00
Patrick Ohly
d267bacbd5
DRA API: remove obsolete types from v1alpha3
...
The v1alpha3 version is still needed for DeviceTaintRule, but the rest of the
types and most structs became obsolete in v1.32 when we introduced v1beta1 and
bumped the storage version to v1beta1.
Removing them now simplifies adding new features because new fields don't need
to be added to these obsolete types. This could have been done already in 1.33,
but wasn't to minimize disrupting on-going work.
Kubernetes-commit: 10de6780cf6b24d5115e508606334b81d6634ba6
2025-05-28 12:03:25 +02:00
Kubernetes Publisher
e75871c731
Merge pull request #131642 from pohly/e2e-pod-exec-logging
...
client-go remotecommand: avoid "unexpected error" log when there is no error
Kubernetes-commit: 460a84a5daef3a8c0f67797aa475c9adfaf0722a
2025-05-26 13:41:58 +00:00
Kubernetes Publisher
433f2064f1
Merge pull request #131825 from yanhuan0802/fix-clean-addIndexers-comment
...
cleanup: remove error comment of AddIndexers func
Kubernetes-commit: 6407d3b76e248b7d12696d633b99775513b07bd0
2025-05-21 03:36:57 +00:00
Kubernetes Publisher
cd9e9393ec
Merge pull request #131840 from pohly/client-go-workqueue-wording
...
client-go workqueue: clarify parallel reenqueuing
Kubernetes-commit: 148761ce2c309d52722a7125dffda1d5890e9f04
2025-05-20 19:37:07 +00:00
Kubernetes Publisher
e9c99fd4fa
Merge pull request #131741 from soltysh/deprecate_preferences
...
Deprecate kubeconfig's preference field in favor of kuberc
Kubernetes-commit: c40db09a0a2bf8df02be93d7da1912cfa7cbe333
2025-05-20 08:11:18 -07:00
Patrick Ohly
8f2e17a6ba
client-go workqueue: clarify parallel reenqueuing
...
"Is allowed" does not exactly say what happens. Let's be more explicit.
Kubernetes-commit: 772d010665141cf74d4a34af6da08ea4761ce1f8
2025-05-19 08:02:43 +02:00
Maciej Szulik
5334fcaa9c
Deprecate kubeconfig's preference field in favor of kuberc
...
Signed-off-by: Maciej Szulik <soltysh@gmail.com >
Kubernetes-commit: 8cf5e8db78deb186ef362f64ab779c09e9520156
2025-05-13 13:39:13 +02:00
Kubernetes Publisher
025e06660a
Merge pull request #128419 from liggitt/etcd-3.6
...
etcd 3.6 client update
Kubernetes-commit: 09ca440a450e9103a8f835f598c09237dba6ecbb
2025-05-16 03:37:11 +00:00
Jordan Liggitt
68b411bd5b
bump etcd client to 3.6
...
hack/pin-dependency.sh go.etcd.io/etcd/api/v3 v3.6.0
hack/pin-dependency.sh go.etcd.io/etcd/client/pkg/v3 v3.6.0
hack/pin-dependency.sh go.etcd.io/etcd/client/v3 v3.6.0
hack/pin-dependency.sh go.etcd.io/etcd/pkg/v3 v3.6.0
hack/pin-dependency.sh go.etcd.io/etcd/server/v3 v3.6.0
hack/pin-dependency.sh github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.0
hack/update-vendor.sh
Kubernetes-commit: cf0bbf1171e918d5d7ba1d3c83b5f347fc8333b0
2025-05-15 21:19:11 -04:00
Kubernetes Publisher
1308d7c66b
Merge pull request #131318 from aojea/lock_servicecidr
...
Lock MultiCIDRServiceAllocator to default and DisableAllocatorDualWrite to GA
Kubernetes-commit: c96032addd81199453a815c85370d8930b2f1cd3
2025-05-13 19:19:53 +00:00
Patrick Ohly
4e28a08da3
client-go: call out WithContext inconsistency
...
This raises awareness so that developers hopefully get it right without having to
learn about it from compile errors. It also explains that creating a PR to
fix the naming is not desired.
Kubernetes-commit: f40892f4813f29fc305d59073d2464a1fd7d6fe5
2025-05-08 14:29:21 +02:00
Kubernetes Publisher
996ce6af9b
Merge pull request #131616 from jpbetz/typeconverter-cleanup
...
Reorganize scheme type converter into apimachinery utils
Kubernetes-commit: 7cb2bd78b22c4ac8d9a401920fbcf7e2b240522d
2025-05-08 03:26:44 +00:00
Joe Betz
eff66266b5
generate code
...
Kubernetes-commit: ce02da8dabaeb7c3e938224254fd42dcdc64b719
2025-05-07 10:10:48 -04:00
Joe Betz
571b9f39e0
Reorganize scheme type converter into apimachinery utils
...
This removes a dependency from generated applyconfigurations to a testing
package. To do this, the type converter in the testing package has been
moved out to the apimachinery package and the utilities the converter
depend on have been reorganized.
Kubernetes-commit: 4821604f83a6f4764497879b666087ba7cb05060
2025-05-07 10:07:55 -04:00
Patrick Ohly
804ee8c42e
client-go remotecommand: avoid "unexpected error" log when there is no error
...
Normal execution always started to trigger this after adding more logging in
the E2E framework's exec_util.go:
I0506 21:23:56.781188 6341 exec_util.go:201] unexpected error trying to use websockets for pod exec: <nil>
That the "should fall back" implementation gets called when there is no error
and thus no reason to even consider falling back is odd. Now the execute
implementation checks for nil first.
This is the same approach taken also in the portforward code:
b35c5c0a30/staging/src/k8s.io/client-go/tools/portforward/fallback_dialer.go (L52)
Kubernetes-commit: 35870c480d64a8ae35c0e5839cc40b0115b7328a
2025-05-07 14:51:18 +02:00
Kubernetes Publisher
bf3d45b702
Merge pull request #129150 from huww98/version-comment
...
remove out-of-date comments about version
Kubernetes-commit: 3dca763acc9c6898e08f762ee71d60aa0a8123ea
2025-05-06 23:20:31 +00:00
Kubernetes Publisher
2d0ad1ac54
Merge pull request #131165 from liggitt/e2e-requesturi
...
Make Request#RequestURI honor configured context root
Kubernetes-commit: d76b47cc4cd58fcb6544764ea6c1c809ab8fa265
2025-05-06 19:19:44 +00:00
Derek Frank
34f791d2b1
feat: Allow leases to have custom labels set when a new holder has the lease
...
Kubernetes-commit: 109ae1bacadfa5c8655adb4594762c77b135f446
2025-05-06 10:43:05 -07:00
Kubernetes Publisher
7aa362d5dd
Merge pull request #131595 from aojea/utils_fake_clock
...
update k8s.io/utils to bring fakeClock.Waiters()
Kubernetes-commit: e3e1f80c0110c847acf4381b1790c1c667395010
2025-05-03 03:17:54 +00:00
Antonio Ojea
568f678a04
update k8s.io/utils to bring fakeClock.Waiters()
...
Change-Id: I7e25338df225c2c27457403fbc2f158d08638f87
Kubernetes-commit: c2c003a71fc52fa79c2fff0109afad58573d0216
2025-05-02 11:21:11 +00:00
Kubernetes Publisher
a566719c94
Merge pull request #130989 from liggitt/creationTimestamp-omitzero
...
Omit null creationTimestamp
Kubernetes-commit: 01899a7c86337b05a16a4155c9351cf947beaee9
2025-05-02 23:18:52 +00:00
carlory
93aeba057d
Promoted API VolumeAttributesClass and VolumeAttributesClassList to storage.k8s.io/v1.
...
Promoted feature-gate `VolumeAttributesClass` to GA (on by default)
Signed-off-by: carlory <baofa.fan@daocloud.io >
Kubernetes-commit: 94bf8fc8a9d1d6c989eddad07996be0ca4dd3448
2025-04-30 17:35:21 +08:00
Antonio Ojea
2153502961
remove networking v1alpha1 and make update
...
Kubernetes-commit: 15ab88f88bf19b738cee0e63f1c1d83e720331a8
2025-04-30 09:18:02 +00:00
Stephen Kitt
03fb151034
Typo fix: watchActcion
...
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 3d53bfec09f1cb8dde5aed84ce1d330a34aec61c
2025-04-14 17:19:50 +02:00
Jordan Liggitt
25d4fa6ba8
Make Request#RequestURI honor configured context root
...
Kubernetes-commit: 5677f7ab0b1b1ab22a71d01e4a710bf0f5e633aa
2025-04-03 12:51:46 -04:00
Jordan Liggitt
5be379c517
Drop null creationTimestamp from test fixtures
...
Kubernetes-commit: 6bb6c9934294d8265197c9dfc4c9dd3adaca147a
2025-03-24 09:37:26 -04:00
Jordan Liggitt
61eae7552c
bump cbor to add omitzero support
...
Kubernetes-commit: bc6051717137cef288b82305588e675de4a32c0d
2025-03-25 12:27:43 -04:00
Jordan Liggitt
fcc2100a59
bump structured-merge-diff to add omitzero support
...
Kubernetes-commit: 06b0784062f68566daa8eed83c475b738dcf620c
2025-03-24 16:34:01 -04:00
Kubernetes Publisher
05e0ea6c1e
Merge pull request #131029 from liggitt/to-unstructured-stdlib
...
Make ToUnstructured match stdlib omitempty and anonymous behavior
Kubernetes-commit: ef239ae62b86ee03b8b5e7a01d7c4cf4dcdd4a92
2025-05-02 15:18:34 +00:00
Jordan Liggitt
ebd18c5e7c
Make ToUnstructured match stdlib omitempty and anonymous behavior
...
Kubernetes-commit: 09912f3521932db99fe19f993db240fd43f3240e
2025-03-24 11:52:44 -04:00
Kubernetes Publisher
17ad09eb27
Merge pull request #131321 from karlkfi/karl-very-fast-watch
...
chore: Add VeryShortWatchError typed error
Kubernetes-commit: 07bcf936786b0e0a1d47b307aededb526ba4fca5
2025-04-24 23:17:38 +00:00
Karl Isenberg
921628ecd6
chore: Add VeryShortWatchError typed error
...
- Add a new VeryShortWatchError struct for error matching, returned
by `handleAnyWatch`, up through `Reflector.ListAndWatch`.
- Update test expectations to match exact errors.
Kubernetes-commit: 6eff9db0f10db72f2c64390e106a80621d136439
2025-04-15 11:48:57 -07:00
Kubernetes Publisher
1601be3d14
Merge pull request #131266 from karlkfi/karl-reflector-refactor
...
fix: Watcher deadlock from Stop not being called
Kubernetes-commit: d6d6aad0d89abea236996b12d0545642f96684fb
2025-04-24 03:22:41 +00:00
Kubernetes Publisher
45e758d19c
Merge pull request #131242 from zhifei92/update-mockery-version
...
Upgrade the mockery version to v2.53.3
Kubernetes-commit: 077a38217092f2ed72330e3232fdf6a16c1d97d8
2025-04-24 03:22:39 +00:00
Kubernetes Publisher
82c2b6c716
Merge pull request #131143 from liggitt/cache-test-goroutine-leak
...
Clean up leaked goroutines in cache unit tests
Kubernetes-commit: f7715e9b9d29ea93f9e95ba3a1d085d5daf7e230
2025-04-24 03:22:38 +00:00
Kubernetes Publisher
d01bdb17a5
Merge pull request #131111 from novahe/certificate_store
...
Certificate store: ensure data is written to disk
Kubernetes-commit: cd7195976f2621bd7a193de6d22ee49deead6a65
2025-04-23 23:25:14 +00:00
Kubernetes Publisher
451ac0fcb5
Merge pull request #130995 from xigang/utils
...
bump k8s.io/utils for improvements
Kubernetes-commit: 43a7d3be12425cc80ca6ad3599809a19728c5566
2025-04-23 23:25:13 +00:00
Karl Isenberg
e9ce1dd558
fix: Watcher deadlock from Stop not being called
...
Change:
- refactor Reflector.ListAndWatch and Reflector.watch to always call
watcher.Stop.
- refactor Reflector.handleAnyWatch to always call watcher.Stop,
EXCEPT when exitOnWatchListBookmarkReceived &&
watchListBookmarkReceived.
- Update unit tests with these new expectations.
Effect:
- ensures watcher.Stop is always called at least once
- avoids deadlocks in watcher implementations when watcher.Watch is
called, but watcher.Stop is never called.
Note: It's impossible to guarantee that Stop will only be called once.
So watch.Interface implementations must tollerate Stop being called
multiple times.
Kubernetes-commit: 3e609ecf6e945bf4562bddfc563fde9a4c3d0d90
2025-04-11 14:30:29 -07:00
zhangzhifei16
335b05fae2
chore: Upgrade the mockery version to v2.53.3.
...
Kubernetes-commit: c1ff9cf4e8113ce17215ac71b3bc7ef419626b64
2025-04-10 21:16:47 +08:00
Jordan Liggitt
a3cad0dc91
Clean up leaked goroutines in cache unit tests
...
Kubernetes-commit: 6747bf7a9cb3009aae4cba1e1d249d56a66a981b
2025-04-01 13:59:32 -04:00
Kubernetes Publisher
18a1faa115
Merge pull request #131103 from ahrtr/etcd_sdk_20250328
...
Bump etcd 3.5.21 sdk
Kubernetes-commit: f4d1686120d2367dd4c00df53e93dad51c414435
2025-04-01 10:32:47 +00:00
novahe
3262fdedea
Certificate store: ensure data is written to disk
...
Kubernetes-commit: 653f48d8867d0b8487e3f824b3680ddc7d85758f
2025-03-30 10:46:59 +08:00
Benjamin Wang
983fe07d27
bump etcd 3.5.21 sdk
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
Kubernetes-commit: f3b80a858225178e3f7a3ae07bd1b9894e7b3456
2025-03-28 14:30:47 +00:00
Kubernetes Publisher
2086688a72
Merge pull request #129970 from mortent/AddResourceV1beta2API
...
Add resource v1beta2 API
Kubernetes-commit: 070f0ad3bdfc17da90defdb45bb644aaf07dd43e
2025-03-26 18:25:06 +00:00
Morten Torkildsen
dba34c781e
Run make update
...
Kubernetes-commit: e761be47a45b97574499069ea198d879e7050e51
2025-03-26 14:52:36 +00:00
Kubernetes Publisher
e359642e7c
Merge pull request #130556 from sreeram-venkitesh/kep-4960-container-stop-signals
...
KEP 4960: Container Stop Signals
Kubernetes-commit: ff25881bc1fe9da1dda4ec82d294b92078ae2763
2025-03-25 02:24:14 +00:00
Kubernetes Publisher
3bf0a05288
Merge pull request #130797 from jm-franc/configurable-tolerance
...
Add support for HPA configurable tolerance
Kubernetes-commit: 34e80be1330556848521314ece92e9277efb26d4
2025-03-24 22:24:53 +00:00
Sreeram
7a03a3b92e
Generated files
...
Kubernetes-commit: d6d9a354d7df9ad331ffe7e6212767cf8f90016c
2025-03-25 02:06:29 +05:30
xigang
55aca3c6c1
bump k8s.io/utils
...
Kubernetes-commit: fe14689f221a968806b771b226581efb834654cd
2025-03-22 10:14:01 +08:00
Jean-Marc François
1676beb32a
Refresh autogenerated files following the configurable tolerance updates.
...
Kubernetes-commit: ac107137ce85166464465ea3954092752ca88326
2025-03-21 17:41:50 -04:00
Kubernetes Publisher
387edb880f
Merge pull request #130967 from aojea/listers
...
benchmarks inefficiency on listers linear search lookup
Kubernetes-commit: 47a61c5c98822989d955e00d42f895234c1a1cb1
2025-03-21 10:24:27 +00:00
Antonio Ojea
21dc3b4441
benchmark to show inefficient linear search lookup
...
goos: linux
goarch: amd64
pkg: k8s.io/client-go/tools/cache
cpu: Intel(R) Xeon(R) CPU @ 2.60GHz
BenchmarkLister_Match_1k_100
BenchmarkLister_Match_1k_100-48 41910 28255 ns/op 16384 B/op 1 allocs/op
BenchmarkLister_Match_10k_100
BenchmarkLister_Match_10k_100-48 3487 337728 ns/op 163848 B/op 1 allocs/op
BenchmarkLister_Match_100k_100
BenchmarkLister_Match_100k_100-48 222 7040793 ns/op 1605659 B/op 1 allocs/op
BenchmarkLister_Match_1M_100
BenchmarkLister_Match_1M_100-48 12 97962328 ns/op 16007172 B/op 1 allocs/op
PASS
ok k8s.io/client-go/tools/cache 10.480s
Kubernetes-commit: 33fbce73ae203ffeb1b9ea63ac43d567d1bdb1ad
2025-03-21 06:09:23 +00:00
Kubernetes Publisher
a27e26debd
Merge pull request #129872 from seans3/websocket-https-proxy
...
WebSocket HTTPS Proxy support
Kubernetes-commit: 6f13ba03dac1865174b4edf2b43f6a0f453a8ac7
2025-03-21 03:54:09 +00:00
Kubernetes Publisher
e782ad64ac
Merge pull request #130764 from cici37/partitionableDevice
...
[KEP-4815]DRA Partitionable device
Kubernetes-commit: d8607b91a78d01d5e0903e69765feb66651af2cf
2025-03-20 05:34:18 +00:00
Cici Huang
379ed45313
Auto gen
...
Kubernetes-commit: ea2f8881093b01f27807ee4fa4e6ca2b88a7bc71
2025-03-18 07:16:21 +00:00
Kubernetes Publisher
b0ed7301c5
Merge pull request #130844 from danwinship/improved-traffic-distribution
...
KEP-3015 PreferSameZone/PreferSameNode traffic distribution
Kubernetes-commit: 68ba091fca6927534e187d8b2595882352497f2f
2025-03-19 21:34:23 +00:00
Kubernetes Publisher
a9cdb028d1
Merge pull request #130447 from pohly/dra-device-taints
...
device taints and tolerations (KEP 5055)
Kubernetes-commit: ab3cec07014e58ef49050f953fb8426efbc85192
2025-03-19 21:34:21 +00:00
Kubernetes Publisher
169f1af1bf
Merge pull request #130906 from serathius/streaming-validation
...
Update kube-openapi and integrate streaming tags validation
Kubernetes-commit: 32b1819423de505da855cf7544e871a04e63d6ed
2025-03-19 05:34:12 +00:00
Kubernetes Publisher
ac9f6ffb9a
Merge pull request #130901 from deads2k/perms
...
add API approvers to generated applyconfigurations
Kubernetes-commit: 0f7ab496c1a1302118887f76f440694da1fe3380
2025-03-18 21:34:17 +00:00
Eddie Torres
7ed5fa7538
Implement KEP 4876 Mutable CSINode ( #130007 )
...
* Implement KEP-4876 Mutable CSINode Allocatable Count
Signed-off-by: torredil <torredil@amazon.com >
* Update TestGetNodeAllocatableUpdatePeriod
Signed-off-by: torredil <torredil@amazon.com >
* Implement CSINodeUpdater
Signed-off-by: torredil <torredil@amazon.com >
* Use sync.Once in csiNodeUpdater
Signed-off-by: torredil <torredil@amazon.com >
* ImVerify driver is installed before running periodic updates
Signed-off-by: torredil <torredil@amazon.com >
* Update NodeAllocatableUpdatePeriodSeconds type comment
Signed-off-by: torredil <torredil@amazon.com >
* Leverage apivalidation.ValidateImmutableField in ValidateCSINodeUpdate
Signed-off-by: torredil <torredil@amazon.com >
* Update strategy functions
Signed-off-by: torredil <torredil@amazon.com >
* Run hack/update-openapi-spec.sh
Signed-off-by: torredil <torredil@amazon.com >
* Update VolumeError.ErrorCode field
Signed-off-by: torredil <torredil@amazon.com >
* CSINodeUpdater improvements
Signed-off-by: torredil <torredil@amazon.com >
* Iron out concurrency in syncDriverUpdater
Signed-off-by: torredil <torredil@amazon.com >
* Run hack/update-openapi-spec.sh
Signed-off-by: torredil <torredil@amazon.com >
* Revise logging
Signed-off-by: torredil <torredil@amazon.com >
* Revise log in VerifyExhaustedResource
Signed-off-by: torredil <torredil@amazon.com >
* Update API validation
Signed-off-by: torredil <torredil@amazon.com >
* Add more code coverage
Signed-off-by: torredil <torredil@amazon.com >
* Fix pull-kubernetes-linter-hints
Signed-off-by: torredil <torredil@amazon.com >
* Update API types documentation
Signed-off-by: torredil <torredil@amazon.com >
* Update strategy and validation for new errorCode field
Signed-off-by: torredil <torredil@amazon.com >
* Update validation tests after strategy changes
Signed-off-by: torredil <torredil@amazon.com >
* Update VA status strategy
Signed-off-by: torredil <torredil@amazon.com >
---------
Signed-off-by: torredil <torredil@amazon.com >
Kubernetes-commit: c766a52356a277da5e9f29f77aab5212f1b083c6
2025-03-18 21:34:16 +00:00
Marek Siarkowicz
9475320ce4
Update kube-openapi and integrate streaming tags validation
...
Kubernetes-commit: 75a4d136abac241f728407515e3d0d8305594675
2025-03-18 21:26:22 +01:00
David Eads
c8ae9cfa75
add API approvers to generated applyconfigurations
...
API approvers review new fields and need permissions to approve the
files generated from those new fields
Kubernetes-commit: 691398c8563f12db07505df7c05211e93145689a
2025-03-18 13:29:10 -04:00
Kubernetes Publisher
c5b5caed20
Merge pull request #129954 from iholder101/swap/capacity-on-node-sys-info
...
[KEP-2400] Report swap capacity as part of node.status.nodeSystemInfo
Kubernetes-commit: 2499a2c0a0f61f259156925cdd25dfb65df334f1
2025-03-18 05:34:27 +00:00
Kubernetes Publisher
b4e9c91225
Merge pull request #130721 from yanhuan0802/fix-informer-typo
...
fix: shared informer typos
Kubernetes-commit: 859eb4cd789754b09fdef853eb2affb59a546eb5
2025-03-17 17:35:45 +00:00
Kubernetes Publisher
97feb5b4e1
Merge pull request #130347 from Jefftree/remove-v2beta1-agg-discovery
...
Add a deprecated feature gate to stop serving apidiscovery.k8s.io/v2beta1
Kubernetes-commit: 8906223b000d94ad3947c1582c5ba452c6766e6c
2025-03-17 17:35:44 +00:00
Huan Yan
115024100c
cleanup: remove error comment of AddIndexers func
...
Kubernetes-commit: a271d3e5339fa60b661b316a0e2f378f3afc51af
2025-03-16 23:39:33 +08:00
Jefftree
8ddf4401e5
Gate apidiscovery/v2beta1 serving with a feature gate
...
Kubernetes-commit: 95d3d4a22d705ef6bf2d494c065743d356914e8d
2025-03-13 17:58:06 +00:00
Kubernetes Publisher
595b7ca245
Merge pull request #130725 from jpbetz/replication-controller-minimums-to-declarative
...
Migrate to declarative validation: ReplicationController spec.replicas and spec.minReadySeconds fields
Kubernetes-commit: 6ef1a1f98e90ea541eedb45274886fc3d255ea1d
2025-03-14 17:34:25 +00:00
Kubernetes Publisher
5f676853f1
Merge pull request #129345 from pohly/log-client-go-workqueue
...
client-go workqueue: add optional logger
Kubernetes-commit: 9fd0e20bc2526483fdb1328305fc12ac638085dc
2025-03-14 17:34:22 +00:00
Kubernetes Publisher
7faeb317c7
Merge pull request #130751 from Jefftree/cle-promote-beta
...
[KEP-4355] Promote Coordinated Leader Election to Beta
Kubernetes-commit: be127ae0e27644edead7007834b5c8437fb6eb0b
2025-03-13 21:35:13 +00:00
Kubernetes Publisher
8489267318
Merge pull request #130693 from novahe/fix/test-cases
...
Fix test cases that may potentially cause a panic.
Kubernetes-commit: 336a32a270997731873b6d8b616f4ae91d903fcf
2025-03-13 13:33:51 +00:00
Kubernetes Publisher
8ee5c997b3
Merge pull request #130748 from jpbetz/revert-125102
...
Revert PR 125102: Add unit tests to client-go/tools/cache/listers.go
Kubernetes-commit: fb98a599a6811ee0b673883a0f471ec7b9e28083
2025-03-12 17:34:06 +00:00
Jefftree
0a56d352bc
generated
...
Kubernetes-commit: a7505f026215954809d57b9e6c0a3abdddf00e16
2025-03-12 16:59:43 +00:00
Joe Betz
bcd36428c5
Revert PR 125102: Add unit tests to client-go/tools/cache/listers.go
...
Kubernetes-commit: 37ddc637f55af547862ac41452ade42ed15b778b
2025-03-12 11:43:15 -04:00
Kubernetes Publisher
92865bf125
Merge pull request #125102 from 0xMALVEE/unit-tests-listers.go
...
Add unit tests to client-go/tools/cache/listers.go
Kubernetes-commit: 0b00454617397cea2e9e6ed75b232a4e1e9cfb6d
2025-03-12 09:33:53 +00:00
Kubernetes Publisher
65ca8d80f5
Merge pull request #128499 from stlaz/ctb_betav1
...
ClusterTrustBundles - move to beta
Kubernetes-commit: 309c4c17fb1dec52328f3e6b4482bc2a4037c45a
2025-03-11 21:35:03 +00:00
Huan Yan
4ba25ca711
fix: shared informer typos
...
Kubernetes-commit: b38bfaa2ac99deb28eb8c70fcd9466492b292a01
2025-03-11 20:00:16 +08:00
novahe
5c7f206b25
Fix test cases that may potentially cause a panic.
...
Kubernetes-commit: 9e53371ddaaeab4083fde45e43c803071238e686
2025-03-11 17:41:37 +08:00
Patrick Ohly
71c858c5f4
DRA: generated files for device taints API
...
Kubernetes-commit: 99dbd85c45f77a4fd719ff9271128e8a4ed46082
2025-03-07 14:59:08 +01:00
Alvaro Aleman
a539a79dea
ManagedFieldsObjectTracker: Reload scheme
...
In controller-runtime it is generally not expected to do any sort of
scheme registration if unstructured.Unstructured is used. To make this
work in the fakeclient, the fakeclient will register unstructured to
scheme if the scheme doesn't recognize the GVK.
This currently doesn't work with the `ManagedFieldsObjectTracker` as it
never reloads the scheme. This change makes it reload the scheme in an
inefficient but simple manner, which should be good enough for unit
tests.
Kubernetes-commit: 1cd71cbb14ecfd0ec6c5e8a57db6be00ecb8a4d1
2025-03-02 12:43:08 -05:00
Jefftree
dbe73bc712
Add LeaseCandidate v1beta1
...
Kubernetes-commit: 5ba4a90fdad6bf9cdfa69e166aff9786efc9430c
2025-02-19 21:43:35 +00:00
Dan Winship
789d60d280
update generate docs for PreferSameTrafficDistribution
...
Kubernetes-commit: af3584778e0075fed6090a1207794cbdbc71f2cb
2025-02-11 10:06:25 -05:00
Itamar Holder
9a7d64c561
add auto-generated files: ./hack/update-codegen.sh
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
Kubernetes-commit: 4bdaf6cbbde9d7bda89ff734691fc3195a1ecbd5
2025-02-04 14:03:52 +02:00
Sean Sullivan
c77f9e4f9e
Websocket HTTPS proxy support
...
Kubernetes-commit: f73945aae56b51078318199ff2f0ecae91bc489e
2025-01-29 03:56:55 +00:00
Stanislav Láznička
2241515bf6
generate code
...
Kubernetes-commit: ccd2d4d62ad7be67a85fb5e28d0359d2e388cf27
2025-01-14 14:18:57 +01:00
Kubernetes Publisher
a50f4a61f1
Merge pull request #130555 from thockin/k_k_randfill
...
Use randfill in k/k
Kubernetes-commit: 0f2bde7745f3b4eadcf317bc5056dfeb96859bd3
2025-03-09 13:35:02 +00:00
Tim Hockin
1459662525
Vendor randfill
...
Kubernetes-commit: 0ce4268b1fe4f78d77249e329b0349b9d2dd2c65
2025-03-03 23:46:48 -08:00
Tim Hockin
4a6072d89f
Use randfill, do API renames
...
Kubernetes-commit: e54719bb6674fac228671e0786d19c2cf27b08a3
2025-02-20 09:45:22 -08:00
Kubernetes Publisher
b3c8744140
Merge pull request #130569 from dims/update-to-latest-cadvisor-v0.52.0
...
Update to latest cadvisor @ v0.52.1 and new opencontainer/cgroups and drops opencontainers/runc
Kubernetes-commit: 0eaee48ecb8669dc65bfdf9a3583326ab88fc39d
2025-03-08 01:33:34 +00:00
Kubernetes Publisher
d42a6bba80
Merge pull request #130352 from natasha41575/kubelet-pod-observedgen
...
[FG:PodObservedGenerationTracking] Kubelet sets pod `status.observedGeneration` when updating the pod status
Kubernetes-commit: 2effa5e3cf92af7dbcff87822b3293354823f567
2025-03-08 01:33:32 +00:00
Davanum Srinivas
dd81c64258
update to v1.22.0-rc.0
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 97a54dc4b04b7d2938d11c5ae9a6233348e854ef
2025-03-07 13:45:34 -05:00
Kubernetes Publisher
0445543f66
Merge pull request #130635 from zimnx/fix-websocket-read-error
...
Return correct error upon websocket message read failure
Kubernetes-commit: 0e2a2afc4c7687e71f2dddbb7edfd03f082c6876
2025-03-07 17:33:39 +00:00
Kubernetes Publisher
d5f336d4f5
Merge pull request #130489 from p0lyn0mial/upstream-fake-client-pass-opts
...
client-gen/fake: pass ListOptions to Watch method
Kubernetes-commit: ea49618a749b84c3cb5bd781380891eb51289950
2025-03-07 17:33:38 +00:00
Kubernetes Publisher
a48b937483
Merge pull request #130470 from p0lyn0mial/upstream-fake-client-opts-watch
...
client-go/gentype/fake: sets opts.Watch true
Kubernetes-commit: 4468565250c940bbf70c2bad07f2aad387454be1
2025-03-07 13:33:41 +00:00
Maciej Zimnoch
c1ee4cc22c
Return correct error upon websocket message read failure
...
This fixes variable passed as error reason upon websocker message read failure.
Previously a wrong variable was passed resulting in returning failure with nil error reason.
Kubernetes-commit: e1d3aaf8612c490fae965272a304d74fccf7e294
2025-03-07 12:53:47 +01:00
Kubernetes Publisher
ca10b28dd3
Merge pull request #128586 from mortent/DRAPrioritizedList
...
Prioritized Alternatives in Device Requests
Kubernetes-commit: 9d45ea8b9d0be4f2f90159ff272851b8e985c904
2025-03-07 05:34:09 +00:00
Davanum Srinivas
9cfcaac397
update to latest cadvisor @ v0.52.0
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 5ecddb65715af7e2afc4f3cbb1abe393bfb4346a
2025-03-04 14:29:08 -05:00
Kubernetes Publisher
ec8a292223
Merge pull request #130515 from Jefftree/revert-cle-beta-types
...
Revert "LeaseCandidate v1beta1 API"
Kubernetes-commit: 78c41fbcc9a1bad39021f22fbda516bfd04dbaeb
2025-03-02 00:06:36 +00:00
Kubernetes Publisher
05e64ee1f6
Merge pull request #128919 from dashpole/update_otel
...
Update go.opentelemetry.io dependencies to v1.33.0/v0.58.0
Kubernetes-commit: eea2f78e61fe91bb8fcd3c4a357ea3a10d1389db
2025-03-02 00:06:34 +00:00
David Ashpole
030621a307
update go.opentelemetry.io dependencies to v1.33.0/v0.58.0
...
Kubernetes-commit: 29c219dcebe30be99d6917623f8d8707a47194c1
2025-03-01 19:17:16 +00:00
Jefftree
41d7de3d5a
Revert "LeaseCandidate alpha -> beta,"
...
This reverts commit ac7a95efb092944ad9be0ceecb94a868342af1f1.
Kubernetes-commit: 1a1b566d61f7dd6f7b4b577369a6c3b471c9d239
2025-03-01 14:14:19 +00:00
Jefftree
29076dbc0b
Revert "generated"
...
This reverts commit 2d10dec3a297e6be29f47c68722c1ef5ea727fbf.
Kubernetes-commit: 71622aee49d05fe1aa3c7b0b8a18028c5ebb1459
2025-03-01 14:10:35 +00:00
Kubernetes Publisher
cb16ee3635
Merge pull request #130474 from dims/bump-x/crypto-and-x/oauth2
...
Bump x/oauth2 and x/crypto
Kubernetes-commit: 01ed8ed4ff0a0cbea99370c7a268019829d19e82
2025-02-28 20:07:28 +00:00
Kubernetes Publisher
ebce4d7b9d
Merge pull request #130291 from Jefftree/cle-beta
...
LeaseCandidate v1beta1 API
Kubernetes-commit: ef1c659569409471b4bdfeb83ba69cb1772ed37d
2025-02-28 20:07:26 +00:00
Morten Torkildsen
2143ace7a7
Run make update
...
Kubernetes-commit: 68040a31736cc9f33763e87fc4ebea27cf447743
2025-02-28 19:28:26 +00:00
Kubernetes Publisher
8247f1e51f
Merge pull request #129338 from pohly/log-client-go-certificates
...
client-go certificate: context-aware APIs and logging
Kubernetes-commit: c92dde6941356e499308b7caf8aa84a7c1f74667
2025-02-28 16:07:32 +00:00
Lukasz Szaszkiewicz
7b0f098f60
./hack/update-codegen.sh
...
Kubernetes-commit: 325a54f73dcdc5fc7a7d47bd78791abcba93456a
2025-02-28 09:43:58 +01:00
Kubernetes Publisher
b46275ad75
Merge pull request #129688 from cpanato/update-main-go124
...
[go] Bump images, dependencies and versions to go 1.24.0
Kubernetes-commit: b8c95e1954ef222988c0dfe5b45d5cc96c09bcb8
2025-02-27 20:07:27 +00:00
Davanum Srinivas
9dffd3c20f
Bump x/oauth2 and x/crypto
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 0fede7b8a2fb4c7f120876c9ef1e826f8ef28da2
2025-02-27 10:59:37 -05:00
Lukasz Szaszkiewicz
2790aee4eb
client-go/gentype/fake: sets opts.Watch true
...
Kubernetes-commit: f73f6fd2ab59c14a7379bc3086f7cc26cf9f8b4a
2025-02-27 12:11:47 +01:00
Natasha Sarkar
3c80fbbe56
run 'make update'
...
Kubernetes-commit: 6edd92174692822ca7b2549adbfe7286a8ee7b66
2025-02-25 20:46:33 +00:00
cpanato
a126675a40
bump go.mod to set min go1.24
...
Signed-off-by: cpanato <ctadeu@gmail.com >
Kubernetes-commit: 88300c406b9199ed017e1bada29951fc18e66ae1
2025-02-25 13:21:52 +01:00
Kubernetes Publisher
8dd5edb393
Merge pull request #130359 from my-git9/assertion1
...
fix wrong assertion on tests
Kubernetes-commit: 06d81cfc7a485487375814fd8d5cefdf644c2d28
2025-02-24 15:55:11 +00:00
Kubernetes Publisher
8fa90a0728
Merge pull request #130187 from mansikulkarni96/129084
...
fix: Sweep and fix stat, lstat, evalsymlink usage for go1.23 on Windows
Kubernetes-commit: ef54ac803b712137871c1a1f8d635d50e69ffa6c
2025-02-22 23:50:35 +00:00
xin.li
d8b34c3ab2
fix wrong assertion on tests
...
Signed-off-by: xin.li <xin.li@daocloud.io >
Kubernetes-commit: bc4ae15d77beab23f321bf6547f82c04ba27c3fa
2025-02-22 12:39:01 +08:00
Jefftree
50aba71374
generated
...
Kubernetes-commit: 2d10dec3a297e6be29f47c68722c1ef5ea727fbf
2025-02-19 21:51:25 +00:00
Jefftree
e6e6fcf176
LeaseCandidate alpha -> beta,
...
Kubernetes-commit: ac7a95efb092944ad9be0ceecb94a868342af1f1
2025-02-19 21:50:31 +00:00
Jordan Liggitt
c92258a929
Drop winsymlink go 1.23 workaround
...
(cherry picked from commit 3990b6324d0427eaf9ff970da2be02711567ef5f)
Kubernetes-commit: 1f642c79c3192994e76bbe8e7360fd661cd21ab4
2025-02-06 12:45:52 -05:00
Kubernetes Publisher
9c375bc53d
Merge pull request #129790 from aojea/event_name
...
events: ensure the name is valid
Kubernetes-commit: 052d7a5310b0bab58f81519253e08f456f39e8f3
2025-02-20 19:50:35 +00:00
Antonio Ojea
023460f5a8
events: ensure the name is valid
...
The event Object is created from the referenced Object name, however,
there is no guarantee that the name from the referenced Object will be a
valid Event Name.
For those Objects with name not valid for an Event, generate a new valid
name using an UUID.
Kubernetes-commit: ee36b817df06f84ce1a48ef4d65ed559c3775404
2025-02-20 09:13:56 +00:00
Kubernetes Publisher
d067ae26c7
Merge pull request #130269 from tmmorin/fix-optimitically-typo
...
fix typo: optimitically -> optimistically
Kubernetes-commit: c2b8721c3b11306b70f3448053ddcad1b2075834
2025-02-19 23:50:54 +00:00
Kubernetes Publisher
84ec13492b
Merge pull request #130047 from HirazawaUi/modify-loopback-cert-valid-period
...
Extending loopback certificate validity in kube-apiserver
Kubernetes-commit: 77667834b072db7e26a69d78c5e9f3181e12959f
2025-02-19 16:00:48 +00:00
Thomas Morin
89a3804453
fix typo: optimitically -> optimistically
...
Signed-off-by: Thomas Morin <thomas.morin@orange.com >
Kubernetes-commit: 293a6c5c91619a86b70e9d23e26412a1095db569
2025-02-19 13:37:51 +01:00
Kubernetes Publisher
72c2d4d415
Merge pull request #130249 from seans3/bump-websockets-version
...
Update gorilla/websockets library from 1.5.0 to latest 1.5.3
Kubernetes-commit: 728dc0d8c7a4d68157b2106330b65abcd5faac87
2025-02-19 03:51:21 +00:00
Sean Sullivan
7392886a8b
Update gorilla/websockets library from 1.5.0 to latest 1.5.3
...
Kubernetes-commit: 3100bbab2f7f013b08910f28d8a3debc28a57ea9
2025-02-19 00:26:21 +00:00
Kubernetes Publisher
90ccd59ab1
Merge pull request #130105 from seans3/websocket-logging-level
...
Update websocket logging levels for better debuggability
Kubernetes-commit: 4e7e14203db8cde906604b057b1b2a8a15e8a50d
2025-02-15 19:50:49 +00:00
Kubernetes Publisher
bf05f9c594
Merge pull request #130039 from p0lyn0mial/upstream-fake-client-improve-unit-test
...
fake/clientset: improve TestNewSimpleClientset
Kubernetes-commit: d7db75ce91f74dc560115c9f485032701e913c84
2025-02-12 23:51:42 +00:00
Sean Sullivan
3ead27a3a2
Update websocket logging levels for better debuggability
...
Kubernetes-commit: d3feb5080c18fa73aa87c81a78d5cac82c6ed06d
2025-02-11 20:20:23 +00:00
Kubernetes Publisher
8683d2da3b
Merge pull request #130049 from aojea/avoid_ginkgo_dep
...
reduce dependencies in apimachinery net testing utils
Kubernetes-commit: 670b98bf9229bb1f193571949871f794f7b11ec3
2025-02-11 11:52:16 +00:00
Antonio Ojea
fb7de29368
reduce dependencies in apimachinery net testing utils
...
Consumers of the kubernetes golang API and clients must use
k8s.io/api,apimachinery,client-go. This is also require to download all
the necessary dependencies.
The apimachinery code contains a testing util for proxies that is used
in client-go and in the kubectl e2e. Since the tests on e2e require
ginkgo and we want to ensure this testing library is not used in
production, we cast the interface to match one of those libraries, but
the problem is that this forces consumers of apimachinery to also
download the ginkgo library.
Since NewHTTPProxyHandler receives a testing.TB interface, there is no
need to cast the interface, if someone wants to use it by implementing a
testing interface it is already aware of the risks.
Kubernetes-commit: af3b9e613d3b76b826369153760a069aabb4cf7f
2025-02-08 15:27:20 +00:00
HirazawaUi
5c249861a4
adjusting loopback certificate validity in kube-apiserver
...
Kubernetes-commit: 553e9bf84d199be3d6a3da6675671859723219f4
2025-02-08 19:43:48 +08:00
Lukasz Szaszkiewicz
2b1c073f58
fake/clientset: improve TestNewSimpleClientset
...
Kubernetes-commit: d195ea8756d7a0babae1e052d17ad891cd3312d2
2025-02-07 14:39:15 +01:00
Kubernetes Publisher
07d61b66a6
Merge pull request #129341 from pohly/log-client-go-watch
...
client-go watch: context support
Kubernetes-commit: a02fe24385a36f43e96844e19c438cc4097704ef
2025-02-07 12:55:24 +00:00
Patrick Ohly
57bc261e52
client-go watch: NewIndexerInformerWatcherWithContext -> WithLogger
...
The ability to automatically stop on context cancellation was new functionality
that adds complexity and wasn't really used in Kubernetes. If someone wants
this, they can add it outside of the function.
A *WithLogger variant avoids the complexity and is consistent with
NewStreamWatcherWithLogger over in apimachinery.
Kubernetes-commit: 1a8d8c9b4a33daf9330434e1ad544ef3571722a3
2025-01-31 10:18:04 +01:00
Kubernetes Publisher
362c5e8de9
Merge pull request #129568 from deads2k/tighten-fifo-interface
...
create RealFIFO implementation
Kubernetes-commit: a8ef3639f9db66d8c894a880fd35a9cd011b2cb9
2025-01-30 00:24:47 +00:00
Kubernetes Publisher
f2030849e1
Merge pull request #129330 from pohly/log-client-go-transport
...
client-go/transport: structured, contextual logging
Kubernetes-commit: e07aeb7c8b52a486518f2f55ea58595ae007f3b0
2025-01-27 20:23:51 +00:00
Kubernetes Publisher
ce24f3c462
Merge pull request #129815 from dims/linter-to-ensure-go-cmp/cmp-is-used-only-in-tests
...
Linter to ensure go-cmp/cmp is used ONLY in tests
Kubernetes-commit: d36322f8d76c8e2a456e381bcc6bb43e4bbe602c
2025-01-26 00:23:39 +00:00
Davanum Srinivas
de67e026ad
Linter to ensure go-cmp/cmp is used ONLY in tests
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 4e05bc20db99ff89b2d2205218d24b9935a7fdd7
2025-01-24 17:03:29 -05:00
Kubernetes Publisher
97f3d2697c
Merge pull request #128546 from atiratree/pod-replacement-policy-terminating-pods
...
add PodReplacementPolicy for Deployments: terminating pods
Kubernetes-commit: 5aeea45357176e7224f908329fb7958d88a7eeac
2025-01-24 04:23:58 +00:00
David Eads
f2d9cfb8c8
switch to using the real FIFO
...
Kubernetes-commit: a9aab298b4738f4ea9111131cdf193a3b1ba14e5
2025-01-10 16:23:23 -05:00
David Eads
43bf1a1b0a
make a real FIFO implementation
...
Kubernetes-commit: 24b43ea96ec60ca2c574ccc6b51c989488ca3210
2025-01-10 16:23:07 -05:00
David Eads
52af3bdc0f
Remove cache.ErrRequeue
...
cache.ErrRequeue advertised itself as a way to requeue failures on a
FIFO, but it suffers the same problems as AddIfNotPresent. If we do
requeue an item at the end, we'll move the informer back in time. If we
requeue at the beginning we'll simply wedge FIFO.
We didn't find examples in the wild, but by removing the error type
those impacted will get a compile error and get to decide what action is
most appropriate for their failure. Most of the time, proceeding to the
next item is best.
Kubernetes-commit: 238c32a1d9b2c72d648193fa8642a53a2884975f
2025-01-20 13:59:43 -05:00
David Eads
d853ccf18c
Remove Queue.AddIfNotPresent
...
Logically a cache.Queue.AddIfNotPresent means that the informer can move
back in time since an older item is placed after newer items. The
alternative of placing errors at the head of the queue leads to
indefinite memory growth and repeated failures on retry.
Luckily this behavior was behind RetryOnError, which was always set to
false and impossible for normal users to set to true. By removing the
function and setting, impacted users (none found in a github search)
will get a compile failure.
Kubernetes-commit: 8e77ac000131019d5aa49c19aa1f477f6dac4d59
2025-01-20 13:54:32 -05:00
David Eads
f29637f7f2
shrink the cache.Queue interface to what is actually used
...
Kubernetes-commit: 0ddab1694579d523e3865c75ca44d6cdf1b0ef93
2025-01-08 15:31:47 -05:00
Tim Hockin
d6ee3825de
Add declarative default for RC.Spec.MinReadySeconds
...
Kubernetes-commit: 1e336160681f129cb34d6fabfa23cdac50cc107b
2024-12-22 22:59:32 -08:00
Tim Hockin
5adc342f3d
Add declarative default for RC.Spec.Replicas
...
Remove manual default:
```
$ git diff
diff --git a/pkg/apis/core/v1/defaults.go b/pkg/apis/core/v1/defaults.go
index e66de8bb432..1dd28dd35fb 100644
--- a/pkg/apis/core/v1/defaults.go
+++ b/pkg/apis/core/v1/defaults.go
@@ -60,10 +60,6 @@ func SetDefaults_ReplicationController(obj *v1.ReplicationController) {
obj.Labels = labels
}
}
- if obj.Spec.Replicas == nil {
- obj.Spec.Replicas = new(int32)
- *obj.Spec.Replicas = 1
- }
}
func SetDefaults_Volume(obj *v1.Volume) {
if ptr.AllPtrFieldsNil(&obj.VolumeSource) {
```
The test fails:
```
$ go test ./pkg/apis/core/v1 | grep -v gate | grep -v SetEmulationVersion
--- FAIL: TestSetDefaultReplicationControllerReplicas (0.00s)
defaults_test.go:1608: expected: 1 replicas, got: 0
FAIL
FAIL k8s.io/kubernetes/pkg/apis/core/v1 0.269s
FAIL
```
Declare the default, update codegen and re-run the test:
```
$ git diff
diff --git a/staging/src/k8s.io/api/core/v1/types.go b/staging/src/k8s.io/api/core/v1/types.go
index 406ab56a002..7e5136fe9f6 100644
--- a/staging/src/k8s.io/api/core/v1/types.go
+++ b/staging/src/k8s.io/api/core/v1/types.go
@@ -5101,6 +5101,7 @@ type ReplicationControllerSpec struct {
// Defaults to 1.
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
// +optional
+ // +default=1
// +k8s:minimum=0
Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`
$ ./hack/update-codegen.sh default
+++ [1219 08:58:43] Generating defaulter code for 102 targets
$ git diff
diff --git a/pkg/apis/core/v1/zz_generated.defaults.go b/pkg/apis/core/v1/zz_generated.defaults.go
index 3b6eb4f0a93..567c49053aa 100644
--- a/pkg/apis/core/v1/zz_generated.defaults.go
+++ b/pkg/apis/core/v1/zz_generated.defaults.go
@@ -878,6 +878,10 @@ func SetObjectDefaults_PodTemplateList(in *corev1.PodTemplateList) {
func SetObjectDefaults_ReplicationController(in *corev1.ReplicationController) {
SetDefaults_ReplicationController(in)
+ if in.Spec.Replicas == nil {
+ var ptrVar1 int32 = 1
+ in.Spec.Replicas = &ptrVar1
+ }
if in.Spec.Template != nil {
SetDefaults_PodSpec(&in.Spec.Template.Spec)
for i := range in.Spec.Template.Spec.Volumes {
$ go test ./pkg/apis/core/v1 | grep -v gate | grep -v SetEmulationVersion
ok k8s.io/kubernetes/pkg/apis/core/v1 (cached)
```
Kubernetes-commit: 21b3da7e5aadf77e8fd17e467c86ff7e18f7d9ed
2024-12-19 09:03:52 -08:00
Patrick Ohly
a96aa53864
client-go workqueue: add optional logger
...
NewTypedDelayingQueueWithConfig spawns a goroutine, but apparently shutdown is
already handled somehow. Therefore only the option to set a logger gets added
to the Config struct.
The problem then becomes that developers might forget to set that
logger. logcheck can't detect that. For now, all in-tree users get updated
immediately.
Kubernetes-commit: f20eb2e7c16a9b28e69fd0bba2000e7166d68f29
2024-12-11 12:45:57 +01:00
胡玮文
48920637ea
remove out-of-date comments about version
...
mark_new_version.sh (actually mark-new-version.sh) has been removed. And we are
not creating vX.Y tags. We are using ldflags -X now.
Kubernetes-commit: 0f0f9d01c0db8906989616ccc1ef04175035ddf9
2024-12-11 01:16:38 +08:00
Patrick Ohly
e8a7cb0e18
client-go informers: provide ListWatch *WithContext variants
...
For compatibility reasons, the old functions without the ctx parameter still
get generated, now with context.Background instead of context.TODO. In practice
that code won't be used by the client-go reflector code because it prefers
the *WithContext functions, but it cannot be ruled out that some other code
only supports the old fields.
Kubernetes-commit: 8cc74e8a266e1042be1c60adfa3091852036f48a
2024-12-09 16:04:52 +01:00
Patrick Ohly
bad1caabde
client-go + apimachinery watch: context support
...
The Lister and Watcher interfaces only supported methods without context, but
were typically implemented with client-go API calls which need a context. New
interfaces get added using the same approach as in
https://github.com/kubernetes/kubernetes/pull/129109 .
Kubernetes-commit: 6688adae142e37114d9dfa8d94cd1d8a91fbcc13
2024-12-20 13:55:47 +01:00
Patrick Ohly
d0f5d55191
client-go certificate: context-aware APIs and logging
...
For NewManager, the Config struct gets changed (not extended!) so that the
caller can provide a logger instead of just a logging function. Breaking the
API was chosen because it avoids having to maintain two different log calls in
various places (one for printf-style logging, one for structured logging).
RequestCertificateWithContext is an extension. It enables getting rid of
context.TODO calls.
NewFileStoreWithLogger also is an extension.
Kubernetes-commit: f9051901cee8d8ff4aed3db27ff495a706f1a487
2024-12-09 12:45:54 +01:00
Patrick Ohly
82fcce0646
client-go/transport: structured, contextual logging
...
The revised logging emits one log entry at the start of
round-tripping ("Request") and another at the end ("Response"). This avoids the
risk that related output gets interleaved by other output.
No API changes are necessary. A contextual logger is picked up from the context
of the request that is being handled. The verbosity level of that logger is
checked to determine what is supposed to be logged. This enables reducing log
details on a by-request basis by storing a `logger.V(1)` in the context of the
request.
As before, logging only gets injected into request processing at -v6 or higher,
so normally there is no additional overhead.
Kubernetes-commit: a85f489b28d3b0ef82dffb267b6145c73c2d0e33
2024-12-04 15:09:37 +01:00
Filip Křepinský
df7621a0b4
update generated files and feature gates
...
Kubernetes-commit: 28437797b525b17a5a20b8e6c7daf30046a3864c
2024-11-04 19:52:30 +01:00
Tiago Silva
9f1cce41d5
client-go: transform watchErrorStream to wrap the underlying error (#129765 )
...
* `client-go`: transform `watchErrorStream` to wrap the underlying error
This PR transforms the `client-go`'s `watchErrorStream` to wrap the error instead of transforming it into a single string. This enables clients to use `errors.Is/As/Unwrap` with the errors that come out of `StreamWithContext`
Fixes https://github.com/kubernetes/kubernetes/issues/129763
* adjust unit tests
Kubernetes-commit: 067012f5844b7390e7279f575342ae0536f80520
2025-01-23 20:07:37 +00:00
Kubernetes Publisher
3b09c13448
Merge pull request #128971 from aojea/servicecidr_ga
...
KEP-1880 Multiple Service CIDRs: Graduate to GA
Kubernetes-commit: 45d0fddaf1f24f7b559eb936308ce2aeb9871850
2025-01-22 20:27:05 +00:00
Kubernetes Publisher
3617101e66
Merge pull request #127709 from pohly/log-client-go-rest
...
client-go/rest: finish context support
Kubernetes-commit: 427cd18f726be3e3c4f657258dc17a97beca92d5
2025-01-22 20:27:02 +00:00
Patrick Ohly
be86cb59f1
client-go rest: store logger in Result
...
Storing a context and making sure that it never gets canceled also has
overhead. We might as well just do the klog.FromContext when constructing
the Result and store the logger for later use.
Kubernetes-commit: b7386467c8df686e935c477eac26049a80de789b
2024-11-27 13:19:47 +01:00
Antonio Ojea
a9177f9ca1
make update
...
Kubernetes-commit: 3606d52cd6de7366ca855d571b27193c32b029fb
2024-11-26 03:52:02 +00:00
Patrick Ohly
5d128adc87
client-go/rest: finish conversion to contextual logging
...
The remaining calls can be converted without API changes.
Kubernetes-commit: 7821abf2ae289673bbfa3b9a6b8b34f5196c7c7e
2024-09-02 17:55:12 +02:00
Patrick Ohly
7aa9904196
client-go/rest: backoff with context support
...
The BackoffManager interface sleeps without considering the caller's context,
i.e. cancellation is not supported. This alone is reason enough to deprecate it
and to replace it with an interface that supports a context parameter.
The other reason is that contextual logging needs that parameter.
Kubernetes-commit: b15a1943d51adfb8c5e0185d58d25e038c3d6ade
2024-09-02 20:18:47 +02:00
Patrick Ohly
2b2015d460
client-go/test: warning handler with contextual logging
...
The default handler now uses contextual logging. Instead of
warnings.go:106] warning 1
it now logs the caller of client-go and uses structured, contextual
logging
main.go:100] "Warning" message="warning 1"
Users of client-go have the choice whether the handler that they provide uses
the traditional API (no API break!) or contextual logging.
Kubernetes-commit: 48fb886325fce4b16e4067caadb7bcd3044d460f
2024-09-02 17:51:01 +02:00
Kubernetes Publisher
9897373fe6
Merge pull request #129631 from kishen-v/update-client-go-docs
...
Update compatibility matrix and maintenance status upto release-1.32
Kubernetes-commit: d06398aac3e378da0c95472cd39713998206e9ff
2025-01-16 20:23:32 +00:00
Kubernetes Publisher
49eb6dc066
Merge pull request #129633 from skitt/revert-go-difflib-go-spew
...
Revert to go-difflib and go-spew releases
Kubernetes-commit: 6d570c923f66a1f214d0c3ba3eddd9a0cd0fae68
2025-01-15 20:23:22 +00:00
Stephen Kitt
2d999b8c6e
Revert to go-difflib and go-spew releases
...
The last dependency pulling in the tips of go-difflib and go-spew has
reverted to the last release of both projects, so k/k can revert to
the releases too. As can be seen from the contents of vendor, this
doesn't result in any actual change in the code.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 3986472b3c7202716f92e586ccfaa4b4fe573dc5
2025-01-15 09:07:27 +01:00
Kishen Viswanathan
ea0b82ef07
Update compatibility matrix and maintenance status upto release-1.32
...
Kubernetes-commit: fef67f64c7bdb3a44fccfb1b84805c8c52c290c9
2025-01-15 12:16:25 +05:30
Kubernetes Publisher
151d631605
Merge pull request #129615 from pohly/log-client-go-tools-cache-apis-fix
...
client-go/tools/cache: fix TestAddWhileActive
Kubernetes-commit: 1a9feed0cd89f3299ddb6f5eaa5663496c59342c
2025-01-14 20:40:51 +00:00
Patrick Ohly
40cace856c
client-go/tools/cache: fix TestAddWhileActive
...
4638ba971661497b147906b8977ae206c9dd6e44 added tracking of the goroutine which
executes informer.Run. In the TestAddWhileActive the original `go
informer.Run()` was left in place, causing a data race between the two
`informer.Run` instances:
==================
WARNING: DATA RACE
Read at 0x00c000262398 by goroutine 5302:
k8s.io/client-go/tools/cache.(*controller).RunWithContext()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/client-go/tools/cache/controller.go:162 +0x1ad
k8s.io/client-go/tools/cache.(*sharedIndexInformer).RunWithContext()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/client-go/tools/cache/shared_informer.go:584 +0x6c5
k8s.io/client-go/tools/cache.(*sharedIndexInformer).Run()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/client-go/tools/cache/shared_informer.go:527 +0x48
k8s.io/client-go/tools/cache.TestAddWhileActive.gowrap1()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/client-go/tools/cache/shared_informer_test.go:1080 +0x17
Previous write at 0x00c000262398 by goroutine 5301:
k8s.io/client-go/tools/cache.New()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/client-go/tools/cache/controller.go:142 +0x9de
k8s.io/client-go/tools/cache.(*sharedIndexInformer).RunWithContext.func1()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/client-go/tools/cache/shared_informer.go:562 +0xa78
k8s.io/client-go/tools/cache.(*sharedIndexInformer).RunWithContext()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/client-go/tools/cache/shared_informer.go:565 +0x119
k8s.io/client-go/tools/cache.(*sharedIndexInformer).Run()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/client-go/tools/cache/shared_informer.go:527 +0x44
k8s.io/client-go/tools/cache.(*sharedIndexInformer).Run-fm()
<autogenerated>:1 +0x17
k8s.io/client-go/tools/cache.TestAddWhileActive.(*Group).StartWithChannel.func2()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go:55 +0x38
k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go:72 +0x86
Goroutine 5302 (running) created at:
k8s.io/client-go/tools/cache.TestAddWhileActive()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/client-go/tools/cache/shared_informer_test.go:1080 +0x93e
testing.tRunner()
/usr/local/go/src/testing/testing.go:1690 +0x226
testing.(*T).Run.gowrap1()
/usr/local/go/src/testing/testing.go:1743 +0x44
Goroutine 5301 (running) created at:
k8s.io/apimachinery/pkg/util/wait.(*Group).Start()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go:70 +0xe4
k8s.io/apimachinery/pkg/util/wait.(*Group).StartWithChannel()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go:54 +0x7e6
k8s.io/client-go/tools/cache.TestAddWhileActive()
/home/prow/go/src/k8s.io/kubernetes/staging/src/k8s.io/client-go/tools/cache/shared_informer_test.go:1074 +0x6a1
testing.tRunner()
/usr/local/go/src/testing/testing.go:1690 +0x226
testing.(*T).Run.gowrap1()
/usr/local/go/src/testing/testing.go:1743 +0x44
==================
Kubernetes-commit: d66ced5730fa60c04b0a39df58a156b7045585f6
2025-01-14 14:06:31 +01:00
Kubernetes Publisher
e421aed7f1
Merge pull request #129139 from tklauser/client-setconfigdefaults-noerror
...
Remove always-`nil` `setConfigDefaults` error return value in generated clients
Kubernetes-commit: 2331c028c2000f7d31efeeb405d8151a78a9de9c
2025-01-09 16:30:42 +00:00
Kubernetes Publisher
26c6fd655e
Merge pull request #129343 from pohly/log-client-go-v1-event
...
client-go event: add WithContext expansion methods
Kubernetes-commit: 2832f70801fc7c505a2b90c236dcb24fb59cb9d9
2025-01-08 16:22:50 +00:00
Kubernetes Publisher
ca1e525bb4
Merge pull request #129349 from dims/bump-x/net-to-v0.33.0
...
Bump x/net to v0.33.0
Kubernetes-commit: b7ef173c59065f9a5f68eb514ef0483c6f3887ae
2025-01-06 20:23:09 +00:00
Kubernetes Publisher
2ad95cfec9
Merge pull request #128872 from alvaroaleman/generics
...
Use generic btree in watchcache
Kubernetes-commit: 8f8c94a04d00e59d286fe4387197bc62c6a4f374
2025-01-03 16:22:09 +00:00
Alvaro Aleman
91ed5e1d2b
Update github.com/google/btree
...
Kubernetes-commit: a97ed3c98bcd2c520260aa04c516a24e975e7d69
2025-01-02 19:44:07 -05:00
Kubernetes Publisher
da6e2946e5
Merge pull request #129420 from pohly/client-go-tools-cache-testhammercontroller-fix
...
client-go cache: fix TestHammerController
Kubernetes-commit: 8f330c63688ab920ea8d864d9a3193da535018e5
2024-12-29 16:21:56 +00:00
Patrick Ohly
498e3efe74
client-go cache: fix TestHammerController
...
The test relied on a 100ms sleep to ensure that controller was done. If that
race was lost, one goroutine was intentionally prevented from completing by
locking a mutex permanently. A TODO was left about detecting that.
Adding goroutine leak checking in
https://github.com/kubernetes/kubernetes/pull/126387 revealed that this race
indeed sometimes is lost because the goroutine
leaked (https://github.com/kubernetes/kubernetes/issues/129400 ).
Waiting for controller shutdown instead of relying on timing should fix this.
Kubernetes-commit: 8e1403563a60f3b7a258e3bbb64b5c3a7f6548fb
2024-12-29 12:18:50 +01:00
Davanum Srinivas
6584190087
Bump x/net to v0.33.0
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 0b6e3718340fa7e3846cf9b7d5a0f7a684a6fa5a
2024-12-20 14:30:57 -05:00
Kubernetes Publisher
ea791f2501
Merge pull request #126387 from pohly/log-client-go-tools-cache-apis
...
client-go/tools/cache: add APIs with context parameter
Kubernetes-commit: e305c3398896b04c0d3b58d64531f8a87f685f68
2024-12-18 21:52:29 +00:00
Tobias Klauser
9f31100789
Update generated clients after removing always-nil setConfigDefaults error return value
...
Kubernetes-commit: 2c24a12804ca0020e57592a6844f7c5874dffcfe
2024-12-15 23:19:18 +01:00
Kubernetes Publisher
67da6d1a41
Merge pull request #129212 from Jefftree/add-clientgo-readme
...
Add client-go README
Kubernetes-commit: cb93d6ee69b8d4ca8701336e4f7cb278751f34e4
2024-12-15 01:51:03 +00:00
Kubernetes Prow Robot
d5ac3dbddc
Merge pull request #1394 from Jefftree/patch-1
...
Delete README.md
2024-12-14 15:58:43 +01:00
Kubernetes Publisher
61ee2c5802
Merge pull request #129213 from Jefftree/k-openapi
...
Bump kube-openapi
Kubernetes-commit: 13eb074ddd231d127709f0410185eeca68a69c8a
2024-12-14 01:51:28 +00:00
Jefftree
540fb4f698
bump kube-openapi
...
Kubernetes-commit: 3269f4bb94c58dfe577621c42f88ea06fbdd79a7
2024-12-13 20:50:49 +00:00
Jeffrey Ying
a6e6f66ef7
Delete README.md
2024-12-13 15:32:23 -05:00
Jefftree
ec0ec91b19
Add client-go README
...
Kubernetes-commit: 8f782fea93023a3faa43ad0c22f8c295f732a65b
2024-12-13 20:30:13 +00:00
Kubernetes Publisher
ab443a50c6
Merge pull request #128659 from saschagrunert/google-go-protobuf
...
Replace `github.com/golang/protobuf` with `google.golang.org/protobuf`
Kubernetes-commit: b1f2af04328936c2fa79db4af14f5c6ad9160748
2024-12-13 17:52:36 +00:00
Kubernetes Publisher
fae881e13f
Merge pull request #129041 from aojea/flowcontrol
...
flowcontrol: remove test dependencies from go binaries
Kubernetes-commit: e8312395f09619d4808d6e4a78d85dc500a6ea15
2024-12-13 13:51:28 +00:00
Kubernetes Publisher
633c24cce5
Merge pull request #129195 from dims/update-x/crypto/ssh-dependency
...
Update x/crypto/ssh dependency to v0.31.0
Kubernetes-commit: b21ab179c74a270cd276d2dbb5f4b55730838096
2024-12-13 09:51:37 +00:00
Davanum Srinivas
e82d0c2ac7
Update x/crypto/ssh dependency
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 80735180ab2c61232dcc4646e693ddcaeaf96ca3
2024-12-12 20:46:15 -05:00
Antonio Ojea
92b4ec71fb
flowcontrol: remove testing dependencies
...
The methods NewFakeClock were using a testing dependency as a parameter,
to avoid breaking compatibility and to remove this dependency, just use
the clock.Clock interface.
If we have to do it again most probable we have chosen other pattern and
for sure other names, but now is too late.
Kubernetes-commit: 5c283cbb453acac9869b49020f6f999796360729
2024-12-12 17:42:41 +00:00
Kubernetes Publisher
1df7a02c72
Merge pull request #129054 from pohly/remove-import-name
...
remove import doc comments
Kubernetes-commit: e8615e27125518f0ed0ba06244b7ecee21451bb0
2024-12-12 09:50:39 +00:00
Kubernetes Publisher
706280d1e7
Merge pull request #128753 from skitt/skitt-reviewer-client-go
...
Add myself to client-go reviewers
Kubernetes-commit: b50043e3123cdcb0f5912972a918bf476f1d295d
2024-12-12 05:51:54 +00:00
Patrick Ohly
1047529e64
client-go event: add WithContext expansion methods
...
Only the v1 API should be in use. The v1beta1 API therefore doesn't get updated
and doesn't need the context.TODO anymore.
Kubernetes-commit: f1834f06f4f7de8c6a5a70138cf08f8ca804f5c2
2024-12-09 17:41:14 +01:00
Kubernetes Publisher
8e21410d16
Merge pull request #129103 from liggitt/drop-winreadlinkvolume
...
Drop use of winreadlinkvolume godebug option
Kubernetes-commit: bfe431b53e600c9a36c46eef0f6ecfcf37265d60
2024-12-06 18:26:37 +00:00
Jordan Liggitt
e95e61cd4f
Drop use of winreadlinkvolume godebug option
...
Kubernetes-commit: 3046fe23d4fe4ba86713ffd61bf0e07156b2b7c3
2024-12-06 02:40:53 -05:00
Kubernetes Publisher
f118320d13
Merge pull request #129083 from liggitt/go1.23windows
...
Revert to go1.22 windows filesystem stdlib behavior
Kubernetes-commit: 6fc64a261c1dca857a5a7fd1bc87fae38dbe1c8a
2024-12-04 22:23:15 +00:00
Jordan Liggitt
06af948aa5
Revert to go1.22 windows filesystem stdlib behavior
...
Kubernetes-commit: 3878a3a6de64660e356a35f70471c27a09698090
2024-12-04 09:52:56 -05:00
Patrick Ohly
70a4950f35
remove import doc comments
...
The "// import <path>" comment has been superseded by Go modules.
We don't have to remove them, but doing so has some advantages:
- They are used inconsistently, which is confusing.
- We can then also remove the (currently broken) hack/update-vanity-imports.sh.
- Last but not least, it would be a first step towards avoiding the k8s.io domain.
This commit was generated with
sed -i -e 's;^package \(.*\) // import.*;package \1;' $(git grep -l '^package.*// import' | grep -v 'vendor/')
Everything was included, except for
package labels // import k8s.io/kubernetes/pkg/util/labels
because that package is marked as "read-only".
Kubernetes-commit: 8a908e0c0bd96a3455edf7e3b5f5af90564e65b0
2024-12-02 14:43:58 +01:00
Stephen Kitt
111d4bc2cc
Add myself to client-go reviewers
...
Given the ongoing work on generifying client-go, it might make sense
for me to be a reviewer (at least to keep better track of changes
being made before they go in).
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 3d069b2a8a6a635434331f96b79e44bc7c98f29c
2024-11-11 15:03:14 -07:00
Kubernetes Publisher
37045084c2
Merge pull request #126503 from skitt/generic-fake-client
...
Use generics to share code in fake client-go implementations
Kubernetes-commit: 31970d418ccae80c9c7e25e8c503035a79a53763
2024-11-08 17:54:43 +00:00
Stephen Kitt
eb282ed4ca
Align fake client-go clients with the main interface
...
"Real" clients use objectWithMeta to enforce support for meta.Object;
strictly speaking, fakes don't need this, but it's best to align them
with the real clients to ensure that fakes don't end up allowing types
that can't be used with the real clients.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 736e5560ba6b21247c21f8ed12007e1d6d5fec1a
2024-11-08 10:42:12 +01:00
Sascha Grunert
be40e97e1a
Replace github.com/golang/protobuf with google.golang.org/protobuf
...
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
Kubernetes-commit: c1d0e870f4f45548c0d5b2bf83f36fb208252978
2024-11-07 12:47:08 +01:00
Stephen Kitt
646e79b061
Run codegen
...
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: be03bcf3244e6c280b8aaf7a638d1926f0960eab
2024-08-01 12:10:10 +02:00
Stephen Kitt
c475fe0910
Generify fake clientsets
...
This adds a generic implementation of a fake clientset, and uses it to
replace the template code in generated fake clientsets for the default
methods. The templates are preserved as-is (or as close as they can
be) for use in extensions, whether for resources or subresources.
Fake clientsets with no extensions are reduced to their main getter,
their specific struct, and their constructor. All method
implementations are provided by the generic implementation. The
dedicated struct is preserved to allow extensions and expansions to be
defined where necessary.
Instead of handling the variants (with/without list, apply) with a
complex sequence of if statements, build up an index into an array
containing the various declarations.
Similarly, instead of calling different action constructors for
namespaced and non-namespaced clientsets, assume the current behaviour
of non-namespaced action creation (equivalent to creating a namespaced
action with an empty namespace) and document that assumption in the
action implementation.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: b0ce65df9b74d4dc72050840d5ad067596d7b822
2024-07-30 15:47:02 +02:00
Kubernetes Publisher
955401ca9a
Merge pull request #128407 from ndixita/pod-level-resources
...
[PodLevelResources] Pod Level Resources Feature Alpha
Kubernetes-commit: c25f5eefe4efda4c0d9561d06942cd3de3dfe2e4
2024-11-08 11:58:33 +00:00
Kubernetes Publisher
eddb107938
Merge pull request #127857 from Jefftree/cle-v1alpha2
...
Coordinated Leader Election add v1alpha2
Kubernetes-commit: 45260fd76aa7b2ceed16aea173ccb3f81e3ab98b
2024-11-08 11:58:30 +00:00
ndixita
77d9809f89
Generated files and compatability data from API changes
...
Kubernetes-commit: 85488b5f10bc6128dab69e4bdd94cec2c005c7f5
2024-10-16 20:34:52 +00:00
Jefftree
ef8b7aa53e
generated
...
Kubernetes-commit: e86c38b249bb614c13210f1fe34fb92247641ef9
2024-10-04 15:53:28 +00:00
Jefftree
bf1a6eed35
v1alpha2 LeaseCandidate API
...
Kubernetes-commit: 0ce7b688a65a65031c6ee8c616989e4b0be4ce9f
2024-10-04 14:43:11 +00:00
Kubernetes Publisher
ec126553e2
Merge pull request #128240 from LionelJouin/KEP-4817
...
DRA: Implementation of ResourceClaim.Status.Devices (KEP-4817)
Kubernetes-commit: 4cf2818f964d8862db4399cb548060f72bea4ded
2024-11-08 11:58:27 +00:00
Kubernetes Publisher
fcfb2ba016
Merge pull request #127513 from tkashem/delete-undecryptable
...
KEP-3926: unsafe deletion of corrupt objects
Kubernetes-commit: 4d10ae8fdc579e2bb09789507cae7b8d32cbd306
2024-11-08 11:58:24 +00:00
Kubernetes Publisher
fe3db7fea6
Merge pull request #128681 from soltysh/client-go_port_forward_reset
...
Client go port forward reset, error handling and tests
Kubernetes-commit: 210deea063a5a778e8c3a8e32b8bc4c808b87835
2024-11-08 11:58:21 +00:00
Kubernetes Publisher
2d3b1e2feb
Merge pull request #128356 from lauralorenz/crashloopbackoff-maintain10minuterecoverythreshold
...
KEP-4603: Maintain current 10 minute recovery threshold for container backoff regardless of changes to the maximum duration
Kubernetes-commit: ab30adcbae57fc498cb876979e232b422468af9a
2024-11-08 11:58:20 +00:00
Kubernetes Publisher
c57e0a82c3
Merge pull request #128641 from benluddy/e2e-cbor-client-compat
...
KEP-4222: Fix JSON fallback for clients using default content-type and add E2E client test.
Kubernetes-commit: 7243fa60e1c85d85bf5c129d09b7bd9bdfe24ccc
2024-11-08 11:58:17 +00:00
Lionel Jouin
fba42f0ac4
[KEP-4817] make update
...
Kubernetes-commit: d84c8d2a647aee3a7b0ac499a55e5f630c71d2a9
2024-11-07 22:19:09 +01:00
Lionel Jouin
bfbe175263
[KEP-4817] make update
...
Signed-off-by: Lionel Jouin <lionel.jouin@est.tech >
Kubernetes-commit: d28b50e0a04a4c5bbf494a423ad7851f0393467c
2024-11-07 10:36:09 +01:00
Ben Luddy
49537610e8
Fix content type fallback when a client defaults to CBOR.
...
With the ClientsAllowCBOR client-go feature gate enabled, a 415 response to a CBOR-encoded REST
causes all subsequent requests from the client to fall back to a JSON request encoding. This
mechanism had only worked as intended when CBOR was explicitly configured in the
ClientContentConfig. When both ClientsAllowCBOR and ClientsPreferCBOR are enabled, an
unconfigured (empty) content type defaults to CBOR instead of JSON. Both ways of configuring a
client to use the CBOR request encoding are now subject to the same fallback mechanism.
Kubernetes-commit: a77f4c7ba2e761461daaf115a38903fc91916dd6
2024-11-07 00:05:03 -05:00
Kubernetes Publisher
c57dbd8dec
Merge pull request #128503 from benluddy/cbor-codecs-featuregate
...
KEP-4222: Wire serving codecs to CBOR feature gate.
Kubernetes-commit: 6399c32669c62cfbf7c33b14b77d6781ce1cce27
2024-11-07 03:06:07 +00:00
Abu Kashem
e132ac21c9
handle watch for unsafe delete
...
Kubernetes-commit: 25efc8f2d136a9574166be02789ac727c5b4a3fd
2024-11-05 20:36:56 -05:00
Ben Luddy
334e30739d
Wire serving codecs to CBOR feature gate.
...
Integration testing has to this point relied on patching serving codecs for built-in APIs. The
test-only patching is removed and replaced by feature gated checks at runtime.
Kubernetes-commit: 439d2f7b4028638b3d8d9261bb046c3ba8d9bfcb
2024-11-01 16:05:32 -04:00
Kubernetes Publisher
2d5ed6fa11
Merge pull request #128501 from benluddy/watch-cbor-seq
...
KEP-4222: Use cbor-seq content-type for CBOR watch responses.
Kubernetes-commit: a885e446d6f6f5530da4923a3872eb27ca47bdc0
2024-11-06 23:06:15 +00:00
Ben Luddy
10c2fdb7f4
Use application/cbor-seq media type in streaming CBOR responses.
...
The media type application/cbor describes exactly one encoded item. As a new (to Kubernetes) format
with no existing clients, streaming/watch responses will use the application/cbor-seq media
type. CBOR watch responses conform to the specification of CBOR Sequences and are encoded as the
concatenation of zero or more items with no additional framing.
Kubernetes-commit: 504f14998e920ca8837b3310094b3da11c62a070
2024-11-01 13:14:06 -04:00
Kubernetes Publisher
ae04abdbe9
Merge pull request #127511 from pohly/dra-1.32-api
...
DRA 1.32 API: promotion to beta
Kubernetes-commit: e273349f3a2fde9a2499902645e8f10001c899bf
2024-11-06 15:06:18 +00:00
Patrick Ohly
4e05c623ae
DRA API: rename DeviceCapacity.Quantity to DeviceCapacity.Value
...
Based on review
feedback (https://github.com/kubernetes/kubernetes/pull/127511#discussion_r1823521172 ).
Kubernetes-commit: 30f52826560129839922e1756730b02f184f0ef9
2024-10-31 21:30:28 +01:00
Laura Lorenz
ab2cdceca1
Maintain 10 minute recovery threshold for container backoff
...
Signed-off-by: Laura Lorenz <lauralorenz@google.com >
Kubernetes-commit: a0b83a774102a6d8ce03ce03c9d0431b44559019
2024-10-26 02:17:23 +00:00
Maciej Szulik
bf414551df
Clean error handling in port-forward
...
This commit introduces:
1. Cleanups in port-forwarding error handling code, which ensures that
we only compare lowercased text always.
2. E2E verifying that when a pod is removed a port-forward is stopped.
Signed-off-by: Maciej Szulik <soltysh@gmail.com >
Kubernetes-commit: 0b1617ccefbc6ea61c0e7c2b0b4052703f11c51c
2024-10-16 14:02:01 +02:00
Nic
d6404c8d76
fix: draining remote stream after port-forward connection broken
...
Signed-off-by: Nic <qianyong@api7.ai >
Kubernetes-commit: dbe6b6657bacc846656f4009ee869ca996dde1da
2024-10-04 14:48:15 +08:00
Patrick Ohly
f65974c297
DRA API: use DeviceCapacity struct instead of plain Quantity
...
This enables a future extension where capacity of a single device gets consumed
by different claims. The semantic without any additional fields is the same as
before: a capacity cannot be split up and is only an attribute of a device.
Because its semantically the same as before, two-way conversion to v1alpha3 is
possible.
Kubernetes-commit: 81fd64256c9cfca47385997e06a694bf98bfb799
2024-09-26 16:56:48 +02:00
Patrick Ohly
98e4506ad9
DRA API: generated files
...
Kubernetes-commit: 0ee52b23cd56aa4a8e33cc366c2d150286ad041e
2024-09-26 12:07:39 +02:00
Kubernetes Publisher
e6df85f02b
Merge pull request #128266 from AnishShah/resize-subresource
...
[FG:InPlacePodVerticalScaling] Introduce /resize subresource to request pod resource resizing
Kubernetes-commit: 648717cc740cafbce778e983f195dc6879bf22e3
2024-11-06 11:05:54 +00:00
Anish Shah
db23975bde
client-go: rename Resize to UpdateResize
...
Kubernetes-commit: 79f45bce19d1d832cc30812b8cf2a192ebe76d97
2024-10-29 21:09:47 +00:00
Anish Shah
951bba35c5
update codegen
...
Kubernetes-commit: 277edcdb485cf6a7fae0da48489e0632438c0a8a
2024-10-24 23:52:49 +00:00
Anish Shah
fc589c225c
api: generate client code for resize subresource
...
Kubernetes-commit: d9a1d861f7cec8c00a034e67a8d7d34aaebd76e8
2024-10-22 12:20:31 -07:00
Kubernetes Publisher
9d76eb1606
Merge pull request #128539 from benluddy/cbor-feature-gates
...
KEP-4222: Add CBOR feature gates.
Kubernetes-commit: a28f14089cfa47ef9c57f9f283e1504a68f616d6
2024-11-06 03:05:49 +00:00
Kubernetes Publisher
c1010ffd7d
Merge pull request #128580 from jpbetz/bump-kube-openapi
...
Bump kube-openapi to latest
Kubernetes-commit: 9a2a7537f035969a68e432b4cc276dbce8ce1735
2024-11-05 23:05:42 +00:00
Kubernetes Publisher
6d45801000
Merge pull request #127134 from jpbetz/mutating-admission
...
KEP-3962: MutatingAdmissionPolicy Alpha
Kubernetes-commit: 2d6c8a129df97caf5bda3a186a8f7f3e41591352
2024-11-05 19:05:46 +00:00
Joe Betz
48c6947370
hack/pin-dependency.sh k8s.io/kube-openapi 32ad38e42d3faf1ce94eb29f4ea6d763339b258e
...
Kubernetes-commit: f2157ff73e3c9b7c2a36bf371e388e8976d93975
2024-11-05 10:18:57 -05:00
Kubernetes Publisher
3fc0d17041
Merge pull request #128396 from ritazh/deprecate-EnforceMountableSecretsAnnotation
...
deprecate EnforceMountableSecretsAnnotation in 1.32
Kubernetes-commit: bc79d3ba87b8b3c4b7c68f26cdfcaa35654d96ac
2024-11-05 07:05:36 +00:00
Kubernetes Publisher
f6b680711f
Merge pull request #128552 from aojea/package_kubernete_test
...
fix package name
Kubernetes-commit: e5a31e8bbc67857aaf9270ad15f672806dbd88e2
2024-11-05 04:45:28 +00:00
Antonio Ojea
1f96e45488
fix package name
...
Kubernetes-commit: 3424e7df46dccf0d7e49d325484539f777b3f0c0
2024-11-04 23:58:59 +00:00
Kubernetes Publisher
3a268848dc
Merge pull request #128547 from aojea/rest_watch
...
rest client watch: use same name for package as folder
Kubernetes-commit: 19d56296aab8cf6f94d327466f5e9bb1488f5a83
2024-11-05 03:06:00 +00:00
Kubernetes Publisher
be38ea1eb5
Merge pull request #127981 from jsafrane/selinux-changepolicy
...
1710: Implement SELinuxChangePolicy
Kubernetes-commit: 97c79df18f8552facf63682b23d9380253972d48
2024-11-04 23:06:06 +00:00
Kubernetes Publisher
2ff887486f
Merge pull request #128507 from dims/use-k8s.io/utils/lru-instead-of-github.com/golang/groupcache/lru
...
Use k8s.io/utils/lru instead of github.com/golang/groupcache/lru
Kubernetes-commit: 7a4d755644e83dfade7bbc4c240c204a9e54d9c0
2024-11-04 23:06:04 +00:00
Antonio Ojea
d69191cc45
rest client watch: use same name for package as folder
...
Kubernetes-commit: 8e1d0c664c60c094605f692360213b0284cdbe0f
2024-11-04 19:56:55 +00:00
Ben Luddy
8cb21671f4
Add CBOR feature gates.
...
For alpha, there is one apiserver feature gate and two client-go feature gates controlling
CBOR. They were initially wired to separate test-only feature gate instances in order to prevent
them from being configurable at runtime via command-line flags or environment variables (for
client-go feature gates outside of Kubernetes components). All of the integration tests required by
the KEP as alpha criteria have been implemented. This adds the feature gates to the usual feature
gate instances and removes the temporary code to support separate test-only feature gate instances.
Kubernetes-commit: 072dfcb416fd4e1ddab0a89ac4faf519e268bc96
2024-11-04 10:40:19 -05:00
Davanum Srinivas
6c84382029
Use k8s.io/utils/lru instead of github.com/golang/groupcache/lru
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 2b0592ee77d0a0bb3017df042066ecb8c83d2fb3
2024-11-01 22:19:11 -04:00
Kubernetes Publisher
67554141e0
Merge pull request #128497 from benluddy/cbor-request-contenttype-circuit-breaker
...
KEP-4222: Fall back to JSON request encoding after CBOR 415.
Kubernetes-commit: 3f5d0ee2cf402d10233fc403750a9784d1542059
2024-11-01 23:05:40 +00:00
Kubernetes Publisher
b3f6edec9a
Merge pull request #127743 from googs1025/cleanup/leaderelection
...
chore(leader-election): modify leader-election comment to OnStoppedLeading callback is always called when the LeaderElector exits, even if it did not start leading.
Kubernetes-commit: 1a7326902fa07b85e07de458dd2d4d4d99057d87
2024-11-01 19:05:46 +00:00
Kubernetes Publisher
d680385f61
Merge pull request #128481 from carlory/dependencies-ginkgo-gomega
...
dependencies: ginkgo v2.21.0, gomega v1.35.1
Kubernetes-commit: 88a997ac01cd8a386df9318d81b89257307f53fb
2024-11-01 19:05:45 +00:00
carlory
d99919f3ff
dependencies: ginkgo v2.21.0, gomega v1.35.1
...
Kubernetes-commit: 80b1a297865500891bd823005ace761becae5dbf
2024-11-01 11:35:24 +08:00
Kubernetes Publisher
c5d71b267c
Merge pull request #128416 from jpbetz/reset-filter
...
Add optional ResetFieldsFilterStrategy interface for storage
Kubernetes-commit: b831df733e5cf244331f61fffb0ba86787b27236
2024-11-01 03:16:53 +00:00
Joe Betz
10f459626d
hack/pin-dependency.sh sigs.k8s.io/structured-merge-diff/v4 v4.4.2
...
Kubernetes-commit: 6fe51403665f1b6e820226004817b92e3118cabc
2024-10-31 21:19:15 -04:00
Kubernetes Publisher
6ba2fc71bc
Merge pull request #128273 from benluddy/cbor-apply
...
KEP-4222: Support CBOR encoding for apply requests.
Kubernetes-commit: 16f9fdc7057e1f69ff1a44e3dbbcf7b994c3cd29
2024-10-30 18:50:32 +00:00
Kubernetes Publisher
d7104c6737
Merge pull request #127266 from pohly/dra-admin-access-in-status
...
DRA API: AdminAccess in DeviceRequestAllocationResult + DRAAdminAccess feature gate
Kubernetes-commit: daef8c2419a638d3925e146d0f5a6b217ea69b74
2024-10-30 06:50:17 +00:00
Ben Luddy
b0bd1f5b29
Regenerate clients to support application/apply-patch+cbor.
...
Kubernetes-commit: 41f55d711781c48d8b1365bce087009ceef2f1e9
2024-10-29 13:38:12 -04:00
Patrick Ohly
d86bbaef58
DRA: treat AdminAccess as a new feature gated field
...
Using the "normal" logic for a feature gated field simplifies the
implementation of the feature gate.
There is one (entirely theoretic!) problem with updating from 1.31: if a claim
was allocated in 1.31 with admin access, the status field was not set because
it didn't exist yet. If a driver now follows the current definition of "unset =
off", then it will not grant admin access even though it should. This is
theoretic because drivers are starting to support admin access with 1.32, so
there shouldn't be any claim where this problem could occur.
Kubernetes-commit: 4419568259590c35f1dab69aabec3d740944a51d
2024-10-29 09:42:08 +01:00
Rita Zhang
f77b3993b9
deprecate EnforceMountableSecretsAnnotation in 1.32
...
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com >
Kubernetes-commit: e7cdc595551954d6b87a859296eb09fddd01f3c9
2024-10-28 08:01:33 -07:00
Joe Betz
b5002f17ec
Update OpenAPI and fix openAPI tests to handle unexported jsonreferences
...
Co-authored-by: Alexander Zielensk <alexzielenski@gmail.com >
Kubernetes-commit: 700e3b566428bca46d2d37514c8fd7af60c7ff34
2024-10-25 13:51:03 -04:00
Joe Betz
5295d256f6
generate code
...
Kubernetes-commit: fe3a7f529153db690ac8588ee9c31bdfda0ed5f8
2024-10-25 13:46:37 -04:00
Ben Luddy
15af21a2ae
Fall back to JSON request encoding after CBOR 415.
...
If a client is configured to encode request bodies to CBOR, but the server does not support CBOR,
the server will respond with HTTP 415 (Unsupported Media Type). By feeding this response back to the
RESTClient, subsequent requests can fall back to JSON, which is assumed to be acceptable.
Kubernetes-commit: 1745dfdd154b1a838765e70b81c861c644bfcffe
2024-10-22 17:40:08 -04:00
Ben Luddy
cff56219d9
Support application/apply-patch+cbor in patch requests.
...
Kubernetes-commit: 37ed906a33211c7d578cab2d681941ebfd2f2f23
2024-10-22 16:08:24 -04:00
Jan Safranek
f0b2234e53
Regenerated API
...
Kubernetes-commit: 3867cb40add0cfc41157e9fd11f2377cda7d3770
2024-10-03 11:13:07 +02:00
googs1025
1b8aded77b
chore(leader-election): modify leader-election comment to OnStoppedLeading callback is always called when the LeaderElector exits, even if it did not start leading.
...
Kubernetes-commit: 7d2fbc7cfd49bca7d58160ed25dfd1f838629bb9
2024-09-30 09:38:10 +08:00
Abu Kashem
95fc3d7e88
api: run codegen
...
run 'make update' to code gen for changes in meta/v1 DeleteOptions
Kubernetes-commit: aff05b0bcad2b62730e101067a04ffc75a96a41b
2024-09-23 13:29:15 -04:00
Patrick Ohly
d32193115c
DRA API: AdminAccess in DeviceRequestAllocationResult
...
Drivers need to know that because admin access may also grant additional
permissions. The allocator needs to ignore such results when determining which
devices are considered as allocated.
In both cases it is conceptually cleaner to not rely on the content of the
ClaimSpec.
Kubernetes-commit: f3fef01e79a75ebc4c327afb7d05d6fd350e08fa
2024-09-04 08:03:22 +02:00
Kubernetes Publisher
a887e579c0
Merge pull request #128323 from benluddy/cbor-client-gen
...
KEP-4222: Support CBOR for generated clients based on client-go feature gating.
Kubernetes-commit: 30ee35516b10120590bcc35ee8b4d8113493ddee
2024-10-29 17:46:14 +00:00
Ben Luddy
886262a3de
Update vendor (client now calls ParseAccept from goautoneg).
...
Kubernetes-commit: 969357b99cd09d47d8a2d7073287f7316f3e6239
2024-10-28 11:22:59 -04:00
Ben Luddy
c957b59518
Wire client feature gates affecting RESTClient content config.
...
Kubernetes-commit: 67b9dc1f3e23529804345deea76d36d07dff59b1
2024-10-25 11:50:01 -04:00
Ben Luddy
9d19c65cdb
Update generated clients.
...
Kubernetes-commit: 8fb9622b882496dad1e91103dd15fff7fc2658e0
2024-10-24 16:50:48 -04:00
Ben Luddy
d8fc5bb524
Make generated client codecs support CBOR based on feature gate.
...
Kubernetes-commit: 57e337dbbf9e437bcb350d6551689669bb79d579
2024-10-24 16:38:45 -04:00
Kubernetes Publisher
3dc7fd5f4c
Merge pull request #128243 from benluddy/cbor-dynamic-integration
...
KEP-4222: Add CBOR variant of admission webhook integration test.
Kubernetes-commit: 5147eebf224ae41892b736179ca91c47fd794565
2024-10-25 01:56:21 +00:00
Kubernetes Publisher
abe0e99c21
Merge pull request #125314 from enj/enj/i/proto_for_core
...
Use protobuf for core clients
Kubernetes-commit: 7b7a7968d4c90c4430b1009546e13ce78bcde134
2024-10-24 17:56:17 +00:00
Ben Luddy
1cca19dc02
Add test-only client feature gates for CBOR.
...
As with the apiserver feature gate for CBOR as a serving and storage encoding, the client feature
gates for CBOR are being initially added through a test-only feature gate instance that is not wired
to environment variables or to command-line flags and is intended only to be enabled
programmatically from integration tests. The test-only instance will be removed as part of alpha
graduation and replaced by conventional client feature gating.
Kubernetes-commit: ea13190d8bd3a4bb3e82055b529aa7599ae5c6e1
2024-10-23 16:36:37 -04:00
Monis Khan
86e81b0a37
Generated
...
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: 032e7f1556c74dbc25b5ed9368b2e86e26ba774f
2024-10-23 15:33:57 +00:00
Monis Khan
6f44458e5e
Use protobuf for core clients
...
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: c2ae465355b5222dbc27b8de8c55095b4f1b431a
2024-08-19 10:37:15 -04:00
Monis Khan
1647efd5c4
client-go/rest: move content type wiring from client to request
...
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: fe1eda0649fdb6a15200d279be214c67246d3b12
2024-08-18 15:01:57 -04:00
Kubernetes Publisher
c5146a9031
Merge pull request #126697 from fedebongio/patch-1
...
Update OWNERS file in client-go/tools/leaderelection adding jefftree
Kubernetes-commit: 16dca1c330392f26f3421fd4cd7ee3d691b93213
2024-10-23 06:07:56 +00:00
Kubernetes Publisher
f05f3ca8bc
Merge pull request #125516 from ComingCL/master
...
fix typo errors in client-go rest package
Kubernetes-commit: 367e7e889b993cedc5f775fba9782010f7219fc9
2024-10-23 01:56:27 +00:00
Federico Bongiovanni
65ed08a834
Update OWNERS
...
Adding jefftree also to the reviewers list
Kubernetes-commit: 5f052ada19c43471bdcbb6da4e6f72405ca46bd7
2024-10-22 16:26:30 -07:00
Kubernetes Publisher
23900f4929
Merge pull request #128165 from liggitt/prune-self-require
...
Drop self-referencing replace directives
Kubernetes-commit: a8fc7ae761c19ab436cf513c9eed877f08961cf7
2024-10-18 04:29:40 +00:00
Kubernetes Publisher
6a276b2b95
Merge pull request #128003 from pohly/dra-classic-dra-removal
...
DRA: remove "classic DRA"
Kubernetes-commit: b1b4e5d397e303cf7a2a3fb02e90f40536da5896
2024-10-18 00:29:00 +00:00
Jordan Liggitt
607869c7d9
Drop self-referencing replace directives
...
Kubernetes-commit: 3be1109829d4b0921972bb8b5f66a4d179ff6255
2024-10-17 15:51:15 -04:00
Patrick Ohly
d366fa7737
DRA: remove "classic DRA"
...
This removes the DRAControlPlaneController feature gate, the fields controlled
by it (claim.spec.controller, claim.status.deallocationRequested,
claim.status.allocation.controller, class.spec.suitableNodes), the
PodSchedulingContext type, and all code related to the feature.
The feature gets removed because there is no path towards beta and GA and DRA
with "structured parameters" should be able to replace it.
Kubernetes-commit: f84eb5ecf894fa0fc4e0d05da52ef51d4cd723d9
2024-10-11 16:08:54 +02:00
Kubernetes Publisher
235936510e
Merge pull request #128064 from dims/update-to-last-versions-of-some-very-infrequently-updated-repos
...
Update to last versions of some very infrequently updated repos
Kubernetes-commit: 07e73682b9a5259cacac978346ed4567588e4165
2024-10-16 06:00:06 +00:00
Kubernetes Publisher
43e9ea4bb5
Merge pull request #124059 from benluddy/dynamic-client-negotiation
...
Use content negotiation in the dynamic client.
Kubernetes-commit: c360a2c75c6e2a6a66bc5c6d37b30a4171b408da
2024-10-15 18:23:03 +01:00
Davanum Srinivas
e4db112974
Update to last versions of some very infrequently updated repos
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 7f8210e33f8cd626d1fb86cd7d12d077ec3047d5
2024-10-14 17:23:16 -04:00
Federico Bongiovanni
29ce700614
Update staging/src/k8s.io/client-go/tools/leaderelection/OWNERS
...
Co-authored-by: Benjamin Elder <bentheelder@google.com >
Kubernetes-commit: d20bc10645e716034e91d365d17d8b1011d3f1cd
2024-08-14 13:21:52 -07:00
Federico Bongiovanni
3c2f0814df
Update OWNERS
...
Adding jefftree to the owners file for leaderelection
Kubernetes-commit: b5bbc1508f986df7811dd79e7b5116bbede784e8
2024-08-14 12:16:59 -07:00
Patrick Ohly
5d289bc44c
client-go/tools/cache: add APIs with context parameter
...
The context is used for cancellation and to support contextual logging.
In most cases, alternative *WithContext APIs get added, except for
NewIntegerResourceVersionMutationCache where code searches indicate that the
API is not used downstream.
An API break around SharedInformer couldn't be avoided because the
alternative (keeping the interface unchanged and adding a second one with
the new method) would have been worse. controller-runtime needs to be updated
because it implements that interface in a test package. Downstream consumers of
controller-runtime will work unless they use those test package.
Converting Kubernetes to use the other new alternatives will follow. In the
meantime, usage of the new alternatives cannot be enforced via logcheck
yet (see https://github.com/kubernetes/kubernetes/issues/126379 for the
process).
Passing context through and checking it for cancellation is tricky for event
handlers. A better approach is to map the context cancellation to the normal
removal of an event handler via a helper goroutine. Thanks to the new
HandleErrorWithLogr and HandleCrashWithLogr, remembering the logger is
sufficient for handling problems at runtime.
Kubernetes-commit: 4638ba971661497b147906b8977ae206c9dd6e44
2024-07-26 15:26:00 +02:00
Patrick Ohly
b836a27b07
client-go/tools/cache: goroutine leak checking
...
Several tests leaked goroutines. All of those get fixed where possible
without API changes. Goleak is used to prevent regressions.
One new test specifically covers shutdown of an informer and its event
handlers.
Kubernetes-commit: 0ba43734b4c8998b4aaeb1fa2bec8dee609fa50a
2024-11-28 17:59:36 +01:00
ComingCL
de60f3ccb5
fix typo errors in client-go rest package
...
Kubernetes-commit: faf891ad2d6dd1706932c8cf8774b2c7fb2b4bb1
2024-06-15 00:28:03 +08:00
0xMALVEE
8410e24e31
testes written for cache/listers.go
...
Kubernetes-commit: 8e8770961616369ac47149c69e7dc29562578d51
2024-05-23 23:40:18 +06:00
Ben Luddy
ee51eaf9d0
Use content negotiation in the dynamic client.
...
Kubernetes-commit: 97958d96a2911c8b1df324868f4730b1c622c798
2024-02-15 17:47:19 -05:00
Kubernetes Publisher
c38ce11939
Merge pull request #127812 from p0lyn0mial/upstream-decode-list-blueprint
...
client-go/rest/request: decodes initialEventsListBlueprint for watchlist requests
Kubernetes-commit: a454563a8d5a93ae0288244eb63649e26e509991
2024-10-14 14:00:33 +00:00
Kubernetes Publisher
9cff3e43bd
Merge pull request #128035 from alexanderstephan/export-reflector
...
Make getter names for reflector fields idiomatic
Kubernetes-commit: 4dc7a48ac6fb631a84e1974772bf7b8fd0bb9c59
2024-10-14 01:59:24 +00:00
Alexander Stephan
ce42c297f4
Make getter names for reflector fields idiomatic
...
Kubernetes-commit: fdabcb5141094cb99afde24ec1df15026b4ba349
2024-10-13 20:53:25 +00:00
Kubernetes Publisher
64f5574f09
Merge pull request #127998 from skitt/golang-x-oct-2024
...
October 2024 golang.org/x bump
Kubernetes-commit: 8cbb11519c54c120e2dc120a4799e53abbfea4a4
2024-10-11 14:00:21 +00:00
Kubernetes Publisher
2717ef67e3
Merge pull request #127985 from dims/update-moby-runc-dependencies-oct-10
...
Update moby/runc dependencies
Kubernetes-commit: 6e5e8f374e834fa8dab341bde5c522704ed55ba6
2024-10-11 14:00:19 +00:00
Stephen Kitt
9f84a0d8ed
October 2024 golang.org/x bump
...
Nothing major here, but nothing liable to cause pain to downstreams
either.
* https://github.com/golang/crypto/compare/v0.26.0...v0.28.0 (there’s
a SHA3 fix there but it’s only relevant for 32-bit platforms)
* https://github.com/golang/net/compare/v0.28.0...v0.30.0 (mostly
http2; route address parsing fix on Darwin)
* https://github.com/golang/oauth2/compare/v0.21.0...v0.23.0 (Google
license fix)
* https://github.com/golang/sys/compare/v0.23.0...v0.26.0 (faster
getrandom() on Linux through the vDSO; improved RISC-V support)
* https://github.com/golang/term/compare/v0.23.0...v0.25.0
* https://github.com/golang/time/compare/v0.3.0...v0.7.0 (0-limit
handling fix in x/time/rate; Google license fix)
* https://github.com/golang/tools/compare/v0.24.0...v0.26.0
This doesn’t include golang.org/x/exp; that doesn’t have any relevant
changes. There’s an apidiff fix but we always pull in the latest
apidiff anyway.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 6c5a528727c30803d4426b29c06ae5d350619877
2024-10-11 10:22:13 +02:00
Davanum Srinivas
6b8f524c7c
Update moby/runc dependencies
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 521f2d106b9c5744ce57a8ec03124bcdadbca986
2024-10-10 11:58:22 -04:00
Kubernetes Publisher
d13452aae7
Merge pull request #127485 from seans3/websocket-upgrade-error-info
...
Upgrade websocket failure add extra error info
Kubernetes-commit: 5c96d8d34d44d5c03b206c9e48c8794730692dae
2024-10-11 02:00:19 +01:00
Lukasz Szaszkiewicz
d274c7ba36
client-go/rest/request: decodes initialEventsListBlueprint for watchlist requests
...
Kubernetes-commit: 7be192ae0bd5d9628c5ee37c2e8b843d602c0fa3
2024-10-02 15:03:39 +02:00
Sean Sullivan
3cd3050ffd
Upgrade websocket failure add extra error info
...
Kubernetes-commit: eec2be81681c5ad147df13aad60a003af0c4c48f
2024-09-19 15:47:19 -07:00
Kubernetes Publisher
cd6681f3c4
Merge pull request #127942 from liggitt/json123
...
sigs.k8s.io/json go 1.23 bump
Kubernetes-commit: fc318e3ba4cb1db822d7f802993059846f64179d
2024-10-10 21:56:10 +00:00
Jordan Liggitt
bbcb9ac523
Update sigs.k8s.io/json to go1.23
...
Kubernetes-commit: 8eff759b6ac7c3bb0c6a8823c751f5a578d6f721
2024-10-10 11:00:11 -04:00
Kubernetes Publisher
cae730524e
Merge pull request #127944 from antoninbas/use-generics-for-delaying-queue-waitFor
...
Use generics for waitFor (delaying workqueue) in client-go
Kubernetes-commit: f7fef0384ec1c666e6b68cae83a3b3c6d95aa7b0
2024-10-09 09:55:50 +00:00
Kubernetes Publisher
ba20fcad8f
Merge pull request #127663 from alexanderstephan/export-reflector
...
Export name and typeDescription members of reflector struct
Kubernetes-commit: 95ec69c16c76b5ee71fdbebc7a5dea2c39341eb3
2024-10-09 01:56:00 +00:00
Antonin Bas
3c28f81659
Use generics for waitFor (delaying workqueue) in client-go
...
With this change, we can typically avoid an extra heap allocation when
calling AddAfter with a positive duration (which causes the creation of
a waitFor object). This is because workqueues are typically used with
string keys, and casting a string (or more generally, non-pointer types)
to an `interface{}` will cause an heap escape / allocation.
Ater this change, there is no longer any usage of `type t interface{}`,
which was creating some confusion after the switch to generics in the
workqueue package.
Co-authored-by: Quan Tian <quan.tian@broadcom.com >
Signed-off-by: Antonin Bas <antonin.bas@broadcom.com >
Kubernetes-commit: 53ddffb55709857fec6bddbd5ca4ca1b03f7da97
2024-10-08 15:12:11 -07:00
Kubernetes Publisher
0dfea60d7a
Merge pull request #127710 from alvaroaleman/document
...
RestCfg: Add godocs on how to disable ratelimiting
Kubernetes-commit: b2031b3cb46e946ee72eab7bda87b046db138d62
2024-10-08 10:20:58 +00:00
Kubernetes Publisher
5fceb99b61
Merge pull request #127635 from antoninbas/use-generics-for-queue-metrics
...
Use generics for workqueue metrics
Kubernetes-commit: 8461e630acd90a9eeebc7ffffefd81003be394bc
2024-10-08 10:20:56 +00:00
Alvaro Aleman
7416b2ea43
RestCfg: Add godocs on how to disable ratelimiting
...
I frequently find myself in the situation of not remembering which of
QPS/Burst I have to set. This change adds a small go doc to clarify
that.
Kubernetes-commit: cd1645ff2c195fbb353cfabcbc36e3c3b883c3c5
2024-09-27 10:34:15 -04:00
Alexander Stephan
146d03f559
Export name and typeDescription members of reflector struct
...
Kubernetes-commit: 154b8aa8806d743c41d1acf0b498bdecf1767872
2024-09-26 15:09:59 +00:00
Antonin Bas
5b31113588
Use generics for workqueue metrics
...
The workqueue implementation was recently updated to be strongly typed,
using Go generics. However the metrics implementation was not updated,
and continued using interface{}. This translated to unnecessary memory
allocations when invoking the queueMetrics interface methods to track
queue operation. We can avoid these extra heap allocations by using
generics for the metrics implementation as well.
Signed-off-by: Antonin Bas <antonin.bas@broadcom.com >
Kubernetes-commit: 1aec7568e111f5855121e3afacacf431e5f95948
2024-09-25 14:35:03 -07:00
Kubernetes Publisher
ca4a13f6de
Merge pull request #127827 from skitt/client-go-obsolete-plugins
...
client-go: remove obsolete auth plugins from examples
Kubernetes-commit: 8c2255657a7288386dc52acbaba81536bd1ac2d3
2024-10-03 21:30:27 +01:00
Stephen Kitt
105983d93c
client-go: remove obsolete auth plugins from examples
...
The azure and gcp plugins no longer do anything other than point to
the corresponding external credential plugins. Client code should no
longer try to load them, so they should be removed from the examples.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 4531c6de760ec42941d9f509103f1b29c88bfae0
2024-10-03 11:08:52 +02:00
Kubernetes Publisher
3ecd72cc0b
Merge pull request #127099 from jpbetz/object-selectors-ga
...
Add filtered informers tests for CRD field selectors
Kubernetes-commit: c5f2fc05ad5ef3d68f35263f9f965101b371b8cc
2024-10-02 02:00:09 +00:00
Kubernetes Publisher
415a0d6789
Merge pull request #127765 from alvaroaleman/fix
...
Fix accidental breaking change in TypedNewDelayingQueue
Kubernetes-commit: 35065cb5948fca4411007a25642b88d4b0aa60ff
2024-10-01 06:31:25 +00:00
Alvaro Aleman
71640ef872
Fix accidental breaking change in TypedNewDelayingQueue
...
It was added for compatibility reason but ended up getting a `config`
argument by accident, resulting in not actually being compatible, this
change fixes that.
Kubernetes-commit: 6933c1bc229c196e9c71061e19a0cdc76adb1dbc
2024-09-30 18:33:30 -04:00
Kubernetes Publisher
46093399c4
Merge pull request #127689 from mmorel-35/testifylint/expected-actual@k8s.io/client-go
...
fix: enable expected-actual rule from testifylint in module `k8s.io/client-go`
Kubernetes-commit: 93f82d25a5b10577116e4a72f77fb5e635e65490
2024-09-29 08:25:23 +00:00
Kubernetes Publisher
ea4f3d0f6f
Merge pull request #127682 from mmorel-35/testifylint/nil-compare@k8s.io/client-go
...
fix: enable error-nil and nil-compare rules from testifylint in module `k8s.io/client-go`
Kubernetes-commit: 0661f1b5b3b1b292ebadc14a462d1a29e75fbce6
2024-09-28 20:25:09 +00:00
Kubernetes Publisher
2d7a47c42b
Merge pull request #126764 from liggitt/mergo
...
reimplement merge to drop mergo dependency
Kubernetes-commit: ee74baec6e05afde972f1a8705d4f8efe066f120
2024-09-28 08:24:59 +00:00
Kubernetes Publisher
e2b5fa74cd
Merge pull request #127535 from mmorel-35/testifylint/contains@k8s.io/client-go
...
fix: enable contains rule from testifylint in module `k8s.io/client-go`
Kubernetes-commit: a9cc5030f82bb8cc85f432cf64d315f4583afd09
2024-09-28 04:25:59 +00:00
Kubernetes Publisher
374753a638
Merge pull request #127539 from mmorel-35/testifylint/error-is-as@k8s.io/client-go
...
fix: enable error-is-as rule from testifylint in module `k8s.io/client-go`
Kubernetes-commit: 04ff7bd30397a12322b10294953673cca8c02db0
2024-09-28 04:25:58 +00:00
Matthieu MOREL
9d7f486102
fix: enable expected-actual rule from testifylint in module k8s.io/client-go
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
Kubernetes-commit: 8286a69034d58e1ceafd6a6e5590bfcebd920b5b
2024-09-27 07:48:55 +02:00
Matthieu MOREL
84137c2466
fix: enable error-nil and nil-compare rules from testifylint in module k8s.io/client-go
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
Kubernetes-commit: 71ced25f44dce83297388ca8ac0aa60afb93b009
2024-09-27 07:28:52 +02:00
Kubernetes Publisher
dfbc1c7fb1
Merge pull request #125917 from skitt/drop-auth-path-kubernetes-auth
...
Drop references to auth-path and kubernetes_auth
Kubernetes-commit: 61c408a7d90ecceed0687644f17c220e0eb946f0
2024-09-25 20:25:07 +00:00
Kubernetes Publisher
d79bc2831e
Merge pull request #127466 from guozheng-shen/fix-return
...
endpointsLeasesResourceLock and configMapsLeasesResourceLock has been removed
Kubernetes-commit: 36bbdd692f6df76710d9568aebf9778f34dc7061
2024-09-25 16:26:40 +00:00
Lukasz Szaszkiewicz
5395fd1e28
adds watchListEndpointRestrictions for watchlist requests ( #126996 )
...
* endpoints/handlers/get: intro watchListEndpointRestrictions
* consistencydetector/list_data_consistency_detector: expose IsDataConsistencyDetectionForListEnabled
* e2e/watchlist: extract common function for adding unstructured secrets
* e2e/watchlist: new e2e scenarios for convering watchListEndpointRestrict
Kubernetes-commit: ae35048cb0b9b177891aab41346b6d6cc504582f
2024-09-25 12:26:22 +00:00
Kubernetes Publisher
def003bc95
Merge pull request #127573 from benluddy/dynamic-golden-response-test
...
Add test for unintended changes to dynamic client response handling.
Kubernetes-commit: 56071089e274c21db051b4ca400cc1db730e8f42
2024-09-24 17:26:01 +01:00
Matthieu MOREL
baf58c3d79
fix: enable error-is-as rule from testifylint in module k8s.io/client-go
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
Kubernetes-commit: a28c2b6bf8657889c18b683dd42044559a96c304
2024-09-22 12:21:05 +02:00
Matthieu MOREL
c2ecdf4169
fix: enable contains rule from testifylint in module k8s.io/client-go
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
Kubernetes-commit: f50a173bec32cd01b5f9d749c5c8a57aef732d42
2024-09-22 11:57:09 +02:00
guozheng-shen
4d28b8364c
endpointsLeasesResourceLock and configMapsLeasesResourceLock are removed too
...
Kubernetes-commit: a302abb32fc94842c421a4082dfb52be07b16c34
2024-09-19 14:02:52 +08:00
Ben Luddy
08c6c3148c
Add test for unintended changes to dynamic client response handling.
...
The goal is to increase confidence that a change to the dynamic client does not unintentionally
introduce subtle changes to objects returned by dynamic clients in existing programs.
Kubernetes-commit: c8b1037a58ab6ddc3a8b237938eca2f6336abb73
2024-09-16 10:10:49 -04:00
Kubernetes Publisher
fcb1b60516
Merge pull request #127527 from mmorel-35/testifylint/compares@k8s.io/client-go
...
fix: enable compares rule from testifylint in module k8s.io/client-go
Kubernetes-commit: 6bd57ffc5c107a2109b73026515551a81eab33f2
2024-09-22 21:25:59 +01:00
Matthieu MOREL
290f054d9b
fix: enable compares rule from testifylint in module
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
Kubernetes-commit: 407d74fb6a563951045287338a6c64a79fcad8ec
2024-09-21 21:23:07 +02:00
Kubernetes Publisher
8887e59dfb
Merge pull request #126760 from ncdc/ncdc/emeritus
...
Move ncdc to emeritus
Kubernetes-commit: f9a57ba82d05a8b9f442092f0b391ae8bd74287c
2024-09-20 20:24:41 +00:00
Kubernetes Publisher
40a93af788
Merge pull request #127422 from srivastav-abhishek/go-vet-fix
...
Go vet fixes for gotip
Kubernetes-commit: f2700895a4315014c56bfe1db7fb1562a61a8b50
2024-09-20 16:24:41 +00:00
Kubernetes Publisher
4f57ad3204
Merge pull request #127388 from p0lyn0mial/upstream-watchlist-meta-client
...
metadata client: add support for API streaming
Kubernetes-commit: 1874039f8269dde591dc736507f5bca6f4cb8972
2024-09-17 21:54:44 +01:00
Lukasz Szaszkiewicz
b42d55bc18
client-go/metadata: use watchlist
...
Kubernetes-commit: 0912e400cda2dd6ef6950dea15b18f826777ac41
2024-09-16 12:00:11 +02:00
Lukasz Szaszkiewicz
892e9b89df
client-go/metadata: add watchlist method
...
Kubernetes-commit: 3a0aa1093f5e11afb3d729e5799c2de526c20de9
2024-09-16 11:56:54 +02:00
Lukasz Szaszkiewicz
68a23b85b6
client-go/metadata: refactor List method
...
Kubernetes-commit: 1994540ffc5495bc78a4aaa428873d04d4dda442
2024-09-16 11:51:26 +02:00
Kubernetes Publisher
fb6ca040d7
Merge pull request #125186 from liyuerich/newserializer
...
drop deprecated json/yaml newSerializers, use json.NewSerializerWithO…
Kubernetes-commit: e5dd48efd07e8a052604b3073e0fafe7361ca689
2024-09-13 15:34:00 +00:00
Abhishek Kr Srivastav
7141d012f4
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
Kubernetes Publisher
53c7e93bf2
Merge pull request #126999 from pohly/log-client-go-rest-body
...
client-go/rest: contextual logging of request/response
Kubernetes-commit: 9e597655855771bd241508fab4501ac099e29f16
2024-09-12 11:33:59 +00:00
Kubernetes Publisher
c5e16f8d68
Merge pull request #127271 from liggitt/go1.23
...
Update go.mod for go 1.23
Kubernetes-commit: c775fb2238e1ed48f62f02898bbb3ecee993e044
2024-09-12 03:44:00 +00:00
Jordan Liggitt
1431fe0377
Pin godebug default to go1.23
...
Kubernetes-commit: 102a9dbab1764e8793d0237b25143fa49cd96831
2024-09-10 12:22:40 -04:00
Jordan Liggitt
9daa93c17a
Update go.mod to go 1.23
...
Kubernetes-commit: 65ef53139012dee36c08f558604dea48af170e11
2024-09-10 12:07:06 -04:00
Kubernetes Publisher
8d0bbdfdcc
Merge pull request #126809 from ryantxu/fix-client-get-list
...
client-go(dynamic): avoid panic when subresource is a list
Kubernetes-commit: 8819dfb639706bc3ce87cdd902ef685677c221a5
2024-09-10 23:34:03 +00:00
Ryan McKinley
fae3dcdbf6
avoid panic when subresource is a list
...
Kubernetes-commit: 2e3b937dcdb02cab74213a5608cc4dac39c6423e
2024-09-09 09:40:38 +03:00
Kubernetes Publisher
51f5488cb9
Merge pull request #115834 from stlaz/remote-uid
...
RequestHeader authentication: add UID to recognized request headers
Kubernetes-commit: 9f01cd7b28fdbc8a1ceb9ec371fd817551659ee5
2024-09-05 15:34:35 +00:00
Joe Betz
1d3f0e5617
Add dynamic informers tests for field and label selectors
...
Kubernetes-commit: 6ba426c0c09c30411a7c6121044d7b1db1722776
2024-09-03 12:12:30 -04:00
Patrick Ohly
3d02d42465
client-go/rest: contextual logging of request/response
...
Logging in rest.Request.Body cannot be made context-aware without an API
change. Such a change is complicated if done in a backwards-compatible
fashion (must change lots of callers in Kubernetes) and prohibitive if not (all
callers of Body would have to pass a context).
Instead, logging of the request body gets moved into the functions which send
the request. This is a change of behavior, but it is limited to log levels >= 8
and thus should have no impact in production.
A request which gets sent multiple times will also log the body multiple
times. This might even be a good thing because it serves as reminder what is
being sent when it is being sent.
While at it, stack backtracing gets enhanced so that the caller of the REST API
is logged and tests for the new behavior get added.
Kubernetes-commit: 57f9b7c7a2412865e7817dbf7638881b00ac9721
2024-08-29 19:44:55 +02:00
Jordan Liggitt
1b9b709183
Update vendor
...
Kubernetes-commit: 745ae75a15cad2f1c5da5518c00f2eb366ffb786
2024-08-17 21:42:00 -04:00
Jordan Liggitt
a398951ea1
Implement limited merge function
...
Kubernetes-commit: 4d8cbad58e21e701af735c5ffa1a9fd3393de096
2024-08-17 21:27:26 -04:00
Jordan Liggitt
56b7eaf344
Narrow merge interface to merging the same types
...
Kubernetes-commit: 9fde1c6a85c1390c7be7705385eb99b3ebc8e06a
2024-08-17 20:43:53 -04:00
Jordan Liggitt
b3dca7eb8a
Isolate mergo use, add test coverage and error checking
...
Kubernetes-commit: 3b3886a4509a83aff0afe7ad42da9b7819a17aed
2024-08-17 16:42:11 -04:00
Andy Goldstein
da3ab4e935
Move ncdc to emeritus
...
I am moving myself to emeritus as I am now firmly on the end-user side
of things.
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
Kubernetes-commit: 3ab816dcabf37acda33c665ab5aa85f1f6163bc1
2024-08-17 13:00:07 -04:00
Stephen Kitt
e996fa7a55
Drop references to auth-path and kubernetes_auth
...
These are long gone, removed in 2016:
* AuthPath removal: https://github.com/kubernetes/kubernetes/pull/29216
* Flag removal: https://github.com/kubernetes/kubernetes/pull/40048
This removes the remnants from clientcmd, mostly in the comments
describing how the configuration is loaded.
Since getServerIdentificationPartialConfig can no longer fail (it
copies fields from one struct to another), this drops the error
return, along with the error handling in the caller.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 8a8238ba7f850241de9c5cc4b22fa1a6b6a19480
2024-07-05 14:55:44 +02:00
liyuerich
68d318f3aa
drop deprecated json/yaml newSerializers, use json.NewSerializerWithOptions instead
...
Signed-off-by: liyuerich <yue.li@daocloud.io >
Kubernetes-commit: 3c9309db463679c348934429d8487d190ed5e64a
2024-05-29 19:00:00 +08:00
Stanislav Láznička
9dd4d6ed78
client-go: add the UID to the auth-proxy roundtripper
...
Kubernetes-commit: 2cc0370169ea1fcf45429f9586e0ffd4ab32ed26
2023-02-16 14:01:53 +01:00
Kubernetes Publisher
4fca7081f8
Merge pull request #127011 from jpbetz/format-only-imports
...
gengo performance: Speed up update-codegen.sh by switching to FormatOnly in gengo
Kubernetes-commit: 95956671d8da7783a726133709b8085f56dda052
2024-09-04 01:17:35 +01:00
Joe Betz
2b735405b2
generate
...
Kubernetes-commit: 2595aa13098355414a558b2d97c58d505ca7b6c2
2024-09-03 14:25:56 -04:00
Kubernetes Publisher
bc8a8ba48a
Merge pull request #127035 from alvaroaleman/rename-TypedNewDelayingQueue
...
Rename TypedNewDelayingQueue to NewTypedDelayingQueue
Kubernetes-commit: df577d7fbc4c76b4b660007565fae86b48a1086f
2024-08-31 19:33:10 +00:00
Alvaro Aleman
c311da2251
Rename TypedNewDelayingQueue to NewTypedDelayingQueue
...
This change renames NewTypedDelayingQueue to NewTypedDelayingQueue to
stay consistent with the naming scheme in the package. A
NewTypedDelayingQueue constructor is kept for backwards compatibility
but marked as deprecated.
Kubernetes-commit: 45da5dc30ecf0ba4c4b44befd96b8617278c496b
2024-08-31 12:11:20 -04:00
Kubernetes Publisher
388eba62e1
Merge pull request #127023 from aimuz/fix-lead
...
leaderelection: replace deprecated wait.PollImmediateUntil with wait.PollUntilContextTimeout
Kubernetes-commit: 4cfdad0935cfb796d4219dbabe8eba669614df39
2024-08-30 23:33:14 +00:00
Kubernetes Publisher
6c241d51b1
Merge pull request #127001 from skitt/applyconfiguration-gen-ambiguous
...
Handle ambiguous fields in applyconfiguration-gen
Kubernetes-commit: ed75e55c44f7bfbcf93757b86ae57eaceb06245a
2024-08-30 19:33:15 +00:00
Kubernetes Publisher
d50e2a9641
Merge pull request #126265 from tnqn/fix-watch-error
...
Enrich the error returned from Request.Watch method
Kubernetes-commit: fd58143ed2569c7eb86f46649803d1d13abc9583
2024-08-30 15:33:12 +00:00
aimuz
4379fade33
leaderelection: replace deprecated wait.PollImmediateUntil with wait.PollUntilContextTimeout
...
This commit refactors the `renew` function in the leader election package to replace
the deprecated `wait.PollImmediateUntil` with `wait.PollUntilContextTimeout`.
This change simplifies the context handling by removing the need for an additional
timeout context and its cancellation.
The previous implementation created a timeout context for each retry period,
which added unnecessary complexity. The new implementation directly passes the parent
context to the retry function, ensuring that the timeout is handled within `PollUntilContextTimeout`.
This change also ensures that the context passed to `tryAcquireOrRenew` and
`tryCoordinatedRenew` is consistent, improving the readability and maintainability of the code.
Kubernetes-commit: 3d2f498aa31cb2e90bcfc372b7930aed0604fbef
2024-08-30 19:25:45 +08:00
Kubernetes Publisher
9db830e3b0
Merge pull request #126727 from jpbetz/fix-fake-apply-name
...
Stamp fake client apply reuqests with name from action
Kubernetes-commit: 45804907d2025747452ac2573a60d330cc930a49
2024-08-29 19:33:50 +00:00
Stephen Kitt
d7a6826d37
Run codegen
...
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 689d6ef7a3a44405909f6007b3a91eff458b95a2
2024-08-29 18:16:41 +02:00
Kubernetes Publisher
c7951255f6
Merge pull request #126954 from deads2k/retry-http2
...
automatically retry GET requests when http2 connection lost
Kubernetes-commit: aa4515344794526547b8344513f7785e1c46841d
2024-08-28 23:39:23 +00:00
Kubernetes Publisher
0b9a7d2f21
Merge pull request #124747 from l-technicore/update_event_spam_key
...
Enhance Event Spam Key to Preserve Important Events During Reconciliations
Kubernetes-commit: ad879205486a669dbaa5f5c49c247db7ea33fd33
2024-08-28 07:36:19 +00:00
Kubernetes Publisher
dec9eaa92f
Merge pull request #126787 from Jefftree/update-kube-openapi
...
Bump k8s.io/kube-openapi and k8s.io/gengo
Kubernetes-commit: f1a922c8e6f951381450ee3c2922ca018f14a82e
2024-08-27 23:33:26 +00:00
David Eads
d69e298e04
automatically retry GET requests when http2 connection lost
...
Kubernetes-commit: 332a094e231942b8b6c2052d078241ddc698fe74
2024-08-27 16:32:32 -04:00
Jefftree
aa547ee1e5
re-vendor k8s.io/kube-openapi
...
Kubernetes-commit: ea2bdb6334ec1a2821a96163d83480d5fdb1861b
2024-08-27 01:58:39 +00:00
Kubernetes Publisher
46965213e4
Merge pull request #126716 from stlaz/tlscachekey_comparable
...
ensure tlsCacheKey is strictly comparable to avoid runtime panics
Kubernetes-commit: 4f10b245031193c1c1679573201810ffac9191a4
2024-08-20 03:33:19 +00:00
Kubernetes Publisher
79827ce1df
Merge pull request #126038 from mprahl/retry-watcher-forbidden
...
Stop the RetryWatcher when failing due to permissions issue
Kubernetes-commit: e54c8ef2024e638d721242224f6f925b15ee43f5
2024-08-19 15:33:19 +00:00
Joe Betz
86c96117c6
Use Fatalf for non-recoverable errors in test
...
Kubernetes-commit: 5784e58446b7dd2aca0af0e84e43395c9391ae03
2024-08-19 11:18:04 -04:00
Kubernetes Publisher
78c1586020
Merge pull request #126655 from tklauser/log-spelling-fix
...
client-go: fix typo in leaderelection error log message
Kubernetes-commit: de521a91910e67ee3bcee006e75f694391b1271d
2024-08-18 22:25:33 +00:00
Joe Betz
908d899011
Stamp fake client apply reuqests with name from action
...
Kubernetes-commit: 5f1c7ae6346f9028fef77b76e5555aa37f1fc39a
2024-08-15 21:24:28 -04:00
Stanislav Láznička
d63a65fbe7
ensure tlsCacheKey is strictly comparable to avoid runtime panics
...
Kubernetes-commit: 12ae218bfe8c194786737220759cbb2e8e3e3a98
2024-08-15 15:50:22 +02:00
Kubernetes Publisher
690fd5274d
Merge pull request #126545 from yangjunmyfm192085/updatepersistentVolumeClaimRetentionPolicy
...
Update incorrect description of persistentVolumeClaimRetentionPolicy
Kubernetes-commit: 6a478b4306ea9ae3b8f86bd1ef71072d9a03be22
2024-08-14 06:12:05 +00:00
Tobias Klauser
ae43527480
client-go: fix typo in leaderelection error log message
...
Kubernetes-commit: 99a90df3d0403315f26d643b90ab6339c22602c8
2024-08-13 11:21:57 +02:00
杨军10092085
1a951c2887
Updated incorrect description of persistentVolumeClaimRetentionPolicy
...
Kubernetes-commit: 56bbae4807989cd43eff17cf9fa93f7b54c087bd
2024-08-05 21:30:25 +08:00
Kubernetes Publisher
71959c526d
Merge pull request #126405 from sttts/sttts-sync-informerfactory-start
...
Call non-blocking informerFactory.Start synchronously to avoid races
Kubernetes-commit: ba6141a1457cf8dad08fb08724b390f9dfd84489
2024-07-27 10:50:48 -07:00
Jefftree
b6f7bdf3b8
informers: add comment that Start does not block
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
Kubernetes-commit: cd69335542fd961b69b4e83b6433d1b40d2f4439
2024-07-27 15:47:24 +00:00
Dr. Stefan Schimanski
f71a5cc5d3
Call non-blocking informerFactory.Start synchronously to avoid races
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
Kubernetes-commit: c7a1fa432a87579895eac4b3873162d5f1dba7f5
2024-07-27 16:13:16 +02:00
Kubernetes Publisher
4536e5a391
Merge pull request #124012 from Jefftree/le-controller
...
Coordinated Leader Election
Kubernetes-commit: 5f5c02da51cd3146f30c6ee56013c983f4999d9c
2024-07-25 21:07:49 +00:00
Kubernetes Publisher
93c6a5bf50
Merge pull request #126353 from liggitt/fix-vendor
...
Fix verify-vendor script to check all go.mod and go.sum files
Kubernetes-commit: 9edabd617945cd23111fd46cfc9a09fe37ed194a
2024-07-25 17:07:42 +00:00
Sebastiaan van Stijn
6a9911a398
revendor dependencies
...
I was workinng on updating a dependency, and noticed that running
hack/update-vendor.sh resulted in a diff. Comitting the result
as a PR.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Kubernetes-commit: aeb607443dd9b8ee378ee10209e9b446256f3ee2
2024-07-25 08:52:23 +02:00
Kubernetes Publisher
fe54892e0c
Merge pull request #126243 from SergeyKanzhelev/devicePluginFailures
...
Implement resource health in pod status (KEP 4680)
Kubernetes-commit: 5af1710d90d2396f6305c73fdf7df3a1be0c2fd0
2024-07-24 05:07:09 +00:00
Jefftree
825f52e194
Change PingTime to be persistent
...
Kubernetes-commit: 0c774d0b1f79b0b0a6d73102a78c84853220f036
2024-07-23 19:19:12 +00:00
Jefftree
f45c45195a
fix ordering issue in candidates
...
Kubernetes-commit: e1ea24a171ca6ba2d0f184abbd019ab3cf4a93c4
2024-07-23 17:09:37 +00:00
Jefftree
18dd587a4b
feedback: leasecandidate clients
...
Kubernetes-commit: fac758164029e278e9bda924090ed078bb6514c8
2024-07-23 14:28:08 +00:00
Dr. Stefan Schimanski
1f27757b2f
Review feedback
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
Kubernetes-commit: 68226b0501996fc86c9c2bddb7d61e6a64c91304
2024-07-23 14:52:25 +02:00
Quan Tian
009514ecc1
Enrich the error returned from Request.Watch method
...
The Error method of the error returned from Request.Watch was "unknown"
even the server returned clear message in the Status struct. It was
because Request.Watch used the Result's err member directly, which is an
unstructured error from the response which the Result object may use if
the caller did not return a structured error.
The patch fixes it by calling the Result's Error method instead, which
returns the structured error when it's present.
It also removes the wrong expectation about events.
Kubernetes-commit: 596c5696c64023808af164284263647d795b0ac2
2024-07-22 17:13:43 +08:00
Sergey Kanzhelev
79fd7abf82
generated files
...
Kubernetes-commit: 2253b53b585e3405c5ce2dda2921db3a0afa02c9
2024-07-22 05:20:58 +00:00
Kubernetes Publisher
ac9204c619
Merge pull request #126145 from carlory/kep-3751-api
...
[KEP-3751] Promote VolumeAttributesClass to beta
Kubernetes-commit: c2fdeca4ab81336daf20c91b810c9685918c3d58
2024-07-24 01:07:04 +00:00
Kubernetes Publisher
dcfcc90795
Merge pull request #126125 from mprahl/stop-idempotent
...
Allow calling Stop multiple times on RetryWatcher
Kubernetes-commit: fc03f3e74c3d891e62b347c518b3197b62e9532c
2024-07-23 20:03:59 +00:00
Kubernetes Publisher
bad8f77ca6
Merge pull request #126091 from seans3/ws-err-extra-info
...
Adds extra error information from response to bad handshake error when possible
Kubernetes-commit: f753a444a5e0b245d2cf8433f7d8bb915c12363e
2024-07-23 02:36:42 +00:00
Jefftree
20993758b7
CLE controller and client changes
...
Kubernetes-commit: c47ff1e1a9aec44f262674eb6cdbabf80512d981
2024-07-21 20:06:03 +00:00
Jefftree
8a2bbd0393
Coordinated Leader Election Alpha API
...
Kubernetes-commit: 3999b98c8840e41acaa19d94e88f46d1fbb0c1b3
2024-07-21 20:02:00 +00:00
carlory
9dea255e12
Promote VolumeAttributesClass to beta
...
Kubernetes-commit: 0260c7d023551f85621049ca604a4fd5110ba0a9
2024-07-17 15:55:06 +08:00
mprahl
001900e4e9
Allow calling Stop multiple times on RetryWatcher
...
This makes the Stop method idempotent so that if Stop is called multiple
times, it does not cause a panic due to closing a closed channel.
Signed-off-by: mprahl <mprahl@users.noreply.github.com >
Kubernetes-commit: a54ba917be42c941edf1a0359dced04e1a5e1d6f
2024-07-16 10:55:26 -04:00
Sean Sullivan
3aff10e3cd
Adds extra error information from response to bad handshake error when possible
...
Kubernetes-commit: f387f0b69acb34143f76275aacb955fabb555bd7
2024-07-14 19:46:16 -07:00
Kubernetes Publisher
a9affb4c9c
Merge pull request #125488 from pohly/dra-1.31
...
DRA for 1.31
Kubernetes-commit: d21b17264e5a554724aa3ad032536630bcfd5b3f
2024-07-22 22:36:56 +00:00
mprahl
2176e80333
Stop the RetryWatcher when failing due to permissions issue
...
When the client does not have permission to watch a resource, the
RetryWatcher continuously retried. In this case, it's better to send an
error and stop retrying to let the caller handle this case since this is
not a transient error that can be recovered without user intervention.
This is particularly helpful in applications that leverage a user
provided service account and the application needs to notify the user to
set the correct permissions for the service account.
This also accounts for invalid credentials from the watch client.
Signed-off-by: mprahl <mprahl@users.noreply.github.com >
Kubernetes-commit: db2218d16e3fb2a30b21ffa0f307beb515d8394b
2024-07-11 13:50:52 -04:00
Patrick Ohly
a7db3ade62
DRA: new API for 1.31
...
This is a complete revamp of the original API. Some of the key
differences:
- refocused on structured parameters and allocating devices
- support for constraints across devices
- support for allocating "all" or a fixed amount
of similar devices in a single request
- no class for ResourceClaims, instead individual
device requests are associated with a mandatory
DeviceClass
For the sake of simplicity, optional basic types (ints, strings) where the null
value is the default are represented as values in the API types. This makes Go
code simpler because it doesn't have to check for nil (consumers) and values
can be set directly (producers). The effect is that in protobuf, these fields
always get encoded because `opt` only has an effect for pointers.
The roundtrip test data for v1.29.0 and v1.30.0 changes because of the new
"request" field. This is considered acceptable because the entire `claims`
field in the pod spec is still alpha.
The implementation is complete enough to bring up the apiserver.
Adapting other components follows.
Kubernetes-commit: 91d7882e867da25ae8014f679db32b20e35e89b4
2024-06-18 17:47:29 +02:00
Patrick Ohly
e0bc24e153
DRA: remove "sharable" from claim allocation result
...
Now all claims are shareable up to the limit imposed by the size of the
"reserverFor" array.
This is one of the agreed simplifications for 1.31.
Kubernetes-commit: 8a629b9f150c1042e2918043e6012a4f22742b19
2024-06-13 18:43:17 +02:00
Patrick Ohly
a7f430b8bb
DRA: remove immediate allocation
...
As agreed in https://github.com/kubernetes/enhancements/pull/4709 , immediate
allocation is one of those features which can be removed because it makes no
sense for structured parameters and the justification for classic DRA is weak.
Kubernetes-commit: de5742ae83c8d77268a7caf5f3b1f418c4a13a84
2024-06-13 17:25:39 +02:00
Patrick Ohly
91ff2f6ea5
DRA: bump API v1alpha2 -> v1alpha3
...
This is in preparation for revamping the resource.k8s.io completely. Because
there will be no support for transitioning from v1alpha2 to v1alpha3, the
roundtrip test data for that API in 1.29 and 1.30 gets removed.
Repeating the version in the import name of the API packages is not really
required. It was done for a while to support simpler grepping for usage of
alpha APIs, but there are better ways for that now. So during this transition,
"resourceapi" gets used instead of "resourcev1alpha3" and the version gets
dropped from informer and lister imports. The advantage is that the next bump
to v1beta1 will affect fewer source code lines.
Only source code where the version really matters (like API registration)
retains the versioned import.
Kubernetes-commit: b51d68bb87ba4fa47eb760f8a5e0baf9cf7f5b53
2024-06-14 12:40:48 +02:00
Kubernetes Publisher
82af755eff
Merge pull request #126231 from seans3/websocket-https-proxy-fix
...
Falls back to SPDY for gorilla/websocket https proxy error
Kubernetes-commit: 90a84704d6e103c0a7b5cdaa8f6626a134079147
2024-07-20 22:32:50 +00:00
Sean Sullivan
6e31289fcf
moving for easier cherry-pick
...
Kubernetes-commit: bc526472515e1a01d41e5a94db2b74462545c984
2024-07-20 05:29:57 -07:00
Sean Sullivan
8108d4122f
Falls back to SPDY for gorilla/websocket https proxy error
...
Kubernetes-commit: 9d560540c5268e0e2aebf5306907494cf522c260
2024-07-19 12:04:41 -07:00
Kubernetes Publisher
5130bd9e78
Merge pull request #126207 from thockin/ingress-backend-port-atomic
...
Make ServiceBackendPort an atomic struct
Kubernetes-commit: 77e12aeca92c3c0fe2c1fc6ce7f0e17ba796c6fd
2024-07-19 06:33:43 +00:00
Kubernetes Publisher
80707e5e44
Merge pull request #125660 from saschagrunert/oci-volumesource-api
...
[KEP-4639] Add `ImageVolumeSource` API
Kubernetes-commit: 595927da21da34f5fed62e237e7a73d9635ac621
2024-07-18 18:33:21 +00:00
Kubernetes Publisher
5742b23135
Merge pull request #124859 from morlay/master
...
Remove json:",omitempty" where json:",inline" specified.
Kubernetes-commit: 73198f893c74531005fe7284eee5a9dc0db34ff7
2024-07-18 18:33:19 +00:00
Tim Hockin
cd892da09f
Make ServiceBackendPort an atomic struct
...
This allows different actors to force ownership of it without having to
explicitly unset the other field.
Kubernetes-commit: 7313990f61881c676c1f5d68365144a1d77cced3
2024-07-18 10:31:37 -07:00
Kubernetes Publisher
6dde7fe449
Merge pull request #126073 from a7i/fake-apply-scale-subresource
...
fix: fake clientset ApplyScale subresource from 'status' to 'scale'
Kubernetes-commit: d0545c8eb4ca5e8bb7704b5f51197b5082964e85
2024-07-18 02:33:01 +00:00
Kubernetes Publisher
37121f3f00
Merge pull request #125470 from everpeace/kep-3619-SupplementalGroupsPolicy-e2e
...
KEP-3619: Add NodeStatus.Features.SupplementalGroupsPolicy API and e2e
Kubernetes-commit: fc3abdaf2dbb11c84033635b1d26f12fe12ef001
2024-07-16 22:40:50 +00:00
Amir Alavi
eab51c4031
fix: fake clientset ApplyScale subresource from 'status' to 'scale'
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
Kubernetes-commit: 872c3442501ca479f399d2f9060b72d228234b30
2024-07-13 12:23:02 -04:00
Morlay
9ab93c0777
Remove json:",omitempty" where json:",inline" specified.
...
Signed-off-by: Morlay <morlay.null@gmail.com >
Kubernetes-commit: f9b69ce10847a31626c364d3d86bf361b16456b2
2024-06-28 23:16:51 +08:00
Sascha Grunert
485ae13a58
Add ImageVolumeSource API
...
Adding the required Kubernetes API so that the kubelet can start using
it. This patch also adds the corresponding alpha feature gate as
outlined in KEP 4639.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
Kubernetes-commit: f7ca3131e0922563a561134b4ed9eed8d2bdd2c4
2024-06-24 10:34:43 +02:00
Shingo Omura
1ea671aac4
KEP-3619: API: add NodeFeatures.SupplementalGroupsPolicy in NodeStatus
...
KEP-3619: don't capitalize comment in K8S API
KEP-3619: fix typos and grammatical ones in K8s API
KEP-3619: rephrase NodeFeatures, NodeHandlerFeatures in K8s API
Kubernetes-commit: 5d75660dc11ff443ebab2551aed8e56a54cc218d
2024-06-22 18:43:31 +09:00
Kubernetes Publisher
59ef8e11c6
Merge pull request #126034 from sohankunkerkar/add-usernamespaces
...
api: add user namespaces field to NodeRuntimeHandlerFeatures
Kubernetes-commit: f36a821de828372a5f99528d21f309f75e17d043
2024-07-16 02:32:45 +00:00
Peter Hunt
21b1828b05
api: add user namespaces field to NodeRuntimeHandlerFeatures
...
Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com >
Kubernetes-commit: 86240aaca17e0bfbdbaec78bf2604f8623c73615
2024-05-31 13:30:45 -04:00
Kubernetes Publisher
0724a9928f
Merge pull request #125305 from p0lyn0mial/upstream-dynamic-client-uses-watch-list
...
dynamic client: add support for API streaming
Kubernetes-commit: 06ec6ba05df1edef90de9a4a676ba31b03a770ce
2024-07-15 18:32:37 +00:00
Kubernetes Publisher
34751e103a
Merge pull request #126018 from aroradaman/bump-k8s-utils
...
bump k8s.io/utils
Kubernetes-commit: 46aa8959a0659e22c924bb52b38385d441715b2b
2024-07-13 18:32:32 +00:00
Kubernetes Publisher
b6a1b42a24
Merge pull request #126057 from thockin/make-pod-ip-host-ip-required
...
make PodIP.IP and HostIP.IP required.
Kubernetes-commit: a87612b6676723b34a5b3d2d80ab4e04552221ae
2024-07-13 02:40:23 +00:00
Daman Arora
37c2760fd9
bump k8s.io/utils
...
Signed-off-by: Daman Arora <aroradaman@gmail.com >
Kubernetes-commit: c6a129b715646163ef83f94245c3756cbc191c42
2024-07-12 14:40:22 +05:30
Lukasz Szaszkiewicz
732dd289a0
dynamic client: add support for API streaming
...
Kubernetes-commit: d778356bc6a057ae41bee4577e568293a25fce9b
2024-07-11 13:49:29 +02:00
Lan Liang
fa8c68e986
make PodIP.IP and HostIP.IP required.
...
Fields used as map keys must be required or defaulted when used in a CRD schema.
see https://github.com/kubernetes/kubernetes/issues/124540
Signed-off-by: Lan Liang <gcslyp@gmail.com >
Kubernetes-commit: 73613b48c6472c71eb6cb6ff12a0d5acb1beadcc
2024-05-16 08:36:27 +00:00
Kubernetes Publisher
53b8be7cea
Merge pull request #125802 from mmorel-35/testifylint/len+empty
...
fix: enable empty and len rules from testifylint on pkg and staging package
Kubernetes-commit: 2d4514e1690dc5babb144542da799f6b331afd1b
2024-07-12 06:32:46 +00:00
Kubernetes Publisher
7f36d816ee
Merge pull request #125944 from timofurrer/fix/error-msg-type
...
Fix typo in type name of watch decode error
Kubernetes-commit: 6a45c8b7d1ea6e7ea8677e6fb7ee9394b21d808d
2024-07-10 18:32:46 +00:00
Timo Furrer
55c0e2c777
Fix typo in type name of watch decode error
...
Kubernetes-commit: fed49d06aac3f003f7b2df35ffed6b2f16ef2548
2024-07-08 07:52:38 +02:00
Kubernetes Publisher
354ed1bc9f
Merge pull request #125922 from dims/update_otel_27
...
Update opentelemetry dependencies to the latest release (Take 2)
Kubernetes-commit: 07cc20a7509e7322e6ebb04e60d8274f27d6fdd7
2024-07-07 02:32:31 +00:00
Kubernetes Publisher
127e4c3902
Merge pull request #125887 from fxierh/fakediscovery-fix
...
[client-go] Enable FakeDiscovery client to simulate errors by fixing error handling
Kubernetes-commit: 40225a788c299352346db3751ecd48a333d98fd0
2024-07-07 02:32:27 +00:00
Davanum Srinivas
e57f162031
update OpenTelemetry dependencies and grpc
...
This update dropped the otelgrpc → cloud.google.com/go/compute dependency,
among others. This dropped out because genproto cleaned up it's dependencies
on google cloud libraries, and otel updated - details in #113366 .
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Co-Authored-By: David Ashpole <dashpole@google.com >
Kubernetes-commit: ff7942be83ed0c0aaa8c258e8e2b9965d383935c
2024-07-05 12:10:07 -04:00
Feilian Xie
c45bc431c3
Return the error returned by Invokes so the FakeDiscovery client is able to simulate any error with reactors.
...
Signed-off-by: Feilian Xie <fxie@redhat.com >
Kubernetes-commit: 33557a2f6c82d10fa6a459d2ebac56d6a2670492
2024-07-04 17:29:57 +08:00
Kubernetes Publisher
ab86e03da4
Merge pull request #125021 from aojea/servicecidrbeta
...
KEP-1880 Multiple Service CIDRs: Graduate to Beta (2/2)
Kubernetes-commit: 93d56511e684369479f23aae15617e483cda5719
2024-06-30 18:26:25 +00:00
Kubernetes Publisher
4dec662fe8
Merge pull request #125116 from pohly/dra-one-of-source
...
DRA: remove "source" indirection from v1 Pod API
Kubernetes-commit: ac9aec9f9b1229c1560d682475dc5c6f38f6beb3
2024-06-28 22:26:13 +00:00
Matthieu MOREL
acc5917341
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
Kubernetes Publisher
ae071bc75f
Merge pull request #125759 from dims/bump-prometheus/common-v0.55.0
...
Bump `prometheus/common` to v0.55.0
Kubernetes-commit: 4c44efe81c9a26d66cdf88e917aeee75dad12299
2024-06-28 06:26:03 +00:00
Kubernetes Publisher
4b5beb66d4
Merge pull request #124917 from vinayakankugoyal/kep4633
...
KEP-4633: Only allow anonymous auth for configured endpoints.
Kubernetes-commit: 522e2e50667f25b759a10183eec1bb7d4683ec27
2024-06-28 06:26:00 +00:00
Kubernetes Publisher
ef4b2f63d9
Merge pull request #125766 from dims/update-moby/spdystream-to-v0.4.0
...
Update moby/spdystream to v0.4.0
Kubernetes-commit: 742b2f70b9e5c1ec03682ad25dc76fdcc7109310
2024-06-27 22:25:47 +00:00
Kubernetes Publisher
96c49b6987
Merge pull request #125600 from thockin/plus_default_deprecated_volumes
...
Use +default for deprecated volume types
Kubernetes-commit: df20694c62c6b5e6d177dcd40936080d49f42865
2024-06-27 18:26:23 +00:00
Davanum Srinivas
a2665afaf6
Update moby/spdystream to v0.4.0
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 377a3f7ec4dc2b5e09e0aadb651999d400c31538
2024-06-27 13:07:47 -04:00
Davanum Srinivas
66473c1f2b
Bump prometheus/common to v0.55.0
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 35ccdc8b35f1c4346071d4ff0efecdd7a6bcdecc
2024-06-27 07:58:24 -04:00
Kubernetes Publisher
b043b561b4
Merge pull request #125745 from BenTheElder/ping-ping
...
bump github.com/moby/spdystream to v0.3.0
Kubernetes-commit: 11446a394fb851d3496d31d96a67f8fcba6348e3
2024-06-26 22:26:46 +00:00
Benjamin Elder
11d6807603
bump github.com/moby/spdystream to v0.3.0
...
picks up fix for data-race in Ping
Kubernetes-commit: c5aa8fdc711982dd589a9ac940b05297cc46b4a5
2024-06-26 12:27:14 -07:00
Kubernetes Publisher
88829a42b7
Merge pull request #125731 from dashpole/revert_otel
...
Revert "Update opentelemetry dependencies to the latest release."
Kubernetes-commit: a4b8d0faa8e7d3227cbdda39241998d38f1c294e
2024-06-26 18:26:23 +00:00
David Ashpole
0fbd594bc2
Revert "update OpenTelemetry dependencies"
...
This reverts commit 82e9ce79c763f1028f542b1246114082430e6b20.
Kubernetes-commit: e94047c9002c17a3b76513c3cde2d53aed39b7fb
2024-06-26 14:13:33 +00:00
Kubernetes Publisher
4e7651c220
Merge pull request #125706 from jpbetz/fix-fixture-test
...
Remove test dependency on swagger.json to fix client-go tests
Kubernetes-commit: 10e3ec8975735b4f6c5c7d09ec8041e71be26313
2024-06-26 06:28:57 +00:00
Kubernetes Publisher
8ffa531474
Merge pull request #125537 from seans3/rc-fallback-log
...
Adds logging during remote command executor fallback
Kubernetes-commit: d48a3036be80e54c07d2ae5ee30669f9dda393e5
2024-06-26 06:28:55 +00:00
Kubernetes Publisher
6090471cca
Merge pull request #125669 from benluddy/cbor-bump-v2.7.0
...
KEP-4222: Bump github.com/fxamacker/cbor/v2 to v2.7.0.
Kubernetes-commit: beb48b7f5df83cd56275f471e52ef588ba845093
2024-06-26 06:28:54 +00:00
Joe Betz
dd940936ee
Remove test dependency on swwagger.json to fix client-go repo
...
Kubernetes-commit: 1095af88e7d30198e13299ea90c5f81b95ec8a3b
2024-06-25 13:31:03 -04:00
Ben Luddy
91774658e7
Bump github.com/fxamacker/cbor/v2 to v2.7.0.
...
Kubernetes-commit: dbe4c093d9f5b85fa509042556edf61fb6503b22
2024-06-24 09:49:40 -04:00
Kubernetes Publisher
430e755e85
Merge pull request #125575 from dashpole/update_otel_27
...
Update opentelemetry dependencies to the latest release.
Kubernetes-commit: 535e833aef9718d1a19a8f71b3a4639fc92aa855
2024-06-26 06:28:52 +00:00
Kubernetes Publisher
2923011bfd
Merge pull request #125560 from jpbetz/apply-gen-fake
...
Add field management support to fake client-go typed client
Kubernetes-commit: d236a9127fe36317bb35854d63b275d7efdb399e
2024-06-26 06:28:48 +00:00
Joe Betz
c4145a9c20
Generate code
...
Kubernetes-commit: 7772769d19a82a26aa91181e0804ff2ccbdd843c
2024-06-24 15:58:35 -04:00
Joe Betz
2c866525dd
Add field tracker support to client fake fixtures
...
Kubernetes-commit: 75d6f024326dadc13807b8221bedd8da7924c2ba
2024-06-24 15:42:29 -04:00
Joe Betz
96f66e9159
Support options for all client fake actions
...
Kubernetes-commit: 599f03c72264d5149ae63b1c9eccb33e8b32e900
2024-06-24 15:41:38 -04:00
Kubernetes Publisher
b9309ac26b
Merge pull request #125531 from pohly/klog-update
...
dependencies: klog v2.130.1
Kubernetes-commit: 44446e1c9c2e7f50061f2a998c76f6f55f3ca737
2024-06-20 18:10:25 +00:00
Tim Hockin
af26305389
Use +default for now deprecated ScaleIO volume
...
Kubernetes-commit: a074dd6f2e3ce394b767c109701045d13a56b6e2
2024-06-19 12:18:33 -07:00
Tim Hockin
f9b8f88e7d
Use +default for now deprecated AzureDisk volume
...
Kubernetes-commit: 0f5ab4beec4d05138ed3fff5a5b2a7e42bf75d0c
2024-06-19 11:45:22 -07:00
Tim Hockin
90902b591f
Use +default for now deprecated ISCSI volume
...
Kubernetes-commit: 333c02cf28baa02a234b977f62a9a51f41c98572
2024-06-19 11:28:55 -07:00
Tim Hockin
64e74f9623
Use +default for now deprecated RBD volume
...
THis leaves us less hand-written code and a better schema.
Kubernetes-commit: 03f0110b953a171bfc985fc65a40ffe6820a6007
2024-06-19 11:15:41 -07:00
David Ashpole
fd8492c66f
update OpenTelemetry dependencies
...
Kubernetes-commit: 82e9ce79c763f1028f542b1246114082430e6b20
2024-06-19 00:43:16 +00:00
Sean Sullivan
0b664571bb
Adds logging during remote command executor fallback
...
Kubernetes-commit: d8269e5a394dfa0116e8baeb7aac0a82eb430e5e
2024-06-16 13:51:09 -07:00
Patrick Ohly
db174bf2ff
dependencies: klog v2.130.1
...
Kubernetes-commit: f98e5d1dfcaa37fee2c394436583038cf3ff1e72
2024-06-16 14:04:43 +02:00
Kubernetes Publisher
e1202c7e82
Merge pull request #121439 from skitt/generic-client-go
...
Use generics to share code in client-go implementations
Kubernetes-commit: 33829b68b5040f23e04ba5e68ed76792d68d698f
2024-06-19 22:10:21 +00:00
Patrick Ohly
fdffb523da
DRA: remove "source" indirection from v1 Pod API
...
This makes the API nicer:
resourceClaims:
- name: with-template
resourceClaimTemplateName: test-inline-claim-template
- name: with-claim
resourceClaimName: test-shared-claim
Previously, this was:
resourceClaims:
- name: with-template
source:
resourceClaimTemplateName: test-inline-claim-template
- name: with-claim
source:
resourceClaimName: test-shared-claim
A more long-term benefit is that other, future alternatives
might not make sense under the "source" umbrella.
This is a breaking change. It's justified because DRA is still
alpha and will have several other API breaks in 1.31.
Kubernetes-commit: bde9b64cdfbbbb185593c20fea84cdced631ffd6
2024-05-24 15:24:24 +02:00
Antonio Ojea
a146a0f353
make update
...
Kubernetes-commit: bc8bce2ef98b85d642c7e805e8c6d1fd92cbcf53
2024-05-21 11:58:12 +00:00
Vinayak Goyal
1582c4c03d
KEP-4633: Allow health-only anonymous auth mode.
...
Signed-off-by: Vinayak Goyal <vinaygo@google.com >
Kubernetes-commit: 5e6a4937f5a3e20dd77238946220461332ecddff
2024-05-16 21:18:34 +00:00
Stephen Kitt
b31bc29ea1
Run codegen
...
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 08dfd59305dbd1032b1afb49738259d688dda5e3
2024-05-10 16:56:52 +02:00
Lalit
aa6ed1bae1
Updating event spam key to allow recording of more unique events
...
Kubernetes-commit: 99d20307cfa41f9beefa97c5bec2ee00b2d8b620
2024-05-08 12:05:42 +05:30
Stephen Kitt
c834bcc257
Generify client-go
...
This adds a generic implementation of a clientset, and uses it to
replace the template code in generated clientsets for the default
methods. The templates are preserved as-is (or as close as they can
be) for use in extensions, whether for resources or subresources.
Clientsets with no extensions are reduced to their main getter, their
interface, their specific struct, and their constructor. All method
implementations are provided by the generic implementation. The
dedicated interface is preserved so that each clientset can have its
own set of methods, and the dedicated struct is preserved to allow
extensions and expansions to be defined where necessary.
Instead of handling the variants (with/without namespace, list, apply)
with a complex sequence of if statements, build up an index into an
array containing the various declarations.
The namespaced/non-namespaced distinction matters in the code
templates, but not in the methods themselves, so drop all the
non-namespaced variants and pass in "" explicitly.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 3734f5bf9b6ce1e9cf2385f4e4453b32d8f35ab1
2023-10-13 09:56:04 +02:00
Stephen Kitt
6a88f2da38
Run codegen
...
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: c982ce1891eacd1bff135e9010df4fc17e3dbb23
2024-05-27 11:00:27 +02:00
Stephen Kitt
233a06528f
Run codegen
...
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 55ea0a55358de787353c9c9c38280d483456475a
2024-05-27 10:55:47 +02:00
Kubernetes Publisher
d2f5fba1f8
Merge pull request #125528 from seans3/port-forward-beta
...
PortForward over Websockets Graduates to Beta
Kubernetes-commit: ef9965ebc66dafda37800bb04f5e284535bbba10
2024-06-16 13:59:32 -07:00
Sean Sullivan
6e4469285c
Graduate PortForwardWebsockets to Beta
...
Kubernetes-commit: 3ae3b4ea551443d8ef695d31bf0c51963fe35ac3
2024-06-15 16:09:23 -07:00
Kubernetes Publisher
cea15394b3
Merge pull request #124509 from p0lyn0mial/upstream-watch-list-code-gen
...
client-go: add support for API streaming
Kubernetes-commit: 6ac60160c5729ade462b041b170ec8ac0f1eb3bc
2024-06-14 14:10:49 +00:00
Kubernetes Publisher
e4e31fd32c
Merge pull request #125472 from karlkfi/karl-watch-comments
...
Add details to watch interface method comments
Kubernetes-commit: b498eb97406f780fbbeb39204f50bc473e64af56
2024-06-13 14:10:58 +00:00
Kubernetes Publisher
5f43af464b
Merge pull request #125391 from karlkfi/karl-reflector-watch-stop
...
Refactor Reflector ListAndWatch
Kubernetes-commit: 08a8480558c7ace68a6ac3de10a21f8c02663077
2024-06-13 14:10:56 +00:00
Lukasz Szaszkiewicz
cc198ea39d
make update
...
Kubernetes-commit: f62c80f965934eeeb2e028497bede7bcc632995d
2024-06-13 10:25:56 +02:00
Kubernetes Publisher
39cc8deb07
Merge pull request #125435 from p0lyn0mial/upstream-rm-reflector-data-consistency-detector-test
...
client-go/reflector: remove reflector_data_consistency_detector_test.go
Kubernetes-commit: 8db1402f3db163af73e54f1b4932ddf9971eb68e
2024-06-12 22:10:48 +00:00
Karl Isenberg
f29a36dfab
Refactor Reflector ListAndWatch
...
- Extract watchWithResync to simplify ListAndWatch
- Wrap watchHandler with two variants, one for WatchList and one for
just Watch.
- Replace a bool pointer arg with a bool arg and bool return, to
improve readability.
- Use errors.Is to satisfy the linter
- Use %w to wrap the store.Replace error, to allow unwrapping.
Kubernetes-commit: 65fc1bb463c85a4c85e619bf7acac9503e23a253
2024-06-12 13:14:55 -07:00
Karl Isenberg
48d8fc7e2e
Add details to watch interface method comments
...
The watch.Interface design is hard to change, because it would break
most client-go users that perform watches. So instead of changing the
interface to be more user friendly, this change updates the method
comments to explain the different responsibilities of the consumer
(client user) and the producer (interface implementer).
Kubernetes-commit: 1f35231a1d4f7b8586a7ec589c799729eeb4f7c4
2024-06-12 13:06:22 -07:00
Kubernetes Publisher
fb1003a7e4
Merge pull request #125440 from p0lyn0mial/upstream-client-go-watchlist-can-use-watchlist-for-list-rq
...
client-go/util/watchlist: intro CanUseWatchListForListRequest(
Kubernetes-commit: 813d3f35b42c0549619dfa54754fa62244af6c14
2024-06-12 10:04:30 -07:00
Lukasz Szaszkiewicz
5347b09f1d
client-go/reflector: remove reflector_data_consistency_detector_test.go
...
Kubernetes-commit: 0c96a00217d6e2a4c9cb1cf6c0bc719d570678fc
2024-06-11 10:42:07 +02:00
Lukasz Szaszkiewicz
9a760efea1
client-go/util/watchlist: intro CanUseWatchListForListRequest
...
Kubernetes-commit: 38fae9b799393f6fe17d07fb8148f05b1110859b
2024-06-10 18:03:47 +02:00
Kubernetes Publisher
03443e7ede
Merge pull request #125432 from p0lyn0mial/upstream-watch-list-data-consistency-detector
...
client-go/consistencydetector: add CheckWatchListFromCacheDataConsistencyIfRequested
Kubernetes-commit: 27bdade27f9f4c2b60928a18579de369c9f8c2ef
2024-06-11 01:22:25 -07:00
Lukasz Szaszkiewicz
b681e77bec
client-go/reflector: use consistencydetector.IsDataConsistencyDetectionForWatchListEnabled
...
Kubernetes-commit: f6c68908ba37dbb7af602b8f88b5f395025d2384
2024-06-10 23:01:04 +02:00
Lukasz Szaszkiewicz
14559c0fec
client-go/consistencydetector: introduce CheckWatchListFromCacheDataConsistencyIfRequested
...
Kubernetes-commit: f7f3809c513cd051c2c45bbef0655cf5a3eceea2
2024-06-10 22:52:47 +02:00
Kubernetes Publisher
911684686f
Merge pull request #125408 from benluddy/bump-cbor-v2.7.0
...
KEP-4222: Bump github.com/fxamacker/cbor/v2.
Kubernetes-commit: 6346b9d1327c4b8be2398d9715bdae5475e27569
2024-06-11 00:41:19 +00:00
Ben Luddy
4d57b6a340
Bump fxamacker/cbor/v2 to v2.7.0-beta.
...
This library release makes a number of behaviors configurable in ways that are required for CBOR
support in Kubernetes.
Kubernetes-commit: c4279660cad039bc15495311cf7863640b6308f9
2024-05-09 14:30:58 -04:00
Kubernetes Publisher
c415c7650f
Merge pull request #125304 from p0lyn0mial/upstream-dynamic-client-uses-consistency-detector
...
dynamic-client: data consistency checker for list requests
Kubernetes-commit: e328c8fbf18f50e3d9dff430af482e703124147d
2024-06-09 16:40:52 +00:00
Kubernetes Publisher
8fc5a64651
Merge pull request #125383 from p0lyn0mial/upstream-unstructured-testchecklistconsistency
...
client-go/consistencydetector: refactor TestCheckListFromCacheDataConsistencyIfRequestedInternalHappyPath to work with unstructured data
Kubernetes-commit: 51f89c3b2d114fea99d3a0e8401c639f39e27877
2024-06-07 07:50:55 -07:00
Lukasz Szaszkiewicz
503a0905c0
client-go/util/consistencydetector: extend TestCheckListFromCacheDataConsistencyIfRequestedInternalHappyPath to work with unstructured list
...
Kubernetes-commit: a2a48a475b4c98daeea3f83b8a89aa070ea4082b
2024-06-07 10:55:01 +02:00
Lukasz Szaszkiewicz
2d885a2ed5
client-go/util/consistencydetector: refactor TestCheckListFromCacheDataConsistencyIfRequestedInternalHappyPath to work with unstructured data
...
Kubernetes-commit: c5904424b2b03cec1befaf16c55bb97df57669bc
2024-06-07 10:43:28 +02:00
Kubernetes Publisher
e8224736d3
Merge pull request #125379 from p0lyn0mial/upstream-unstructured-testdataconsistencychecker
...
client-go/consistencydetector: refactor TestDataConsistencyChecker to work with unstructured data
Kubernetes-commit: 96815d6dc8de717579484ffef88f74063dfd40ca
2024-06-07 16:41:08 +00:00
Kubernetes Publisher
94cabc85d9
Merge pull request #125302 from karlkfi/karl-informer-watcher-test
...
Update TestNewInformerWatcher for WatchListClient
Kubernetes-commit: 169a952720ebd75fcbcb4f3f5cc64e82fdd3ec45
2024-06-07 12:40:56 +00:00
Kubernetes Publisher
1fc4f8ad34
Merge pull request #124963 from p0lyn0mial/upstream-data-consistency-checker-for-list-requests
...
client-go: data consistency checker for list requests
Kubernetes-commit: 3532601ad8c7249be13cd8187f8124fc68da4c4b
2024-06-07 08:40:44 +00:00
Lukasz Szaszkiewicz
20d0a8ee82
client-go/consistencydetector: extend TestDataConsistencyChecker to test unstructured data
...
Kubernetes-commit: c8971c456f23627a91dc79bb8bc840a32dea611f
2024-06-07 10:33:11 +02:00
Kubernetes Publisher
1c075dc88c
Merge pull request #124642 from wojtek-t/resilient_watchcache_initialization
...
Implement ResilientWatchCacheInitialization
Kubernetes-commit: eef6c6082d4e34fc4a0675a36ec5cc575cd13696
2024-06-07 04:40:45 +00:00
Kubernetes Publisher
098e7c5a9b
Merge pull request #125356 from p0lyn0mial/upstream-improve-testdrivechecklistfromcache-test
...
improve TestDriveCheckListFromCacheDataConsistencyIfRequested
Kubernetes-commit: 4e2a6201a43f4c8bbb633ae8edc8cc47b1a39ee7
2024-06-06 16:44:40 +00:00
Lukasz Szaszkiewicz
82627741cb
client-go/consistencydetector: refactor TestDataConsistencyChecker to work with unstructured data
...
Kubernetes-commit: d535f55ef9dd391712db09ac69dd083089457366
2024-06-06 14:14:33 +02:00
Lukasz Szaszkiewicz
bbe85a4a80
fix TestDriveCheckListFromCacheDataConsistencyIfRequested
...
Kubernetes-commit: 82794c4963144bf5298089030733f993a44f7c3b
2024-06-05 22:41:09 +02:00
Kubernetes Publisher
b03e5b8438
Merge pull request #125335 from p0lyn0mial/upstream-consistency-decector-handles-legacy-case
...
client-go/consistencydetector: handles the watch cache legacy case
Kubernetes-commit: dae37c21645c0fc04bbb0202ad1eba6ba4438d23
2024-06-05 05:37:20 -07:00
Lukasz Szaszkiewicz
c7d706847a
client-go/consistencydetector: handles the watch cache legacy case
...
Kubernetes-commit: fe8a2d222cc4208ee8f89fd2912d35cf58ec5941
2024-06-04 18:37:37 +02:00
Lukasz Szaszkiewicz
5d84e91dbf
client-go/dynamic: use CheckListFromCacheDataConsistencyIfRequested
...
Kubernetes-commit: 79370c6d676814758c60bbc1b71a882583be2214
2024-06-04 10:23:19 +02:00
Kubernetes Publisher
7c6e307a72
Merge pull request #125299 from karlkfi/karl-reflector-fix-2
...
Improve Reflector unit tests
Kubernetes-commit: 5bf1e95541d90e37f6c6637b5b45d8783e7907aa
2024-06-04 00:39:33 +00:00
Karl Isenberg
7c5e9038dd
Update TestNewInformerWatcher for WatchListClient
...
- Switch to using the ProxyWatcher to validate the dance between
closing the stop channel and closing the result channel.
- Use the new clientfeaturestesting.SetFeatureDuringTest to test with
the WatchListClient enabled and disabled. These should result in
almost the exact same output events from the informer
(list ordering not garenteed), but with different input events
recieved from the apiserver.
Kubernetes-commit: 28e3a728e5e6fe651d7a17839d33ce42204c0b4e
2024-06-03 17:31:59 -07:00
Karl Isenberg
8c9cb8838f
Improve Reflector unit tests
...
- Add tests to confirm that Stop is always called.
- Add TODOs to show were Stop is not currently being called
(to fix in a future PR)
Kubernetes-commit: ab5aa4762fd5206d0dbd8412d7c6f3b76533a122
2024-06-03 12:15:38 -07:00
Kubernetes Publisher
52e5651101
Merge pull request #122832 from benluddy/cbor-fuzz-native-to-unstructured-via
...
KEP-4222: Add roundtrip tests to Unstructured via CBOR and JSON.
Kubernetes-commit: f30a87d517c538f22e1d84b4d7c497f57f7b760a
2024-05-31 00:39:27 +00:00
Kubernetes Publisher
d81b8f6492
Merge pull request #123974 from p0lyn0mial/upstream-client-go-features-testing
...
client-go/features/testing: intro SetFeatureGatesDuringTest
Kubernetes-commit: 9a44f689167849e1251f801199e9517ee00fe6bd
2024-05-30 00:39:20 +00:00
Shingo Omura
7adab2f2f6
KEP-3619: Fine-grained SupplementalGroups control ( #117842 )
...
* Add `Linux{Sandbox,Container}SecurityContext.SupplementalGroupsPolicy` and `ContainerStatus.user` in cri-api
* Add `PodSecurityContext.SupplementalGroupsPolicy`, `ContainerStatus.User` and its featuregate
* Implement DropDisabledPodFields for PodSecurityContext.SupplementalGroupsPolicy and ContainerStatus.User fields
* Implement kubelet so to wire between SecurityContext.SupplementalGroupsPolicy/ContainerStatus.User and cri-api in kubelet
* Clarify `SupplementalGroupsPolicy` is an OS depdendent field.
* Make `ContainerStatus.User` is initially attached user identity to the first process in the ContainerStatus
It is because, the process identity can be dynamic if the initially attached identity
has enough privilege calling setuid/setgid/setgroups syscalls in Linux.
* Rewording suggestion applied
* Add TODO comment for updating SupplementalGroupsPolicy default value in v1.34
* Added validations for SupplementalGroupsPolicy and ContainerUser
* No need featuregate check in validation when adding new field with no default value
* fix typo: identitiy -> identity
Kubernetes-commit: 552fd7e85084b4cbd3ae8e81ff13433e28dc8327
2024-05-30 00:39:19 +00:00
Kubernetes Publisher
e8b54718d0
Merge pull request #123339 from skitt/canonical-json-patch
...
Update kustomize, use canonical json-patch v4 import
Kubernetes-commit: da02fdb2aef1b7102526963c91df4992ee5b6a05
2024-05-29 20:39:23 +00:00
Kubernetes Publisher
9c87eb0815
Merge pull request #125190 from pohly/record-event-panic
...
client-go record: avoid panic when watch creation failed
Kubernetes-commit: ea0ab06b6915945c20a86d1de588e4ac7a5b6d58
2024-05-29 06:20:33 -07:00
Patrick Ohly
b4e1cfcfab
client-go record: avoid panic when watch creation failed
...
The previous attempt to fix this in
6aa779f4ed (diff-efa2cd1347df22ace5a516ea794152d00ef2a079db135c81787ed920ecb73658)
didn't address the root cause (or perhaps created it, not sure): the goroutine
must not be started if watch creation failed.
Instead, the error gets logged (as before) and an empty watch gets returned to
the caller (new). This is necessary because the function doesn't have an error
return value and changing that now would be disruptive. The empty watch is
valid and usable, so callers won't crash when they calls Stop.
This showed up recently in failed unit tests, probably because test
cancellation makes this error more likely:
"Unable start event watcher (will not retry!)" err="broadcaster already
stopped" logger="TestGarbageCollectorConstruction leaked goroutine"
The logger value and a preceding warning show that this occurs after test
completion.
Kubernetes-commit: 080432c46a7a49c3abf86d7fc5f2a5d7abc92239
2024-05-29 14:10:49 +02:00
Kubernetes Publisher
5d650114a5
Merge pull request #125159 from p0lyn0mial/upstream-add-data-consistency-checker-for-list-requests
...
client-go/util/consistencydetector: add CheckListFromCacheDataConsistencyIfRequested
Kubernetes-commit: 1d5589e4910ed859a69b3e57c25cbbd3439cd65f
2024-05-29 12:39:08 +00:00
Kubernetes Publisher
3f130bd830
Merge pull request #125166 from p0lyn0mial/upstream-improve-check-data-consistency
...
client-go/util/consistencydetector: improve validation of list parameters (RV, ListOptions)
Kubernetes-commit: bc8ec4f9aaaeee7de285c0207bd8eb793ecf3307
2024-05-29 00:38:51 +00:00
Kubernetes Publisher
5f741a5d35
Merge pull request #125052 from p0lyn0mial/upstream-client-go-env-var-set
...
client-go/features: add Set method to the envvar impl
Kubernetes-commit: 8991e825d5f2affce16a05666c11d7a2a773a628
2024-05-28 16:39:07 +00:00
Kubernetes Publisher
b92b563c44
Merge pull request #124635 from pohly/event-broadcaster-shutdown-fix
...
client-go/tools/record: fix and test Broadcaster shutdown + logging
Kubernetes-commit: f4ea903712482c4a0021cc9c8d742673a213833e
2024-05-28 16:39:05 +00:00
Lukasz Szaszkiewicz
785fca481f
client-go/util/consistencydetector: improve validation of list parameters (RV, ListOptions)
...
Kubernetes-commit: 327ae9866bda463ae43bd133a2522d5beea5ed35
2024-05-28 12:22:59 +02:00
Kubernetes Publisher
f53839a9ad
Merge pull request #125045 from pohly/ginkgo-gomega-update
...
dependencies: ginkgo v2.19.0, gomega v1.33.1
Kubernetes-commit: 1c84623028b496e22d8401100ef6f59325e092e0
2024-05-28 08:39:08 +00:00
Lukasz Szaszkiewicz
9f33e96b6a
make update
...
Kubernetes-commit: 448180db60fc1d62174a18d1dd995d8deb081428
2024-05-27 15:31:15 +02:00
Kubernetes Publisher
c559583d36
Merge pull request #125146 from p0lyn0mial/upstream-client-go-consistency-detector-move-to-new-package
...
client-go: move data consistency detector to a new package
Kubernetes-commit: 9d5db28f5f5d5a35012dd6162af374420e6e1f4c
2024-05-27 06:24:08 -07:00
Lukasz Szaszkiewicz
b7ea49a199
client-go/util/consistencydetector: add CheckListFromCacheDataConsistencyIfRequested
...
Kubernetes-commit: 48014bd7bdc331efea509a752694393ac929f270
2024-05-27 15:11:50 +02:00
Lukasz Szaszkiewicz
538b7809aa
move checkWatchListDataConsistencyIfRequested back to client-go/tools/cache
...
Kubernetes-commit: cb44f83b3d500bb2ed29f7634095bc64c9b21729
2024-05-27 11:22:28 +02:00
Lukasz Szaszkiewicz
e6e45e172b
client-go/util/consistencydetector: make the detector public
...
Kubernetes-commit: e421046f64c90b58577a79f92dd463ab03479d79
2024-05-27 11:16:17 +02:00
Lukasz Szaszkiewicz
92f0985ce1
client-go/util/consistencydetector: update after moving to the new package
...
Kubernetes-commit: faf5110c8a2394f9d098da6e5097ce6deed1b18b
2024-05-27 11:13:18 +02:00
Lukasz Szaszkiewicz
e428fc295c
move client-go/tools/cache/reflector_data_consistency_detector to client-go/util/consistencydetector
...
Kubernetes-commit: 272dfc9d7e61481dfcdc4d6a021385d9cd85ba5f
2024-05-27 11:10:43 +02:00
Kubernetes Publisher
fd6b8e6551
Merge pull request #125144 from p0lyn0mial/upstream-client-go-consistency-detector-refactor-units
...
client-go/tools/cache/reflector_data_consistency_detector: refactor unit tests
Kubernetes-commit: 58fe98e2cc7f8efac886765af230a48285d7b9b6
2024-05-27 03:26:50 -07:00
Lukasz Szaszkiewicz
00036b79c4
client-go/tools/cache/reflector_data_consistency_detector: refactor unit tests
...
Kubernetes-commit: 18837d60ae12ac70380ce5cf21cfd8e0d221263a
2024-05-27 11:10:00 +02:00
Kubernetes Publisher
0123e78ef6
Merge pull request #124446 from p0lyn0mial/watch-list-consistency-detector-more-generic
...
client-go/consistency-detector: change the signature of checkWatchListConsistencyIfRequested
Kubernetes-commit: f5d62f738a686ddc6221a85374113af80790129e
2024-05-27 08:39:07 +00:00
Lukasz Szaszkiewicz
e89e40c187
client-go/rest: add TestWatchListWhenFeatureGateDisabled unit test
...
Kubernetes-commit: 8c0c1f720182f138c3151d3d67a80fa67b86a240
2024-05-23 16:33:43 +02:00
Lukasz Szaszkiewicz
e8eae94e45
client-go/features/testing: intro SetFeatureGatesDuringTest
...
Kubernetes-commit: 3d97808b95b355bb8e56d4d720342e9a7ab95ced
2024-05-23 14:44:11 +02:00
Lukasz Szaszkiewicz
98df4f79ac
client-go/features: add Set method to envvar impl
...
Kubernetes-commit: a07654baa54d53d7649e981c0c65eb8d1210e4af
2024-05-22 15:42:47 +02:00
Patrick Ohly
2f2b800097
dependencies: ginkgo v2.19.0, gomega v1.33.1
...
Ginkgo v2.18.0 allows tweaking the output so that
it's easier to follow while a job runs in
Prow (https://github.com/onsi/ginkgo/issues/1347 ). Using this in
hack/ginkgo-e2e.sh will follow in a separate commit.
Gomega gets bumped to the latest release to keep it up-to-date.
Ginkgo v1.19.0 adds support for --label-filter with labels that represent
sets (like our Feature:<Foo>).
Kubernetes-commit: 37e2dd6857084a172ef5210caee1fefa8dd8159a
2024-05-22 10:22:09 +02:00
Ben Luddy
3aa51ce508
Update indirect dependencies with ./hack/update-vendor.sh.
...
Implementing custom marshaling on several API types for CBOR makes the upstream CBOR library an
indirect dependency of several staging modules.
Kubernetes-commit: d7cccf3e792ad08d9ab2e7aac394f8e6ddcf3466
2024-05-17 13:02:26 -04:00
Patrick Ohly
ebbf7d7dc3
client-go/tools/record: fix and test Broadcaster shutdown + logging
...
Constructing a Broadcaster already starts a watch which runs in the
background. Shutdown must be called to avoid leaking the goroutine. Providing
a context was supposed to remove the need to call Shutdown, but that did not
actually work because the logic for "must check for cancellation" was
accidentally inverted.
While at it, structured log output also gets tested together with checking for
goroutine leaks.
Kubernetes-commit: ff779f1cb56cf896405e52f7923188b99b88bb00
2024-04-30 12:16:55 +02:00
Wojciech Tyczyński
b444e6c32e
Implement ResilientWatchCacheInitialization
...
Kubernetes-commit: a8ef6e9f0104a44023162bb8229fb677ec80beb1
2024-04-29 14:19:46 +02:00
Lukasz Szaszkiewicz
6bdde7723e
client-go/consistency-detector: change the signature of checkWatchListConsistencyIfRequested
...
the signature of the method was tightly connected to the reflector,
making it difficult to use for anything other than a reflector.
this simple refactor makes the method more generic.
Kubernetes-commit: 83c7542abc8c542c01ecb67376f134b2071c5304
2024-04-22 14:01:22 +02:00
Kubernetes Publisher
c7396197f3
Merge pull request #122791 from p0lyn0mial/upstream-cleanup-watch-list-env-var
...
cleanup: replace ENABLE_CLIENT_GO_WATCH_LIST_ALPHA with WatchListClient gate
Kubernetes-commit: 8c1983ffc0b6fe2293fc721cef8d961d79aafc53
2024-05-21 02:05:35 -07:00
Lukasz Szaszkiewicz
4a34196022
replace ENABLE_CLIENT_GO_WATCH_LIST_ALPHA with WatchListClient gate
...
Kubernetes-commit: 9248cccc27fdd52a9a99fd9ad6e47ada9ee8b568
2024-04-30 08:24:53 +02:00
Kubernetes Publisher
86f83bc818
Merge pull request #124614 from p0lyn0mial/upstream-reflector-warn-no-bookmark-event
...
client-go/reflector: warns when the bookmark event for initial events hasn't been received
Kubernetes-commit: b10a141fd2c291feea78c4e36483933b25368224
2024-05-20 16:38:45 +00:00
Lukasz Szaszkiewicz
0280901a4d
client-go/reflector: warns when the bookmark event for initial events hasn't been received
...
Kubernetes-commit: 93960f489069a744afda1be42f82349e25d7e4d7
2024-04-29 15:18:54 +02:00
Kubernetes Publisher
62f959700d
Merge pull request #124588 from jiuker/patch-2
...
fix: Hang when canceling leader election information
Kubernetes-commit: 7a6931b31cf04d2a91ce8c0af09ad0f474927436
2024-05-09 04:33:13 +00:00
Kubernetes Publisher
8a8d0731de
Merge pull request #124757 from dims/update-to-latest-golang.org/x/oauth2-v0.20.0
...
Update to latest golang.org/x/oauth2 v0.20.0
Kubernetes-commit: 22578c545ffc04a505a7a64c9b8f6c78fefa07ef
2024-05-09 00:31:52 +00:00
Davanum Srinivas
988ddc2b6c
Update to latest golang.org/x/oauth2 v0.20.0
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 04c40ac96134d7f7bf697d0a58caf0f8b0380075
2024-05-08 11:04:34 -04:00
Kubernetes Publisher
4ebe42d8c9
Merge pull request #124600 from alvaroaleman/typed-wq
...
Use the generic/typed workqueue throughout
Kubernetes-commit: 1dc30bf90fd6a729d226b4e942118110b0a73e65
2024-05-07 00:31:06 +00:00
Kubernetes Publisher
d3682da14f
Merge pull request #124519 from dims/drop-all-the-providery-things-take-2
...
Remove gcp in-tree cloud provider and credential providers
Kubernetes-commit: 4d17d30029aaddc2132d65c019e30d1c153bf4d1
2024-05-06 16:31:39 +00:00
Patryk Małek
35cab326ad
fix(api): make LocalObjectReference.Name and HostAlias.IP required ( #124553 )
...
* fix(api): LocalObjectReference Name a "" default and make HostAlias.IP required
* chore(api): add LocalObjectReference comment
* chore(api): add omitempty to LocalObjectReference's Name
* chore(api): add kubebuilder:default annotation
* chore(api): ./hack/update-codegen.sh
Kubernetes-commit: 8dbeaa5786bab14772873cc90af70ccb9b06b4c1
2024-05-04 00:30:57 +00:00
Davanum Srinivas
64ff14beda
address comments during review
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 7187d9af81eb1dc2691e7faeb1aaa254d85cc860
2024-05-01 09:06:11 -04:00
Kubernetes Publisher
049f231649
Merge pull request #124562 from sbueringer/pr-bump-sigs-yaml
...
Bump sigs.k8s.io/yaml to v1.4.0
Kubernetes-commit: c1ef6c44f5d7b582bf19669c6dbf2ff9552b9d6c
2024-04-29 21:36:55 +00:00
Alvaro Aleman
9aa3aae99d
Use the generic/typed workqueue throughout
...
This change makes us use the generic workqueue throughout the project in
order to improve type safety and readability of the code.
Kubernetes-commit: 6d0ac8c561a7ac66c21e4ee7bd1976c2ecedbf32
2024-04-28 18:26:18 +02:00
jiuker
f9eba8e8c3
fix: Hang when canceling leader election information
...
Hang when canceling leader election information.
Occasionally, two leaders may run simultaneously.
Kubernetes-commit: b6b46a0e00682517d2ca7b7e9c2706b8e407e52e
2024-04-28 15:06:51 +08:00
Stefan Bueringer
ea434dfecf
Bump sigs.k8s.io/yaml to v1.4.0
...
Kubernetes-commit: 04cc45b4adda1b19d5067d45ed246c0f84fed966
2024-04-26 15:28:17 +02:00
Kubernetes Publisher
6b47d7dcbe
Merge pull request #124344 from wojtek-t/fix_transformer
...
Fix race in informer transformers
Kubernetes-commit: 0b15f8cbfc611889f703495ee845b3c54bdd759d
2024-04-24 21:36:39 +00:00
Kubernetes Publisher
178bcf2846
Merge pull request #124469 from serathius/etcd-3.5.13
...
Upgrade etcd libraries to v3.5.13
Kubernetes-commit: 0f063280964b09e0e21c8cc457a181c20c68da61
2024-04-24 17:36:36 +00:00
Kubernetes Publisher
f3332a08cc
Merge pull request #124263 from alvaroaleman/typed
...
Workqueue: Add generic versions that are properly typed
Kubernetes-commit: b3f5c5722352af8a4c9434d9ff6ba55baee16d36
2024-04-24 17:36:33 +00:00
Kubernetes Publisher
9433226579
Merge pull request #124075 from pohly/dra-api-comments
...
DRA: API cleanup + fix
Kubernetes-commit: 62895895094cbb59fe39176afd484ce3d2505b61
2024-04-24 01:36:42 +00:00
Kubernetes Publisher
4a5f039360
Merge pull request #122657 from p0lyn0mial/upstream-client-go-rest-client-watch-list
...
add watchlist to client-go rest client
Kubernetes-commit: 78533415e06199d13f81e78acf9ff2e0f7460801
2024-04-23 13:36:38 +00:00
Marek Siarkowicz
e4f9b83713
Upgrade etcd libraries to v3.5.13
...
Add otelgrpc.WithMessageEvents(otelgrpc.ReceivedEvents, otelgrpc.SentEvents) to tracing options due to https://github.com/open-telemetry/opentelemetry-go-contrib/pull/3964
Kubernetes-commit: 3e5b03eb433ee359782f5aa6e9368ab2a0d0370c
2024-04-23 11:10:37 +02:00
Kubernetes Publisher
47f558294c
Merge pull request #124328 from jiahuif-forks/deps/cel-go
...
bump cel-go to v0.20.1 and refit CEL libraries
Kubernetes-commit: 16a594f907d0d4a6224dab2d0704793d5e7898f6
2024-04-23 01:36:50 +00:00
Kubernetes Publisher
66b378aea8
Merge pull request #124340 from benluddy/dynamic-client-golden-request-test
...
Add test to detect unintentional changes in dynamic client requests.
Kubernetes-commit: 80134bcc85fb753c5809b341bb5e34e422ca4b37
2024-04-23 01:36:48 +00:00
Kubernetes Publisher
02e371e437
Merge pull request #121574 from skitt/generic-lister-gen
...
Generify lister-gen
Kubernetes-commit: 6b260382a1b5e461c39289892b1d3a3b335ecc67
2024-04-23 01:36:47 +00:00
Jiahui Feng
d071c08540
generated: ./hack/update-vendor.sh
...
Kubernetes-commit: 350fcf957e90501f0b224b7ccf771b29d4d5c6b6
2024-04-22 10:54:32 -07:00
Kubernetes Publisher
5b2b83af72
Merge pull request #124346 from jwcesign/master
...
upgrade: upgrade dependencies github.com/prometheus/common to the newest version
Kubernetes-commit: 76de052680da0b7a59b35fb79db7ab322faf2854
2024-04-22 17:36:45 +00:00
Stephen Kitt
841e997e33
Improve the lister function documentation
...
In particular, document that ListAllByNamespace delegates to ListAll
if no namespace is specified.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 54e899317ef46e3b70827cacee244717022db0ad
2024-04-19 17:58:02 +02:00
jwcesign
5db05eb767
upgrade: upgrade dependencies github.com/prometheus/common to the newest version
...
Signed-off-by: jwcesign <jwcesign@gmail.com >
Kubernetes-commit: f0aa62bc96d6e734249adfa3e094a52e45c8fb6d
2024-04-17 18:15:27 +08:00
Kubernetes Publisher
b1c1c0345d
Merge pull request #122892 from danwinship/codegen-nil
...
Fix generated fake clients to have same semantics as real clients on error
Kubernetes-commit: 573832a42f03af912a5611eb4e81a0e812a5ddf2
2024-04-18 17:36:39 +00:00
Kubernetes Publisher
506bc538e6
Merge pull request #113257 from claudiubelu/path-filepath-update-staging
...
Replaces path.Operation with filepath.Operation (staging)
Kubernetes-commit: 80542ca2e318f6f82429822b267497570b7ecca5
2024-04-18 17:36:38 +00:00
Kubernetes Publisher
3407442ff2
Merge pull request #124245 from wojtek-t/informer_options
...
Allow for configuring MinWatchTimeout in reflector
Kubernetes-commit: 32a3cbc51dd1d572ba3d6eba66df333e1454dd58
2024-04-18 13:36:35 +00:00
Kubernetes Publisher
9990b0b122
Merge pull request #123969 from liangyuanpeng/cleanup_rand
...
cleanup: delete rand.Seed(time.Now().UnixNano()) and using global number generator.
Kubernetes-commit: 7f67cb5960d8f93e6f005821d2c1b12dcde3dece
2024-04-18 09:36:51 +00:00
Kubernetes Publisher
a82df61b84
Merge pull request #123937 from p0lyn0mial/upstream-use-initial-events-annotation-key-const
...
use metav1.InitialEventsAnnotationKey const
Kubernetes-commit: c016b0b9a8ca63dbec1fade0910c2a06017cc4ab
2024-04-18 09:36:50 +00:00
Kubernetes Publisher
79491afc36
Merge pull request #123347 from zhouhaibing089/abstract-queue
...
workqueue: make queue as configurable
Kubernetes-commit: 301eb8d47a794393a85a9449ab6b29d902ed06bd
2024-04-18 09:36:49 +00:00
Wojciech Tyczyński
2fe05741c1
Fix race in informer transformers
...
Kubernetes-commit: e9f74597a8e7104b26640614e952d4453654453b
2024-04-17 11:19:08 +02:00
Ben Luddy
4cd6b756be
Generate HTTP request fixtures for dynamic client tests.
...
Kubernetes-commit: e335b8e81b467c70f0f8a485f69e5664adbbc687
2024-04-16 12:49:15 -04:00
Ben Luddy
b17c363481
Add test to detect unintentional changes in dynamic client requests.
...
Kubernetes-commit: a803c8034d60a81b0da71ea8631e27888a607476
2024-04-16 12:48:12 -04:00
Jiahui Feng
34d780971c
generated: ./hack/pin-dependency.sh github.com/google/cel-go v0.20.1
...
Kubernetes-commit: 94997c6fefa2791192d0a7ab68b02bf5d8b6c2c5
2024-04-15 13:33:10 -07:00
Alvaro Aleman
d67dddfe90
Workqueue: Add generic versions that are properly typed
...
This change adds a generic version of the various workqueue types while
retaining compatibility for the existing exported symbols and constructors.
The generic variants are prefixed with `Typed` and the existing ones are
marked as deprecated to nudge people to transition without breaking
them.
Kubernetes-commit: 0c7370bb851c15825d30a516722139ccccca0cfc
2024-04-11 18:11:41 -04:00
Wojciech Tyczyński
b9e952f4d7
Allow for configuring MinWatchTimeout in Reflector and Informer.
...
Kubernetes-commit: 29e38c19b853b6cc3950541b1727395acf5eb4d3
2024-04-09 09:12:54 +02:00
Wojciech Tyczyński
7da319745b
Refactor informer constructors
...
Kubernetes-commit: 4da185a601e1f657a873dfd7e51efcc8a3b94c37
2024-04-09 09:06:38 +02:00
Kubernetes Publisher
aa7909e7d7
Merge pull request #124174 from dims/update-x/net-for-CVE-2023-45288
...
Update x/net for CVE-2023-45288
Kubernetes-commit: d9c54f69d4bb7ae1bb655e1a2a50297d615025b5
2024-04-04 03:56:29 +00:00
Davanum Srinivas
a2cc490854
Update x/net for CVE-2023-45288
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 99fac38d2864e6bc9bb7cd1743d658caa1360c0c
2024-04-03 16:37:18 -04:00
Patrick Ohly
a457c5ed68
DRA api: ResourceHandle.DriverName is required
...
It was already required via validation, but not declared as such by the
OpenAPI.
Kubernetes-commit: 1a13b0aa3333d04ae67a6fcdd21c8e2a042dc0c2
2024-03-27 11:22:35 +01:00
Kubernetes Publisher
1518fca9f0
sync: update go.mod
2024-03-18 11:59:16 +00:00
Lan Liang
fa185a21db
cleanup: delete rand.Seed(time.Now().UnixNano()) and using global number generator.
...
see https://tip.golang.org/doc/go1.20
Signed-off-by: Lan Liang <gcslyp@gmail.com >
Kubernetes-commit: dc992adad385ab631e4a528ee6a342ea71e7a379
2024-03-18 08:10:12 +00:00
Kubernetes Publisher
eea636f8f4
Merge pull request #123932 from pohly/dra-api-resource-model-rename
...
dra api: NodeResourceModel -> ResourceModel
Kubernetes-commit: d194e6d06c4f1004cebe00f2c539a564f77276ec
2024-03-14 20:57:49 +00:00
Kubernetes Publisher
4467b1e437
Merge pull request #123909 from AkihiroSuda/fix-123906
...
kubelet: fix mixing up runtime classes with runtime handlers
Kubernetes-commit: 6ef2fec0dfef0c1fc456fac90d028b5c9431b6a0
2024-03-14 20:57:47 +00:00
Patrick Ohly
650f39267a
dra api: NodeResourceModel -> ResourceModel
...
When renaming NodeResourceSlice to ResourceSlice, the embedded
[Node]ResourceModel also should have been renamed.
Kubernetes-commit: a0add8d2c7578cd9f94fc302d6212f9f7d16175b
2024-03-14 14:08:17 +01:00
Akihiro Suda
00e4609774
api: NodeStatus: rename RuntimeClasses to RuntimeHandlers
...
The runtime classes are apiserver's concept, while the handlers are kubelet's concept.
For NodeStatus, it makes more sense to return the latter ones here.
This commit modifies the following files:
- pkg/apis/core/types.go
- staging/src/k8s.io/api/core/v1/types.go
- pkg/kubelet/nodestatus/setters.go
- pkg/kubelet/kubelet_node_status.go
- pkg/registry/core/node/strategy.go
- test/e2e_node/mount_rro_linux_test.go
Other changes were auto-generated by running `make update`.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
Kubernetes-commit: 1dc05009fe7f4e1d139b0c8394683edb54f8d082
2024-03-14 07:21:47 +09:00
Lukasz Szaszkiewicz
45e17fede0
client-go/cache/reflector: use metav1.InitialEventsAnnotationKey
...
Kubernetes-commit: a953539fb57b2ee18337f323ef15425a4d6207ed
2024-03-11 12:56:40 +01:00
Kubernetes Publisher
7ebe0ea60e
Merge pull request #123180 from AkihiroSuda/rro
...
KEP-3857: Recursive Read-only (RRO) mounts
Kubernetes-commit: eafd2897e24b5b069bcdf83ac7a9b2c0b894dbb8
2024-03-09 20:04:20 +00:00
Akihiro Suda
3be09aa8db
api: KEP-3857: Recursive Read-only (RRO) mounts
...
This commit modifies the following files:
- pkg/apis/core/types.go
- staging/src/k8s.io/api/core/v1/types.go
Other changes were auto-generated by running `make update`.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
Kubernetes-commit: d940886d0a4ee9aa8a7ca075fee175b002baf883
2024-03-09 09:48:12 +09:00
Kubernetes Publisher
110b75b14e
Merge pull request #123344 from nilekhc/svm-controller
...
[Storage Version Migration] feat: implements Storage Version Migration
Kubernetes-commit: 28c4d00c7dcc9a72853a4da0885e6fac09a2f40e
2024-03-09 00:05:04 +00:00
Haibing Zhou
9c3db8681d
workqueue: make queue as configurable
...
The default queue implementation is mostly FIFO and it is not
exchangeable unless we implement the whole `workqueue.Interface` which
is less desirable as we have to duplicate a lot of code. There was one
attempt done in [kubernetes/kubernetes#109349 ][1] which tried to
implement a priority queue. That is really useful and [knative/pkg][2]
implemented something called two-lane-queue. While two lane queue is
great, but isn't perfect since a full slow queue can still slow down
items in fast queue.
This change proposes a swappable queue implementation while not adding
extra maintenance effort in kubernetes community. We are happy to
maintain our own queue implementation (similar to two-lane-queue) in
downstream.
[1]: https://github.com/kubernetes/kubernetes/pull/109349
[2]: https://github.com/knative/pkg/blob/main/controller/two_lane_queue.go
Kubernetes-commit: 87b4279e07349b3c68f16f69a349a02bddd12f25
2024-02-16 12:09:37 -08:00
Stephen Kitt
16552d4656
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
ffda3468aa
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
Davanum Srinivas
af62623c06
Remove gcp in-tree cloud provider and credential provider
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: bf268f02a3567c1af29199c27a7cf61cca494b2d
2024-01-25 08:47:20 -05:00
Dan Winship
3d4f98db0e
Regenerate fake clients
...
Kubernetes-commit: 17ab25b121d05355700f39628d5d45ab3da446f8
2024-01-20 10:20:43 -05:00
Lukasz Szaszkiewicz
a1be94abc3
client-go/rest: introduce watchlist
...
Kubernetes-commit: ad3d138cda76fc0267da5131fa3ff7906e2ddf76
2024-01-08 16:43:26 +01:00
Nilekh Chaudhari
02f21344ac
feat: implements svm controller
...
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com >
Kubernetes-commit: 9161302e7fd3a5fb055b2f2572c6e1228240bb51
2024-01-04 19:34:05 +00:00
Stephen Kitt
9d701d3504
Regenerate all listers
...
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: e6f44957cdb961d1ada2ae570d331c6bc0ecc8e2
2023-11-09 17:39:39 +01:00
Stephen Kitt
05ff4bb2fd
Generify lister-gen
...
This adds a generic implementation of a lister, and uses it to replace
the template code in generated listers. The corresponding templates
are no longer used and are removed.
Listers are reduced to their interfaces (non-namespaced and namespaced
if appropriate), their specific structs, and their constructors. All
method implementations are provided by the generic implementation. The
dedicated interface is preserved so that each lister can have its own
set of methods (e.g. the method returning the namespaced lister if
appropriate), and the dedicated struct is preserved to allow
expansions to be defined where necessary.
The external interface is unchanged and doesn't expose generics.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 2e9adcd14aae27394238291fa08fb603bf2f3e77
2023-10-27 16:57:01 +02:00
Nilekh Chaudhari
b0efa42e52
feat: implements Storage Version Migration API in-tree
...
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com >
Kubernetes-commit: 91a7708cdcea8cdb1d7db2cc8a27c57741e0cddc
2023-10-10 20:23:08 +00:00
Kubernetes Publisher
84dfaee610
Merge pull request #123516 from pohly/dra-structured-parameters
...
DRA: structured parameters
Kubernetes-commit: 7ea3d0245a63fbbba698f1cb939831fe8143db3e
2024-03-08 04:03:59 +00:00
Kubernetes Publisher
d2c6177154
Merge pull request #123412 from tenzen-y/add-new-jobsuccesspolicy-api
...
Job: Support for the SuccessPolicy
Kubernetes-commit: 364ef335dbd49bfa3d66dbc606c642481d283851
2024-03-08 00:04:09 +00:00
Patrick Ohly
fee411cff2
dra api: rename NodeResourceSlice -> ResourceSlice
...
While currently those objects only get published by the kubelet for node-local
resources, this could change once we also support network-attached
resources. Dropping the "Node" prefix enables such a future extension.
The NodeName in ResourceSlice and StructuredResourceHandle then becomes
optional. The kubelet still needs to provide one and it must match its own node
name, otherwise it doesn't have permission to access ResourceSlice objects.
Kubernetes-commit: 0b6a0d686a060b5d5ff92cea931aacd4eba85adb
2024-03-07 10:14:11 +01:00
Patrick Ohly
4c32855540
dra api: implement semver attribute value type
...
This adds support for semantic version comparison to the CEL support in the
"named resources" structured parameter model. For example, it can be used to
check that an instance supports a certain API level.
To minimize the risk, the new "semver" type is only defined in the CEL
environment for DRA expressions, not in the base library. See
https://github.com/kubernetes/kubernetes/pull/123664 for a PR which
adds it to the base library.
Validation of semver strings is done with the regular expression from
semver.org. The actual evaluation at runtime then uses semver/v4.
Kubernetes-commit: 42ee56f093133402ed860d4c5f54b049041386c9
2024-03-04 09:13:19 +01:00
Patrick Ohly
95cf817801
dra: add "named resources" structured parameter model
...
Like the current device plugin interface, a DRA driver using this model
announces a list of resource instances. In contrast to device plugins, this
list is made available to the scheduler together with attributes that can be
used to select suitable instances when they are not all alike.
Because this is the first structured parameter model, some checks that
previously were not possible, in particular "is one structured parameter field
set", now gets enabled. Adding another structured parameter model will be
similar.
The applyconfigs code generator assumes that all types in an API are defined in
a single package. If it wasn't for that, it would be possible to place the
"named resources" types in separate packages, which makes their names in the Go
code more natural and provides an indication of their stability level because
the package name could include a version.
Kubernetes-commit: d4d5ade7f5be047472f8d9572c7f01f142951a2d
2024-02-23 15:22:02 +01:00
Yuki Iwai
49bc97e518
Job: Support for the JobSuccessPolicy (alpha)
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com >
Kubernetes-commit: e216742672aa1bfd10b5cc84fa9191eddadeac72
2024-02-21 15:49:35 +09:00
Kubernetes Publisher
47abbe0251
Merge pull request #123435 from tallclair/apparmor-ga
...
AppArmor fields API
Kubernetes-commit: bd25605619cbfb46b075002a6db58b4e489fc8cb
2024-03-07 05:05:16 +00:00
Kubernetes Publisher
0cdc0ce850
Merge pull request #123758 from liggitt/protobump
...
[CVE-2024-24786] Bump github.com/golang/protobuf v1.5.4, google.golang.org/protobuf v1.33.0
Kubernetes-commit: a5f5f44157c49fdfb6384862c7cb34c2ddbd4cce
2024-03-06 17:05:15 +00:00
Jordan Liggitt
8b11b2fa6b
Bump github.com/golang/protobuf v1.5.4, google.golang.org/protobuf v1.33.0
...
Kubernetes-commit: c6673d2346c814ddb4629c569bdc659ffa0c583f
2024-03-06 09:47:28 -05:00
Kubernetes Publisher
e34b66436f
Merge pull request #123405 from cici37/vapGA
...
[KEP-3488]Promote ValidatingAdmissionPolicy to GA
Kubernetes-commit: 2b521e5f8e6b99e84d464d8fa35658aed35bd13c
2024-03-06 05:02:50 +00:00
Kubernetes Publisher
8c60342479
Merge pull request #123729 from seans3/streaming-owners
...
Adds OWNERS files to client-go streaming dirs
Kubernetes-commit: 262399065dab3c5aa04fff83f04c2c4d3f3e444b
2024-03-06 00:51:29 +00:00
Kubernetes Publisher
82506389a2
Merge pull request #122998 from MikeSpreitzer/add-deletion-handling
...
Add DeletionHandlingObjectToName
Kubernetes-commit: 6efef796f6f3ee4825359ec4f77d2c2ee936e363
2024-03-05 21:05:35 +00:00
Michał Woźniak
d1672351e4
Support for the Job managedBy field (alpha) ( #123273 )
...
* support for the managed-by label in Job
* Use managedBy field instead of managed-by label
* Additional review remarks
* Review remarks 2
* review remarks 3
* Skip cleanup of finalizers for job with custom managedBy
* Drop the performance optimization
* imrpove logs
Kubernetes-commit: e568a77a931a1cf4239a4a5fa43e2b05bad3abdf
2024-03-05 21:05:30 +00:00
Sean Sullivan
62aace94ab
Adds OWNERS files to client-go streaming dirs
...
Kubernetes-commit: 855bc74023900b31095de72ae49c79d5d391aad5
2024-03-05 20:21:48 +00:00
Kubernetes Publisher
64334495a6
Merge pull request #123487 from gauravkghildiyal/kep-4444
...
Introduce trafficDistribution field for Kubernetes Services
Kubernetes-commit: a76a3e031fc950a9c2429e611fd0bb00a117b1fc
2024-03-05 04:51:58 +00:00
Kubernetes Publisher
6810f4fa0d
Merge pull request #123679 from seans3/remotecommand-extend-deadlines
...
Extend deadlines to one minute
Kubernetes-commit: 0bcf6e3ddee25621428017e135ce04879b32e659
2024-03-05 04:51:52 +00:00
Kubernetes Publisher
f323801a34
Merge pull request #123413 from seans3/tunneling-spdy-websockets
...
PortForward: Tunnel SPDY through WebSockets
Kubernetes-commit: f745503112e06d6ff199e929d536c6a29825c01a
2024-03-05 04:51:50 +00:00
Sean Sullivan
ae38726e6e
extend deadlines to one minute
...
Kubernetes-commit: b04d1177efb0cfc84b76732848eef8f0ea89b25b
2024-03-04 11:31:56 -08:00
Sean Sullivan
4b03fda005
re-write fallback dialer unit test
...
Kubernetes-commit: 33af937b4a5f4eb5c5005bddb483317f042da515
2024-03-04 10:52:59 -08:00
Sean Sullivan
79f21dcaa8
removes extra upgrade aware proxy logging; returns tunneling connection close error
...
Kubernetes-commit: e8bbb221d36f1adf4116752990c0c4f17a9e5deb
2024-03-02 16:10:39 -08:00
Gaurav Ghildiyal
64b46766f1
Run 'make update'
...
Kubernetes-commit: 646fd200b8532b0df95df300a8351379315f3ac9
2024-02-23 12:23:32 -08:00
Sean Sullivan
271d034e86
portforward: tunnel spdy through websockets
...
Kubernetes-commit: 8b447d8c97e8823b4308eb91cf7d75693e867c61
2024-02-21 08:56:07 +00:00
Kubernetes Publisher
08128e0dfa
Merge pull request #123635 from seans3/remotecommand-write-deadline
...
Increase client-side websocket write deadline
Kubernetes-commit: 0a31504ee114e363df9d69158c2e639858b8273b
2024-03-02 08:51:54 +00:00
Kubernetes Publisher
1002c2f9bd
Merge pull request #123484 from erikgb/csa-upgrade-subresource
...
Add option to upgrade subresource from CSA to SSA
Kubernetes-commit: 65d75501f7d7348db1610e755e654b67c6639897
2024-03-02 05:12:54 +00:00
Sean Sullivan
f759d2e976
increases client-side websocket write deadline to 30 seconds
...
Kubernetes-commit: 1d4be7527f8b2d2c4eb6dcc7ef58b4c3133f6f19
2024-03-01 18:16:44 -08:00
Kubernetes Publisher
d48adf87e6
Merge pull request #122882 from Jefftree/agg-discovery-v2-usage
...
Use Aggregated Discovery v2 types and promote to GA
Kubernetes-commit: 3f25211d69b4412e3e926835067918f86f629f3e
2024-03-01 14:41:02 -08:00
Erik Godding Boye
0b7086f721
feat: add csaupgrade option to upgrade subresource
...
Kubernetes-commit: 9633e25579dfa5449450875b9a238acc7cfac3e8
2024-02-24 15:44:21 +01:00
Tim Allclair
db79dcf23b
Generated code
...
Kubernetes-commit: b7f620c12b7f2dbd7907ccad1ca63811a5c5766b
2024-02-20 20:04:35 -08:00
Patrick Ohly
c3231901f2
dra api: add structured parameters
...
NodeResourceSlice will be used by kubelet to publish resource information on
behalf of DRA drivers on the node. NodeName and DriverName in
NodeResourceSlice must be immutable. This simplifies tracking the different
objects because what they are for cannot change after creation.
The new field in ResourceClass tells scheduler and autoscaler that they are
expected to handle allocation.
ResourceClaimParameters and ResourceClassParameters are new types for telling
in-tree components how to handle claims.
Kubernetes-commit: 39bbcedbcae84bf716923b3f9464968ca70b42e7
2024-02-14 14:38:42 +01:00
cici37
4ceeb096c4
Auto updates
...
Kubernetes-commit: 5d83282823d5ee728d610befb389e3732b4503c3
2024-02-01 01:00:24 +00:00
Mike Spreitzer
61be9f118e
Add DeletionHandlingObjectToName
...
Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com >
Kubernetes-commit: d60a25b2db52d7e180b0962e23cc06e71f36fb29
2024-01-26 13:28:06 -05:00
Jefftree
4bf7f9496e
Use v2 types with agg discovery
...
Kubernetes-commit: 462dd326c2e98d937a96d49002883000efe4b2d6
2024-01-19 16:13:47 -05:00
Kubernetes Publisher
1bed3f14c1
Merge pull request #123529 from thockin/go-workspaces
...
Go workspaces for k/k and k/staging/*
Kubernetes-commit: df366107d16aa2e2cdd620be41e592184f379da4
2024-03-01 20:51:36 +00:00
Kubernetes Publisher
1047f6396b
Merge pull request #123598 from liggitt/remotecommand-cleanup
...
Remotecommand test flake cleanup
Kubernetes-commit: 0d50a398df50b2b7c21ed45c5e186906bc548c7a
2024-02-29 23:59:35 +00:00
Jordan Liggitt
27b1407865
Keep streams from being set up after closeAllStreamReaders is called
...
Kubernetes-commit: 6c1a935da2df8e6ccf1ea6afcf51cb288f355356
2024-02-29 15:31:55 -05:00
Jordan Liggitt
36a771f98c
Make websocket heartbeat test timing less flaky
...
Kubernetes-commit: 26484df2108eff8ad6e06dfc960eae3bdfbf4663
2024-02-29 15:10:28 -05:00
Tim Hockin
b40bb27cf2
Fix up go.mod files after reviews
...
Because of how the previous 100+ commits were done, so changes snuck
thru that properly belong in earlier commits but it's not really
possible to do that without a lot of effort.
We agreed it was OK to "spackle" these cracks with a final commit.
Kubernetes-commit: 21715e6bbd19c932576ff268843d8ead3edb05e4
2024-02-28 16:50:55 -08:00
Kubernetes Publisher
d99a76c51e
Merge pull request #123542 from liggitt/websocket-round-tripper-protocol
...
Use the websocket protocol header, verify selected protocol
Kubernetes-commit: e21a2f5d4f010e49cea1b954bd9b31d94e712c5b
2024-02-28 23:01:57 +00:00
Kubernetes Publisher
2f00261364
Merge pull request #123281 from seans3/remote-command-websocket-beta
...
RemoteCommand over WebSockets to Beta
Kubernetes-commit: f7ca532472f035db2aedc8a1f86639dfd1dc596f
2024-02-28 10:59:48 +00:00
Jordan Liggitt
e8b5ff9ea3
Use the websocket protocol header, verify selected protocol
...
Kubernetes-commit: b394aac4ce36457bd37459a58b4c3536d2f43d86
2024-02-27 18:00:45 -05:00
Tim Hockin
2c68d64279
Remove old gengo detritus
...
Kubernetes-commit: 812d5fff4011df4693dcdace516feec30ebff8ba
2024-02-26 23:31:41 -08:00
Sean Sullivan
7eae79e001
remote command turn on feature gates
...
Kubernetes-commit: a147693deb2e7f040cf367aae4a7ae5d1cb3e7aa
2024-02-13 14:10:40 -08:00
Kubernetes Publisher
8c4efe8d07
Merge pull request #123348 from hoskeri/update-go-x-crypto-19
...
Update x/crypto to 0.19.
Kubernetes-commit: 9a9028983806af26e7b48223f3a92922e94725df
2024-02-21 20:26:51 +00:00
Kubernetes Publisher
e88f4481f2
Merge pull request #123392 from thockin/depreciate
...
Cleanup: s/depreciated/deprecated/g
Kubernetes-commit: 11785bb815d58eb553be3a1fa305464c35d860cc
2024-02-21 12:27:26 +00:00
Tim Hockin
7087b65a74
Cleanup: s/depreciated/deprecated/g
...
Kubernetes-commit: 9f4b82bf3b079fe868effbd2498b61464db6d459
2024-02-18 14:50:55 -08:00
Abhijit Hoskeri
bb04dc47e3
Update x/crypto to 0.19.
...
Main reason is to pick up updated CA roots.
Full diff: https://github.com/golang/crypto/compare/v0.16.0...v0.19.0
Kubernetes-commit: d3a0e296defbb0b55e591e273004e79e7ebfb1fd
2024-02-16 20:18:14 +00:00
Kubernetes Publisher
306b201a2d
Merge pull request #123250 from benluddy/dep-bump-cbor-v2.6.0
...
Bump github.com/fxamacker/cbor/v2 to v2.6.0.
Kubernetes-commit: e305e773bbfe8c5bdf9c57881a875e168b004b8c
2024-02-15 01:24:42 +00:00
Ben Luddy
d23a110967
Bump github.com/fxamacker/cbor/v2 to v2.6.0.
...
Kubernetes-commit: aac43dc96f2b679f0ab030fd3512c7e03b0f2df4
2024-02-12 15:46:17 -05:00
Kubernetes Prow Robot
dc532e7975
Merge pull request #1294 from dnwe/compatibility-matrix
...
chore(docs): refresh compatibility matrix
2024-02-13 10:38:36 -08:00
Kubernetes Publisher
5fb8d886b5
Merge pull request #122152 from pohly/client-go-event-context-fix
...
client-go events: support context.Background() as context
Kubernetes-commit: e51e3c74f720cd299e10a5e0c500a749bb36c251
2024-02-12 17:23:58 +00:00
Kubernetes Publisher
790cfadf62
Merge pull request #121486 from benluddy/cbor-stub
...
KEP-4222: Add stub CBOR serializer.
Kubernetes-commit: 48228bf9dbac308f43abd59a53fdc069fbddee0f
2024-02-10 01:28:08 +00:00
José Carlos Chávez
76174b8af8
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 13:38:07 +00:00
Dominic Evans
3d92ad924f
chore(docs): refresh compatibility matrix
...
Bring the compatibility matrix up-to-date with more recent versions of
Kubernetes
Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com >
2024-01-24 18:28:43 +00:00
Kubernetes Publisher
8092c71d36
Merge pull request #119398 from IvoGoman/feat/clientconfig-override-raw
...
k8s.io/client-go: add ClientConfig option to override raw config
Kubernetes-commit: a1ffdedf782edf1472102b0b99c1467d4ed39753
2024-01-24 02:12:19 +01:00
Tim Hockin
6458380755
Remove defunct references to "vendor"
...
Kubernetes-commit: d772f7719dc55ebfec2e9461b6e14bf17f5301df
2024-01-15 15:56:21 -08:00
Tim Hockin
b0062217a2
Get rid of most references to GOPATH
...
Kubernetes-commit: 10c32b3e2f4345dab582270b1a202dcd92dabd34
2024-01-03 17:14:38 -08:00
Tim Hockin
f1ec2cd017
Make update-codegen conversion work on gengo/v2
...
Kubernetes-commit: 5475797f4330dfd059773dd83e63f09f9b4f617a
2023-12-29 15:08:57 -08:00
Tim Hockin
94320f8765
Re-vendor latest kube-openapi and gengo/v2
...
./hack/pin-dependency.sh k8s.io/kube-openapi latest
./hack/pin-dependency.sh k8s.io/gengo/v2 latest
./hack/update-vendor.sh
Kubernetes-commit: 6f2f3735e04df5e4822176a2784069634c3c74a3
2024-02-26 17:02:22 -08:00
Patrick Ohly
2231ff5ae4
client-go events: support context.Background() as context
...
If, for whatever reason, the context was context.Background(), the additional
goroutine was started and then got stuck forever because
context.Background().Done() is a nil channel. Found when indirectly
instantiating a broadcaster with such a context:
found unexpected goroutines:
[Goroutine 9106 in state chan receive (nil chan), with k8s.io/kubernetes/vendor/k8s.io/client-go/tools/record.NewBroadcaster.func1 on top of the stack:
goroutine 9106 [chan receive (nil chan)]:
k8s.io/kubernetes/vendor/k8s.io/client-go/tools/record.NewBroadcaster.func1()
/home/prow/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/record/event.go:206 +0x2c
created by k8s.io/kubernetes/vendor/k8s.io/client-go/tools/record.NewBroadcaster in goroutine 8957
/home/prow/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/record/event.go:205 +0x1a5
This can be fixed by checking for a nil channel.
Another problem also gets addressed: if Shutdown was called without canceling
the context, the goroutine also didn't stop. Now it waits for the cancelation
context and thus terminates in both cases.
Kubernetes-commit: eed6e29a5b8cfaa20fbc426541d9c74105d430ee
2023-12-01 18:35:28 +01:00
Ben Luddy
dc967a1ca9
Update vendoring to take new CBOR library dependency.
...
Kubernetes-commit: 09a1abda998fc37e2e29a120a82be7c6271656e0
2023-10-17 16:51:52 -04:00
Ivo Gosemann
89528c43be
k8s.io/client-go: add OverridingClientConfig overriding RawConfig
...
Kubernetes-commit: 740b4c456d731922196f8231df9ab585198696d6
2023-07-18 13:40:12 +02:00
Ivo Gosemann
17b5405ddb
k8s.io/client-go: add ClientConfig option to override raw config
...
Kubernetes-commit: db80aa56ed8bcf4115e30fc62d27c8a8d8ec7f92
2023-07-18 13:40:12 +02:00
Kubernetes Publisher
657d7be98b
Merge pull request #122873 from p0lyn0mial/upstream-reflector-usewatchlist-pointer
...
client-go/reflector: make UseWatchList a pointer
Kubernetes-commit: 445869a59bdbd1c587b72b52c5da94c1d1c316a1
2024-01-22 18:20:58 +01:00
Lukasz Szaszkiewicz
202c415847
client-go/reflector: make UseWatchList a pointer
...
until #115478(use streaming against the etcd storage)
is resolved the cacher need a way to disable the streaming.
Kubernetes-commit: 41e706600aea7468f486150d951d3b8948ce89d5
2024-01-19 13:48:29 +01:00
Kubernetes Publisher
ffe7bf60eb
Merge pull request #122842 from pohly/klog-update
...
dependencies: klog v2.120.1
Kubernetes-commit: b27b56a46c4c1e6be0dc2b1a0230d86223a7e903
2024-01-18 21:21:59 +00:00
Kubernetes Publisher
7e651e598d
Merge pull request #122839 from pohly/ginkgo-gomega-update
...
dependencies: ginkgo v2.15.0, gomega v1.31.0
Kubernetes-commit: c82da711b0e2184f851675aac4596bbd0f74763f
2024-01-18 21:21:57 +00:00
Patrick Ohly
b2c0677f40
dependencies: klog v2.120.1
...
Kubernetes-commit: e2222f1e304831cbbc57b61afa373612297055fb
2024-01-18 16:58:40 +01:00
Patrick Ohly
eab7383fd8
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
aa81cb55f0
Merge pull request #122142 from pohly/client-go-events-adapter-context
...
client-go events: also support context for NewEventBroadcasterAdapter
Kubernetes-commit: a02a00ecd76fb99ed43a054ed6eb6698426b01f9
2024-01-18 09:21:31 +00:00
Kubernetes Publisher
b13c4f4b00
Merge pull request #122571 from p0lyn0mial/upstream-client-go-watch-list-fg
...
client-go/features: introduce WatchListClient feature gate
Kubernetes-commit: 026a27e5eb431c553d1204817cbf09f1005eca9b
2024-01-15 21:21:53 +00:00
Kubernetes Publisher
fb1e77b992
Merge pull request #122706 from pacoxu/klog-upgrade
...
bump klog to v2.120.0
Kubernetes-commit: 823ecb58f68fbe0a4b37b32e11e75c6f2e0f467c
2024-01-11 21:21:47 +00:00
Paco Xu
a3cbf5a7be
bump klog to v2.120.0
...
Kubernetes-commit: 3c86d21316c25b52a1cf3f9703a0bc2cbe97131c
2024-01-11 17:35:07 +08:00
Kubernetes Publisher
b0cf21f3e8
Merge pull request #122555 from p0lyn0mial/upstream-client-go-fg-provider-with-types
...
client-go/features: introduce feature gates
Kubernetes-commit: 0341e8294abffdfbdd4a038e0fd49d7f35ddc30a
2024-01-10 20:49:12 +01:00
Lukasz Szaszkiewicz
e8a81a3a43
client-go/features: warn when ordering initialization issue
...
ReplaceFeatureGates logs a warning when the default env var
implementation has been already used.
Such a situation indicates a potential ordering issue and usually is unwanted.
Kubernetes-commit: 04bbd3481f70825eea54b4b154a04d2496dcf652
2024-01-10 17:15:01 +01:00
Lukasz Szaszkiewicz
49ba51431a
client-go/features: introduce WatchListClient feature gate
...
Kubernetes-commit: 7773b0f53fd5003c1e018321efb791e8980cd02f
2024-01-03 13:32:02 +01:00
Lukasz Szaszkiewicz
9f8ed7bc90
client-go/features: move the defaultKubernetesFeatureGates variable to the new file
...
Kubernetes-commit: 57ec7d20e89990d62ef85835cd37cc32ea6a418e
2024-01-03 13:24:35 +01:00
Lukasz Szaszkiewicz
ca4f3a73f7
client-go/features: introduce feature gates
...
This PR add a feature gates mechanisim to client-go
as described in https://docs.google.com/document/d/1g9BGCRw-7ucUxO6OtCWbb3lfzUGA_uU9178wLdXAIfs
In particular:
- Adds a default feature gate implementation based on environment variables.
- Adds a set of methods for reading, overwriting the default implementation, and adding features to an external registry.
Co-authored-by: deads2k <deads@redhat.com >
Co-authored-by: Ben Luddy <bluddy@redhat.com >
Kubernetes-commit: d74c57d4f592d20a992afb54b1ee64f56215210e
2024-01-02 12:46:15 +01:00
Kubernetes Publisher
5a0a424792
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 17:30:06 +00:00
Madhav Jivrajani
4106282f90
.*: 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
96e9c8d6f1
Merge pull request #122395 from pohly/ginkgo-gomega-update
...
dependencies: gomega v1.30.0 + ginkgo v2.13.2
Kubernetes-commit: 7897910469aa091ebf6576740d055a7137fa147c
2023-12-20 09:21:10 +00:00
Patrick Ohly
abce78fd54
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
0a514be22c
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:19:57 +00:00
weilaaa
c609c97b33
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
Ricardo Lopes
12b0e099db
Migrate client-go/metadata to contextual logging ( #122225 )
...
* client-go: migrate metadata to contextual logging
Signed-off-by: Ricardo Lopes <ricardoapl.dev@gmail.com >
* client-go: test for metadata contextual logs
Signed-off-by: Ricardo Lopes <ricardoapl.dev@gmail.com >
* refactor: extract context for table driven testing
Signed-off-by: Ricardo Lopes <ricardoapl.dev@gmail.com >
* refactor: pass context as first parameter
Signed-off-by: Ricardo Lopes <ricardoapl.dev@gmail.com >
---------
Signed-off-by: Ricardo Lopes <ricardoapl.dev@gmail.com >
Kubernetes-commit: 86ab185fa1e98e249fe3e380217099832fe22a4e
2023-12-14 06:26:45 +00:00
Kubernetes Publisher
e3d7e06bd6
Merge pull request #122069 from linxiulei/le_opt0
...
Optimistically update leader lock
Kubernetes-commit: 583a79a4569b5cbbff12131ebcc612d5cf659ae1
2023-12-14 05:20:06 +00:00
Kubernetes Publisher
feecac4b44
Merge pull request #121759 from thockin/fix_api_violations
...
Fix "list_type_missing" API violations in meta/v1
Kubernetes-commit: 8a22571ebb7628b2dd2c2faf453293040b7efaef
2023-12-14 01:20:15 +00:00
Kubernetes Publisher
9434e7539b
Merge pull request #117046 from howardjohn/client/add-indexer-after-start
...
client-go: allow adding indexes after informer starts
Kubernetes-commit: db82260c65df9cedaf93e924a2401b4e55a8a2a0
2023-12-13 21:20:02 +00:00
Patrick Ohly
8468c261bc
client-go events: also support context for NewEventBroadcasterAdapter
...
27a68aee3a4834 introduced context support. In order to use that
also with NewEventBroadcasterAdapter, a variant of the call is needed to allow
the caller to specify the context.
The `logcheck:context` comment ensures that code which is meant to be
contextual uses the new call.
Kubernetes-commit: f8e25eff926c640c86daa46222bfaf8d625e75d7
2023-12-01 09:00:59 +01:00
Eric Lin
2a48f1ee02
leaderelection: Instrument for when slowpath is exercised
...
Signed-off-by: Eric Lin <exlin@google.com >
Kubernetes-commit: 1e54c050936be1a1e3e5758718ebca86096dbaea
2023-11-27 13:10:24 +00:00
Eric Lin
3c7c00d2d6
leaderelection: optimistically update leader lock
...
Signed-off-by: Eric Lin <exlin@google.com >
Kubernetes-commit: 1d9f7fd516b4787f5ef32692711d5ae3031e794e
2023-11-25 22:04:32 +00:00
Tim Hockin
e9d1484a8e
Re-vendor k8s.io/kube-openapi
...
./hack/pin-dependency.sh k8s.io/kube-openapi 778a5567bc1edaed92a4de9c07f90199c67953fa
./hack/update-vendor.sh
Kubernetes-commit: 1f55357d9937f076f532a2c1aa104593b9f6c49a
2023-11-13 10:59:57 -08:00
Kubernetes Publisher
84a6fe7e40
Merge pull request #121808 from cpanato/go-update-main
...
[go] Bump images, dependencies and versions to go 1.21.4
Kubernetes-commit: 6ba7258a0f3f73629560fc30016b2e35c8e7ae9c
2023-11-13 17:17:42 +00:00
cpanato
7f07a956f8
update go.mod
...
Signed-off-by: cpanato <ctadeu@gmail.com >
Kubernetes-commit: 9e5b8402bb95eb82541099e77c3a8b0ccd31297f
2023-11-08 08:46:15 -06:00
Kubernetes Publisher
86d49e7265
Merge pull request #113374 from ahmedtd/kep-3257-projected-types
...
Implement ClusterTrustBundlePEM projected volume
Kubernetes-commit: 9f319c32064f8b72d368df65fde4e37e250f8230
2023-11-04 01:16:34 +00:00
John Howard
785e19661f
client-go: allow adding indexes after informer starts
...
Kubernetes-commit: d96a9858d396d7f418d24ea47bdc92ef8429f707
2023-03-31 15:57:18 -07:00
Taahir Ahmed
59c256a926
Regenerate for ClusterTrustBundlePEM projected volume API
...
Kubernetes-commit: 599fdb7adde5658dadb6a149c40624b4342fc909
2023-01-24 21:19:59 -08:00
Taahir Ahmed
ac369c3042
Define ClusterTrustBundlePEM projected volume
...
This commit defines the ClusterTrustBundlePEM projected volume types.
These types have been renamed from the KEP (PEMTrustAnchors) in order to
leave open the possibility of a similar projection drawing from a
yet-to-exist namespaced-scoped TrustBundle object, which came up during
KEP discussion.
* Add the projection field to internal and v1 APIs.
* Add validation to ensure that usages of the project must specify a
name and path.
* Add TODO covering admission control to forbid mirror pods from using
the projection.
Part of KEP-3257.
Kubernetes-commit: ecfdc8fda55923c18708488ec1561a4fcf9f3e33
2022-10-21 19:50:01 -07:00
Kubernetes Publisher
66e57f7675
Merge pull request #121552 from pohly/klog-update
...
klog v2.110.1 update
Kubernetes-commit: da61382068671c3e16782a9b45e7f2159ac0feb9
2023-11-01 17:16:20 +00:00
Patrick Ohly
8b96b9b888
dependencies: klog v2.110.1
...
Dropping a newline at the end of the message when using klog calls is an
intentional improvement (https://github.com/kubernetes/klog/pull/378 )
Kubernetes-commit: 878d037d3ba8fc4f11bf45a6cf5a66301ba89d82
2023-10-16 10:03:54 +02:00
Kubernetes Publisher
c13269dd6b
Merge pull request #116516 from aojea/servicecidr
...
KEP-1880 Multiple ServiceCIDR ( and IPAddress allocation)
Kubernetes-commit: 6abff7457e3a722fd217a0a58d1992b4002d496d
2023-11-01 05:16:07 +00:00
Kubernetes Publisher
7523a344f7
Merge pull request #121575 from apelisse/update-smd
...
Update sigs.k8s.io/structured-merge-diff to v4.4.0
Kubernetes-commit: 593a17d3b6381bfdbf3bc3b36f56cad30d1531df
2023-11-01 01:17:35 +00:00
Kubernetes Publisher
965bc8db9d
Merge pull request #121104 from carlory/kep-3751-api-changes
...
[KEP-3571] introduce the VolumeAttributesClass API
Kubernetes-commit: dba565193c2d59e9d5bf08fb29b8662616afe087
2023-10-31 21:16:17 +00:00
carlory
6278c99b77
generated changes
...
Kubernetes-commit: 56ab6c5942171cd1e598fc7c25a21f5aa457f36f
2023-10-31 10:13:04 +08:00
Kubernetes Publisher
477cb782cf
Merge pull request #121089 from tkashem/apf-v1
...
Promote APF API to v1
Kubernetes-commit: f5a5d83d7c027aba86e18c52da8ec4cd14179be3
2023-10-31 05:16:14 +00:00
Antonio Ojea
60aa89a1ab
make update with the new API with arrays
...
Kubernetes-commit: fee07ad6080ccd6e0e8241e10b1b0330f57c64be
2023-10-29 19:01:10 +00:00
Abu Kashem
5a34ab53bd
apiserver: add generated files for flowcontrol api change
...
Kubernetes-commit: 730d10a8fb918e75c22d57267adf34a8fbb5cee1
2023-10-27 19:27:07 -04:00
Antoine Pelisse
ce4f256a25
Update sigs.k8s.io/structured-merge-diff to v4.4.1
...
Kubernetes-commit: dec443b305a0240f2a9d7726c6a0c46beec19a1a
2023-10-27 10:21:06 -07:00
Antonio Ojea
824910b3a9
make update
...
Change-Id: I4007d4f6dda24b5c74f602d35191556f315de222
Kubernetes-commit: 8182c4d9ec8c254d7291f7b451bfe47aadc1c691
2023-10-18 00:37:58 +00:00
Abu Kashem
20fd67fa15
apiserver: generate code for apf flowcontrol v1 API
...
run:
- hack/update-codegen.sh
- hack/update-openapi-spec.sh
Kubernetes-commit: 5972037ffd6c1aea0f1c99ed430d1d78204a48a0
2023-10-10 13:49:38 -04:00
Kubernetes Publisher
30eba26adb
Merge pull request #121524 from carlory/gomega
...
bump gomega to 1.29.0
Kubernetes-commit: ec297aa13a03f53f04023cd897af50dbfed31e0f
2023-10-27 17:30:27 +00:00
carlory
8ec95e1869
bump gomega to 1.29.0
...
Kubernetes-commit: 760abc2a82130d45607eeead4011afa8b0f81e6d
2023-10-26 09:47:49 +08:00
Kubernetes Publisher
4028f5ba6e
Merge pull request #121338 from dims/working-otel-bump
...
Bump otel and other dependencies for CVE-2023-45142
Kubernetes-commit: d0084356b3cabdafcfc140d19ad8d544b2fc9b5d
2023-10-26 09:15:29 +00:00
Davanum Srinivas
08f1ffe578
working-config-otel
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 702d911e22604aa69b42f77804c27caaab7e4def
2023-10-18 18:47:37 -04:00
Kubernetes Publisher
e2e59f3539
Merge pull request #119186 from seans3/stream-translator-proxy
...
Stream Translator Proxy and FallbackExecutor for WebSockets
Kubernetes-commit: 87981480f33790225628824943217bd6bb7564bb
2023-10-24 17:15:43 +00:00
Kubernetes Publisher
c92537416a
Merge pull request #120397 from ty-dc/StaticCheck
...
cleanup: omit comparison with bool constants
Kubernetes-commit: 441d4b54aec4eebbe55d9c3519691eb9833fa486
2023-10-24 03:51:50 +00:00
Kubernetes Publisher
b0036672f5
Merge pull request #116065 from sanposhiho/match-label-key-alternative
...
feature(scheduler): implement matchLabelKeys in PodAffinity and PodAntiAffinity
Kubernetes-commit: 581552eaf0b4a6689f2a02012804f2780ff7efdf
2023-10-23 19:48:20 +00:00
Kubernetes Publisher
5f697abdfd
Merge pull request #121363 from p0lyn0mial/upstream-reflector-consistency-check
...
client-go/reflector: introduce a data consistency check for the watch-list feature.
Kubernetes-commit: 0dc900cebe079efaf2087adc6fee6eb88d176020
2023-10-23 15:59:07 +00:00
Kubernetes Publisher
33d14001db
Merge pull request #120757 from alexzielenski/apiserver/openapi/invalid-default
...
Update `kube-openapi` to Remove invalid defaults from fields with custom marshalling
Kubernetes-commit: 31c679f65cbf62efec7597133e6d8e78d8473c4d
2023-10-20 23:24:14 +00:00
Alexander Zielenski
b5925219d4
update generated code and openapi
...
Kubernetes-commit: 0a6d9531f40f63543591d1515deb2ac05b4c62f3
2023-10-17 17:09:48 -07:00
Alexander Zielenski
30f741e67c
pin openapi
...
Kubernetes-commit: 4d21a23be35a03852e0e7b188de11d9f8dc6bc57
2023-10-17 16:48:10 -07:00
Kubernetes Publisher
435ce6f2a8
Merge pull request #121010 from Jefftree/decouple-openapi-v2v3-config
...
Decouple openapi v2v3 config
Kubernetes-commit: ac66f3d466caee27bcc0f66a04ceec9bf63750bd
2023-10-16 23:13:08 +00:00
Kubernetes Publisher
9f0ec66a5d
Merge pull request #119802 from takirala/tga/update-ErrGroupDiscoveryFailed
...
client-go: chore: implement `Is` interface for `ErrGroupDiscoveryFailed`
Kubernetes-commit: b5cc6aab484ef048a84a0965f288d035f0e5f298
2023-10-16 23:13:06 +00:00
Kubernetes Publisher
17c66cc83d
Merge pull request #119026 from AxeZhan/sleepAction
...
Introducing Sleep Action for PreStop Hook
Kubernetes-commit: f6ba25fdbda1f6159ad63dcbb16f394b98d3a2c8
2023-10-16 23:13:05 +00:00
AxeZhan
5cf64182aa
codegen
...
Kubernetes-commit: 5c0618b848d9e0d7fbcb2d7a5c41e85735c173fd
2023-10-16 19:50:28 +08:00
Kubernetes Publisher
52c50bf6c0
Merge pull request #121229 from aojea/remove_cluster_cidr
...
remove ClusterCIDR alpha API
Kubernetes-commit: 4d8a51acacaf0df9bfbaee8cd43f15dbdc85b146
2023-10-15 03:12:51 +00:00
Kubernetes Publisher
46e82c57b2
Merge pull request #120248 from pacoxu/grpc-container-probe
...
remove feature gate GRPCContainerProbe
Kubernetes-commit: 43e617f2521e9f52156aba9822245a2b5eb773f1
2023-10-14 23:13:14 +00:00
Antonio Ojea
656ec39ea1
remove ClusterCIDR
...
KEP-2593 proposed to expand the existing node-ipam controller
to be configurable via a ClusterCIDR objects, however, there
were reasonable doubts on the SIG about the feature and after
several months of dicussions we decided to not move forward
with the KEP intree, hence, we are going to remove the existing
code, that is still in alpha.
https://groups.google.com/g/kubernetes-sig-network/c/nts1xEZ--gQ/m/2aTOUNFFAAAJ
Change-Id: Ieaf2007b0b23c296cde333247bfb672441fe6dfc
Kubernetes-commit: c2d473f0d438cedab2f1831d23457d24961e0f4e
2023-10-13 21:31:29 +00:00
Kubernetes Publisher
bc7002f524
Merge pull request #120735 from Jefftree/request-body
...
Bump kube-openapi with v3 marshal and requestBody required marking
Kubernetes-commit: e93e8eac0ef1b26384e5481b67c7d04fe211a243
2023-10-12 23:17:34 +00:00
Jefftree
f68660d6a7
bump kube-openapi
...
Kubernetes-commit: e3098225eaf7b5bb9d5de1f259c2dbdc2062faa8
2023-10-12 18:22:05 -04:00
Kubernetes Publisher
d02858f519
Merge pull request #121106 from aojea/ipaddress_uid
...
Remove Ipaddress uid
Kubernetes-commit: f9d987c7c8dfa36f096c38454c1ae672bb0eb56c
2023-10-12 03:13:00 +00:00
Arda Güçlü
57d597c1d6
Add shortname ambiguity warning in shortcut expander ( #117668 )
...
* Add warning handler callback function in shortcut expander
Currently, errors in client-go are propagated back to the callers via
function returns. However, there is no elegant way for just warning users.
For example, when user wants to get a resource with it's short name format
and if there are multiple resources belonging to this short name, we need to
warn user about this ambugity which one is picked and which ones are discarded.
Not only to overcome this particular case mentioned above, but also propose a
way for the possible warnings in the future, this commit adds a warningHandler
callback function in shortcutExpander.
* Add warningPrinter functionality in ConfigFlags
ConfigFlags has neither warning user in a standardized
format functionality nor passing warning callback functions to other upper level
libraries such as client-go.
This commit adds an ability that user can set warningPrinters
according to their IOStreams and this warningPrinters will be used
to raise possible warnings happening not only in cli-runtime but
also in client-go.
* Pass warning callback function in ConfigFlags to shortcutExpander
This commit passes warning callback function to print possible
warnings happened in shortcut expander to warn user in a
standardized format.
* Add integration test for CRDs having ambiguous short names
This commit adds integration test to assure that warning message
related to this ambiguity is printed when resources are being retrieved via their short name
representations in cases where multiple resources have same
short names.
This integration test also ensures that the logic behind which resource
will be selected hasn't been changed which may cause disperancies in
clusters.
* Remove defaultConfigFlag global variable
* Move default config flags initialization into function
* Skip warning for versions of same group/resource
* Run update-vendor
* Warn only once when there are multiple versions registered for ambiguous resource
* Apply gocritic review
* Add multi-resource multi-version ambiguity unit test
Kubernetes-commit: a504aed54d028dbc8ea2508142c94d309f5f1ec6
2023-10-11 18:04:11 +03:00
Kubernetes Publisher
cf4002bbbf
Merge pull request #121111 from dashpole/update_otel_deps
...
Update OpenTelemetry Dependencies
Kubernetes-commit: eafebcc9e368d6aeaab0ce5ec4fd56b94174d0c4
2023-10-11 07:12:43 +00:00
Antonio Ojea
55f8f3ffa2
make update
...
Change-Id: I61be34cff942264acb2f45fe7e1c8538f807cb4e
Kubernetes-commit: e9957d79aae244d3a956d9f7634ad45a9a3364b4
2023-10-10 11:01:56 +00:00
Lukasz Szaszkiewicz
0f984dc7fc
client-go/reflector: introduce a data consistency mechanism for the watch-list feature.
...
checkWatchListConsistencyIfRequested performs a data consistency check only when
the KUBE_WATCHLIST_INCONSISTENCY_DETECTOR environment variable was set during a binary startup.
The consistency check is meant to be enforced only in the CI, not in production.
The check ensures that data retrieved by the watch-list api call
is exactly the same as data received by the standard list api call.
Note that this function will panic when data inconsistency is detected.
This is intentional because we want to catch it in the CI.
Kubernetes-commit: b31e7793d0d873a71c90caf8455556aa905cf88d
2023-10-06 14:26:47 +02:00
John Howard
0b5d6dfee7
dependencies: update otel-go dependencies
...
Kubernetes-commit: dc334b953d99f233b56ec2cd78bff218a00152a0
2023-10-05 12:52:33 -07:00
Kubernetes Publisher
b4ee45cc0a
Merge pull request #121117 from MadhavJivrajani/bump-x-net
...
[CVE-2023-39325] .: bump golang.org/x/net to v0.17.0
Kubernetes-commit: 7ee2af5cc5fee6a6f837975a70a35ce681a8e9d4
2023-10-10 19:13:10 +00:00
Madhav Jivrajani
9f19d0f211
.: bump golang.org/x/net to v0.17.0
...
Bumping golang.org/x/net in light of CVE-2023-39325 and CVE-2023-44487.
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com >
Kubernetes-commit: fc7c951d5a5b8b75dfa105e3bea7bbddaf4c792e
2023-10-10 23:07:19 +05:30
Kubernetes Publisher
9518c802be
Merge pull request #121082 from pohly/ginkgo-gomega-update
...
dependencies: ginkgo v2.13.0, gomega v1.28.0
Kubernetes-commit: 755644a169ad495a34bc5e1db502962fc6dd3750
2023-10-10 15:12:51 +00:00
Patrick Ohly
fa053c26e6
dependencies: ginkgo v2.13.0, gomega v1.28.0
...
Besides simply staying up-to-date, ginkgo v2.13.0 adds a `PreviewSpecs` which
will be used for introspection of the E2E test suites.
Kubernetes-commit: 79355caa565cc34e8726c427562c9f109ebe0e34
2023-10-09 19:27:06 +02:00
Kubernetes Publisher
5b14e64aff
Merge pull request #120975 from ardaguclu/close-heartbeat-explicitly
...
Close websocket heartbeat explicitly when unexpected closure received
Kubernetes-commit: d0dfe6433444fb114fc119a8b1066e1601f049fe
2023-10-06 11:11:50 +00:00
Arda Güçlü
583e50d008
Use timeout function to detect transient errors
...
Kubernetes-commit: a888fef242fd59bc3871c67099c7f5e9449873c2
2023-10-06 08:55:22 +03:00
Arda Güçlü
9a88950e38
revert back to IsUnexpectedCloseError check
...
Kubernetes-commit: 914210ee9a6df6927019f200e90534edd1460fea
2023-10-05 12:04:06 +03:00
Kubernetes Publisher
0a782d6adb
Merge pull request #120729 from pohly/events-context
...
k8s.io/client-go/tools/[events|record]: support context
Kubernetes-commit: f936f69cf994146650c287a95fa436d1d7352835
2023-10-05 03:18:13 +00:00
Kubernetes Publisher
ca718630c6
Merge pull request #120984 from p0lyn0mial/upstream-reflector-always-fallback-to-listwatch
...
reflector: fallback to the previous mode on any error
Kubernetes-commit: c9bd841cdf1310a2110267197b9db9432617582b
2023-10-04 10:22:44 +00:00
Lukasz Szaszkiewicz
1e0855a7ac
reflector: fallback to the previous mode on any error
...
originally we honored only apierrors.IsInvalid
but decided to fallback on every error
because it is better to make progress than deadlocking
Kubernetes-commit: 4b3915017950a114124a88c5d308bd8bfb9ec48e
2023-10-04 08:17:10 +02:00
Kubernetes Publisher
fbb1575728
Merge pull request #120980 from p0lyn0mial/upstream-client-go-close-watcher
...
reflector: close an established watcher when the StopCh was closed
Kubernetes-commit: 389e60fb2e43e7c13d67e4d9d3a95ed4f088917a
2023-10-03 14:56:06 +02:00
Lukasz Szaszkiewicz
2c9d749027
reflector: close an established watcher when the StopCh was closed
...
Kubernetes-commit: 26f113be2fc71c7a41a59145eee5d4da9d062b9e
2023-10-03 13:49:21 +02:00
Arda Güçlü
e95d92dbc6
Close websocket heartbeat explicitly when unexpected closure received
...
Kubernetes-commit: e1ae906048003145441fb1d4ecce4c13acf5cb19
2023-10-03 12:05:26 +03:00
Kubernetes Publisher
d6dc079df2
Merge pull request #120716 from xrstf/fix-typos
...
Fix typos
Kubernetes-commit: 622509830c1038535e539f7d364f5cd7c3b38791
2023-09-30 10:21:56 +00:00
Kubernetes Publisher
6b97f71afc
Merge pull request #119865 from charles-chenzz/bump_deps
...
bump github.com/emicklei/go-restful/v3 to v3.11.0
Kubernetes-commit: bf1fa0c6691bb3bc6c5c03f900c53ed609e580a4
2023-09-28 14:31:46 +00:00
Jefftree
c0416e6354
bump kube-openapi
...
Kubernetes-commit: 555c1b8091c2312e7b3f9002fc8a4787e759ef31
2023-09-27 14:02:53 -04:00
Kubernetes Publisher
52cc500823
Merge pull request #120865 from aojea/remotecmd_flake
...
deflake TestWebSocketClient_HeartbeatSucceeds
Kubernetes-commit: e602e9e03cd744c23dde9fee09396812dd7bdd93
2023-09-26 06:50:14 -07:00
Antonio Ojea
011db228a8
deflake TestWebSocketClient_HeartbeatSucceeds
...
Change-Id: I1f3331255ed81183b25ec24084c00d0cf7dfb510
Kubernetes-commit: 4a74958b2df7ecd9e6a4867f7b10f1402cb2e215
2023-09-25 10:31:46 +00:00
Kubernetes Publisher
34d1b64e67
Merge pull request #120799 from aojea/workqueue_test
...
workqueue unit tests to assert collapsing behaviors
Kubernetes-commit: cde6a46a483a0cc7d3f2404db506e1c24ecd4e9d
2023-09-21 18:21:40 +00:00
Antonio Ojea
374e3638f2
workqueue unit tests to assert collapsing behaviors
...
Change-Id: If4bf54c3af603c17de49055960f9a76e7d38aab3
Kubernetes-commit: 8a31bb6786c2d3600bade49de7a64a026802bd6d
2023-09-21 10:48:01 +00:00
Kubernetes Publisher
657ffa5263
Merge pull request #120752 from p0lyn0mial/upstream-client-go-initial-events-value
...
cache/reflector: check the value of the initial-events-end annotation
Kubernetes-commit: 09200e9c92784f6fb9210e6287e306649a731673
2023-09-20 06:21:27 +00:00
Lukasz Szaszkiewicz
d0ea06d597
cache/reflector: check the value of the initial-events-end annotation
...
Kubernetes-commit: 04668c00432cbd552b08eb94f829643facbd2061
2023-09-19 12:59:23 +02:00
Kubernetes Publisher
b5b9332330
Merge pull request #120694 from aojea/ws_healthchec
...
add loging and bump timers to avoid races
Kubernetes-commit: 10d487313d602da61def2869c7066ecc754a591d
2023-09-18 10:38:13 +00:00
Patrick Ohly
cf07629bfe
k8s.io/client-go/tools/events: pass context into EventSink methods
...
Because the EventBroadcaster code now has a a context, changing the EventSink
interface so that the methods accepts a context instead of using context.TODO
becomes possible.
Kubernetes-commit: 5dc540ff57eed5d0e6bc8476f95fe03b7a983cf5
2023-09-18 12:17:14 +02:00
Patrick Ohly
3595e5242a
k8s.io/client-go/tools: support context for event recording
...
Using StartRecordingToSinkWithContext instead of StartRecordingToSink and
StartLogging instead of StartStructuredLogging has several advantages:
- Spawned goroutines no longer get stuck for extended periods of
time during shutdown when passing in a context that gets canceled.
- Log output can be directed towards a specific logger instead of the global
default, for example one which writes to a testing.T instance.
- The new methods return an error when something went wrong instead of
merely recording the error.
That last point is the reason for deprecating the old methods instead of merely
adding new alternatives.
Setting a context when constructing an EventBroadcaster makes calling Shutdown
optional. It can also be used to specify the logger.
Both EventRecorder interfaces in tools/events and tools/record now have a
WithLogger helper. Using that method is optional, but recommended to support
contextual logging properly. Without it, errors that occur while emitting an
event are not associated with the caller.
Kubernetes-commit: 27a68aee3a48340f7c14235f7fc24aa69aaeb8f6
2023-09-18 09:13:22 +02:00
Christoph Mewes
0d1af04557
fix typo dervied => derived
...
Kubernetes-commit: 62275e3cc8c7de6f852bb04ba6cf521d36443580
2023-09-17 11:26:19 +02:00
Kubernetes Publisher
08f892964c
Merge pull request #119526 from sttts/sttts-idiomatic-cached
...
kube-openapi/cached: bump and adapt to more go-idiomatic caching library
Kubernetes-commit: f551940626532e790c05094293e0d8bb5b76e3d5
2023-09-15 22:22:46 +00:00
Antonio Ojea
ea6e035481
add loging and bump timers to avoid races
...
Change-Id: I6da35b6fb33c939f3f92f8ebf4c6a18bdf1644e4
Kubernetes-commit: 40618b765ccb1a0e75f7063534f9645d1df57f7a
2023-09-15 08:23:58 +00:00
Dr. Stefan Schimanski
278669d869
hack/update-vendor.sh
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
Kubernetes-commit: 6c59e8be5e2bc97c8e850070ffb3025199c05df2
2023-09-13 08:23:06 +02:00
Kubernetes Publisher
908cc0a333
Merge pull request #120513 from devincd/fix-typo
...
fix typo in client-go package
Kubernetes-commit: 10f9d5ce6d4e65a1f0d3ad91ec9ff47150b749e6
2023-09-12 22:21:12 +00:00
Kubernetes Publisher
44a68eea8f
Merge pull request #120508 from aojea/aojea_owner
...
add aojea as client-go approver
Kubernetes-commit: b7e3b9f7d9f8784cfb0cf0bb48794162527ccb44
2023-09-11 22:22:53 +00:00
Kubernetes Publisher
a73949f10a
Merge pull request #120008 from skitt/drop-intstr-ptr-wrappers
...
Use ptr.To to retrieve intstr addresses
Kubernetes-commit: 33c5bd631d990f907f89f66cdf8088d252ab251b
2023-09-09 18:21:34 +00:00
Kubernetes Publisher
a52e8a122e
Merge pull request #120499 from tukwila/gorilla/websocket_v1.5.0
...
bump: upgrade gorilla/websocket from v1.4.2 to v1.5.0
Kubernetes-commit: f6a87aebe6f83336b1dc7d4ca6e69b19ca55cd94
2023-09-08 18:23:38 +00:00
devincd
f242a563ef
fix typo in client-go package
...
Signed-off-by: devincd <505259926@qq.com >
Kubernetes-commit: 975da2fb2393350db504e50652b17c70206e1407
2023-09-08 10:31:07 +08:00
Antonio Ojea
5ac9cf819f
add aojea as client-go approver
...
After 12 months as reviewer, constantly reviewing and contributing
to client-go, I think is fair to move to the next ladder.
Change-Id: I49e579dcefcd39c6f0b29400c90467df00719cca
Kubernetes-commit: cc77b97c5e9cc9f778016b9d260c66bf7b277448
2023-09-07 21:16:19 +00:00
guangli.bao
951672fc13
bump: upgrade gorilla/websocket from v1.4.2 to v1.5.0
...
Kubernetes-commit: 93d93258b19ff3d2e85b5dc60e89df1ebdc689ca
2023-09-07 22:27:58 +08:00
Kubernetes Publisher
53c02afd1b
Merge pull request #119334 from kmala/serverapply
...
update the dependency sigs.k8s.io/structured-merge-diff/v4 to latest tag
Kubernetes-commit: cf8f9a8d07770352ec0e976ebac77dffa92f0b04
2023-09-07 02:40:14 +00:00
Kubernetes Publisher
f5a7a42bbc
Merge pull request #119157 from seans3/websocket-executor
...
WebSocket Client and V5 RemoteCommand Subprotocol
Kubernetes-commit: 6013381508d2d37961c95fd49d91642bfeffaf74
2023-09-06 02:20:41 +00:00
tao.yang
0447e1f9ce
cleanup: omit comparison with bool constants
...
Signed-off-by: tao.yang <tao.yang@daocloud.io >
Kubernetes-commit: b35357b6c08f21ba0fd312536051394c2567ec79
2023-09-04 16:59:23 +08:00
Paco Xu
92c5c93353
remove GAed FG GRPCContainerProbe
...
Kubernetes-commit: 7e7b67f2ccd38380120b6da2ccb10ae74970a7a6
2023-08-30 10:29:37 +08:00
Stephen Kitt
f0c65afe82
Use ptr.To to retrieve intstr addresses
...
This uses the generic ptr.To in k8s.io/utils to replace functions and
code constructs which only serve to return pointers to intstr
values. Other uses of the deprecated pointer package are updated in
modified files.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: aa89e6dc978bf88653d893284248039b776aed54
2023-08-17 12:12:12 +02:00
Tarun Gupta Akirala
5a38750180
fix: add code comments
...
Kubernetes-commit: 1863a808b2082ddd8d116e6b31fd41de412e8a20
2023-08-10 10:50:01 -07:00
charles-chenzz
bf89966e2c
bump github.com/emicklei/go-restful/v3 to v3.11.0.
...
Kubernetes-commit: 409b46576ff7848bf51b9d70165b693018173ebc
2023-08-09 23:31:06 +08:00
Tarun Gupta Akirala
f93655277b
client-go: chore: implement Is interface for ErrGroupDiscoveryFailed
...
Signed-off-by: Tarun Gupta Akirala <takirala@users.noreply.github.com >
Kubernetes-commit: 6aad00ff73d10378d33d615505239c5373a1108b
2023-08-07 12:08:09 -07:00
Keerthan Reddy Mala
77918e1951
update the dependency sigs.k8s.io/structured-merge-diff/v4 to latest tag
...
Kubernetes-commit: d2df65ba6c91c1337e07373c254c2118aec3700a
2023-07-14 09:47:59 -07:00
Sean Sullivan
b7d73dd18c
StreamTranslator and FallbackExecutor for WebSockets
...
Kubernetes-commit: 168998e87bfd49a1b0bc6402761fafd5ace3bb3b
2023-07-06 21:22:07 -07:00
Sean Sullivan
fd1e22bd8f
WebSocket Client and V5 RemoteCommand Subprotocol
...
Kubernetes-commit: a0d6a815fcc02cbfea1bb22d13a8e896ecbe116c
2023-07-06 21:22:07 -07:00
Kubernetes Publisher
4783d28359
Merge pull request #119410 from Jefftree/kubectl-cleanup
...
Cleanup kubectl legacy server fallback
Kubernetes-commit: ea3353dd6b8c3ba52516230a5e70b1af0ff9192b
2023-09-03 18:00:04 +00:00
Kubernetes Publisher
5e052e4835
Merge pull request #119870 from Jefftree/agg-discovery-406
...
Fallback to legacy discovery on a wider range of conditions
Kubernetes-commit: 42275daaaa96aac0d5191f1f5bf5d4ce6d1c474d
2023-09-01 18:00:31 +00:00
Kubernetes Publisher
f28f485cb4
Merge pull request #120259 from SataQiu/clean-apf-20230830
...
apf: remove v1alpha1 API
Kubernetes-commit: efadb94a74d64cb821e990700c5bd05a805857ac
2023-09-01 04:47:30 +00:00
Kubernetes Publisher
5e5ba6b91d
Merge pull request #120327 from liggitt/json-patch
...
Revert to json-patch 4.12.0
Kubernetes-commit: 34aaf2b972c95c7a3591d8d49c798dba348ee5c9
2023-09-01 04:47:24 +00:00
Jordan Liggitt
f6f4d3c7eb
Revert to json-patch 4.12.0
...
Kubernetes-commit: 741f1461571007fcf4cf3edbd121d6ef0c596c72
2023-08-31 19:01:37 -04:00
SataQiu
def2075eac
apf: remove v1alpha1 API
...
Kubernetes-commit: 2825519da2c176ac81d2ec6b1500ef8e68377db1
2023-08-30 17:20:29 +08:00
Kubernetes Publisher
fb2e668965
Merge pull request #120218 from rakshitgondwal/feat/protobuf-version-update
...
feat: update google.golang.org/protobuf to v1.31.0
Kubernetes-commit: 8b4f5bb54b3c2f0e671e87f5038bf3257109edd4
2023-08-29 15:55:12 +00:00
Rakshit Gondwal
5af0bb9dfd
feat: update google.golang.org/protobuf to v1.31.0
...
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com >
Kubernetes-commit: 709721e0df1940f0316f6b81e8ceaeb493634400
2023-08-28 23:38:32 +05:30
Kubernetes Publisher
4dd144a93b
Merge pull request #119962 from pohly/dra-api-list-type
...
api: change list type for node lists in PodSchedulingContext
Kubernetes-commit: 3f705b6ab857b20b792f092b05f61ab0c8c54fd4
2023-08-23 20:32:07 +00:00
Kubernetes Publisher
e8815ff156
Merge pull request #118653 from pohly/volume-resource-requirements
...
Volume resource requirements
Kubernetes-commit: f852d7fead3446112d4dc8acd29869a860a11ff5
2023-08-22 00:05:18 +00:00
Kubernetes Publisher
3fe9aa4466
Merge pull request #119790 from seantywork/added-comment
...
added comment for clarifying steps related to kubernetes mutual (2-wa…
Kubernetes-commit: 55c86d6ad930d437931079318d740bdf8dac34f0
2023-08-21 20:07:06 +00:00
Kubernetes Publisher
c1466acf62
Merge pull request #119883 from ls-2018/json
...
Fix: null jsonpath serialization
Kubernetes-commit: c5a8015bbae1e1095813d8e0719f017477dc7112
2023-08-19 03:51:34 +00:00
seantywork
ff3618ffb3
kubernetes mutual (2-way) x509 comment
...
Kubernetes-commit: 48260b4a77b423b178ec5e262ac67be52d49f455
2023-08-18 01:31:22 +00:00
Kubernetes Publisher
9c6b659a97
Merge pull request #119937 from RyanAoh/kep-1860-dev
...
Make Kubernetes aware of the LoadBalancer behaviour
Kubernetes-commit: ee265c92fec40cd69d1de010b477717e4c142492
2023-08-17 23:57:38 +00:00
Kubernetes Publisher
d124e52fa8
Merge pull request #119806 from enj/enj/i/delete_psp_api
...
Delete PSP API types and generated clients
Kubernetes-commit: 012e61a860d978bed4e72222da756d0c7b7832ba
2023-08-17 20:03:37 +00:00
Kubernetes Publisher
edce1de719
Merge pull request #119728 from pohly/ssa-forbid-extract-calls
...
SSA: prevent usage of Extract calls via forbidigo
Kubernetes-commit: f563910656ad325a7e1f8ab5848746bc2eba4d7f
2023-08-17 12:11:49 +00:00
Kubernetes Publisher
9a5370b1ef
Merge pull request #119907 from Hii-Arpit/Hii-Arpit-Fixing-Broken-Link
...
Fixing the "Service Account Token" link in the readme
Kubernetes-commit: a38dca01aaf0d20d274a648efc158d8bfee2b4a4
2023-08-16 07:56:47 +00:00
Kubernetes Publisher
54237a55bc
Merge pull request #119796 from sttts/sttts-caches-populated
...
client-go: log proper 'caches populated' message, with type and source and only once
Kubernetes-commit: 03e845f882b2ab1f1a34deee36f06945cfa259d2
2023-08-16 07:56:46 +00:00
Kubernetes Publisher
b97d8af093
Merge pull request #119554 from davidmccormick/prevent-race-client-go-workqueue-shutdown
...
client-go workqueue: fix shutdown race / test flake
Kubernetes-commit: f234aa52cdcd996d00cd14b94902b3a3752595ea
2023-08-16 04:03:48 +00:00
Kubernetes Publisher
856e847bb7
Merge pull request #118455 from linxiulei/managedFields
...
Trim managedFields in controller-manager
Kubernetes-commit: 1acd489dca47a4be0301330cbfcf4e8f9d98f7c0
2023-08-16 00:07:58 +00:00
Kubernetes Publisher
08b51e9785
Merge pull request #118399 from skitt/ioutil-sig-api-machinery
...
api-machinery: stop using deprecated io/ioutil
Kubernetes-commit: 10beda334e360b6b2988d5d2d30c011cc50d4aa8
2023-08-16 00:07:55 +00:00
Kubernetes Publisher
41d4a164f9
Merge pull request #117992 from liggitt/gc-discovery-flutter
...
Fix duplicate GC event handlers getting added if discovery flutters
Kubernetes-commit: 7407f36b4b8937f982def35dd99b5647fc5245c5
2023-08-16 00:07:52 +00:00
Patrick Ohly
cb120b63f7
api: change list type for node lists in PodSchedulingContext
...
The "set" list type was chosen because it seemed appropriate (no duplicates!)
but that made tracking of managed fields more expensive (each entry in the list
is tracked, not the entire field) and for no good reason (one client is
responsible for the entire list).
Therefore the type gets changed to "atomic". Server-side-apply has not been
used in the past and PodSchedulingContext objects are short-lived and still in
alpha, so the any potential compatibility issues should be minor.
The scheduling throughput in scheduler_perf increases:
name old SchedulingThroughput/Average new SchedulingThroughput/Average
PerfScheduling/SchedulingWithResourceClaimTemplate/2000pods_100nodes-36 18.8 ± 8% 24.0 ±37%
PerfScheduling/SchedulingWithMultipleResourceClaims/2000pods_100nodes-36 13.7 ±81% 18.5 ±40%
Kubernetes-commit: 5567f288e745db05d88fc60e15915f8b0d1f6c4b
2023-08-15 09:55:57 +02:00
Aohan Yang
4a487f61f6
Generated code for IP mode field
...
Kubernetes-commit: 29a6705dabc875b0f19b73016df16c50744ce99b
2023-08-14 12:32:25 +08:00
Arpit Agrawal
f4a635a743
Update README.md
...
The Service Account Token link in the readme is broken and refers to a page that no longer exists.
In this PR I updated the correct link in the readme
Kubernetes-commit: 279a663f948337da156f544b74e41928ad66f9ef
2023-08-11 17:46:28 +05:30
acejilam
a8fc969a34
Fix: null jsonpath serialization
...
Signed-off-by: acejilam <acejilam@gmail.com >
Kubernetes-commit: 9646ae5a9efb0eee7ac15577d113699700233017
2023-08-10 19:32:47 +08:00
Kubernetes Publisher
b8a03ab933
Merge pull request #119876 from marosset/revert-118895
...
Revert "Merge pull request #118895 from RyanAoh/kep-1860"
Kubernetes-commit: e6218f3d3bede036b2d67a4349dd761aac06ae97
2023-08-10 04:38:32 +00:00
Kubernetes Publisher
04dcae2ee3
Merge pull request #119835 from liggitt/mitigate-aggregated-discovery-npe
...
Avoid returning nil responseKind in v1beta1 aggregated discovery
Kubernetes-commit: 3d941afece97b284c764e5320cc8c80b0e88cba8
2023-08-10 00:49:21 +00:00
Mark Rossetti
32bbd73dd1
Revert "Merge pull request #118895 from RyanAoh/kep-1860"
...
This reverts commit 890a6c8f70d2e0f45b3692d34a6df1ecb6d8335b, reversing
changes made to 4f60a8d493ab9571eb328b9d98da477a50bc7446.
Kubernetes-commit: 0d90d1ffa5e87dfc4d3098da7f281351c7ff1972
2023-08-09 15:51:20 -07:00
Jefftree
c4ed5da76e
Fallback to legacy discovery on a wider range of conditions in aggregator
...
Kubernetes-commit: 57b27fd3cd11cb5f2515c7ac5f67f612998fb368
2023-08-09 18:22:30 +00:00
Jordan Liggitt
bf44ac9180
Avoid returning nil responseKind in v1beta1 aggregated discovery
...
Kubernetes-commit: 1876ddf71497bad349f7c4df24c2e22356d3bad9
2023-08-08 14:25:56 -04:00
Kubernetes Publisher
49410bfbbc
Merge pull request #119725 from MadhavJivrajani/bump-net-dep
...
[CVE-2023-3978] .*: bump golang.org/x/net to v0.13.0
Kubernetes-commit: 1620473a9a01dd6bbef3398c0acb2e581d0a13c3
2023-08-07 20:42:04 +00:00
Monis Khan
1e11b3a8ca
Delete PSP API types and generated clients
...
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: 10fe3da87dbc354ea528d65f1e544614ee980987
2023-08-07 16:15:13 -04:00
Dr. Stefan Schimanski
00f8b3aa35
client-go: log proper 'caches populated' message, with type and source and only once
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
Kubernetes-commit: a1809ffae377f3abbae12b137073ca4c473743cd
2023-08-07 12:56:32 +02:00
Patrick Ohly
ed2b4f0fcb
SSA: prevent usage of Extract calls via forbidigo
...
Client-side extract calls depend on `managedFields`, which might not be
available. Therefore they should not be used in production code.
They are okay in test files (because the API has to be tested), in the
generated code (because the various type specific APIs still need to be
provided) and in unstructured.go (same reason).
Kubernetes-commit: 4bc9434f99d9a87dd5b63e738b6b1b16693f10e4
2023-08-02 10:57:51 +02:00
Madhav Jivrajani
7d2c3dfa0e
.*: bump golang.org/x/net to v0.13.0
...
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com >
Kubernetes-commit: 1b90dff5276f3cb37236b446f1821175dad802c4
2023-08-02 11:11:22 +05:30
Dave McCormick
e9b0103a41
Fix a race where a call to Shutdown was happening after ShutDownWithDrain() had performed the check q.isProcessing() && q.shouldDrain() and before waitForProcessing() has reached its Wait(). This is because waitForProcessing() is only checking the length part of the condition instead of both the length and whether we still need to drain.
...
It turned out that there were lots of unnecessary accessor functions being called locking and unlocking the cond which are not needed because Wait() automatically unlocks and locks the cond for us and best practice says we should run it in a for checking for the condition (so this is what I have done).
Kubernetes-commit: 2b12df56b0be93bc2cac7c5a66342c0ffaa72311
2023-07-24 22:40:54 +01:00
Kubernetes Publisher
c5b1c13ccb
Merge pull request #118644 from alexzielenski/apiserver/policy/namespaceParamRef
...
KEP-3488: Promote ValidatingAdmissionPolicy to Beta
Kubernetes-commit: 18f8cb83989ff64beb0c7f47cdd3ad9df7bdbbeb
2023-07-22 03:07:43 +00:00
Kubernetes Publisher
a98e74a6eb
Merge pull request #116469 from RomanBednar/pv-phase-transition-time
...
PersistentVolume last phase transition time
Kubernetes-commit: f3a070f9c684d9335b6df91ef2f3ce207629882c
2023-07-22 03:07:39 +00:00
Roman Bednar
dcfedbe450
make update
...
Kubernetes-commit: 294f5c9a42fead4a4cc75340a6b9171c9c657b3e
2023-07-21 17:16:05 +02:00
Kubernetes Publisher
605aac15d7
Merge pull request #119215 from alexzielenski/apiserver/policy/namespaceParamRef-alpha
...
KEP-3488: Per namespace policy params
Kubernetes-commit: 8a053c700a3abc30717860e0b6a13243a7250743
2023-07-20 22:53:21 +00:00
Kubernetes Publisher
64a35f6a46
Merge pull request #119301 from kannon92/pod-replacement-policy-job-api-only
...
add podReplacementPolicy and terminating field to job api
Kubernetes-commit: 9892b5370450ff0b3d86f67e8e82d1545299c785
2023-07-20 02:55:28 +00:00
Alexander Zielenski
d7acd85d1b
update codegen
...
Kubernetes-commit: d6479587445a5a6fa736ee7fb3012a29f4e6e5e7
2023-07-19 16:21:22 -07:00
Jefftree
f02c594955
Cleanup kubectl legacy server fallback
...
Kubernetes-commit: d1946392528fe6e26886810e8240568fa19e82fe
2023-07-18 18:24:56 +00:00
kannon92
70917217ee
add podReplacementPolicy and terminating field to job api
...
Kubernetes-commit: ce929520376417a9358067ad8576b10e734cb7a9
2023-07-18 17:25:15 +00:00
Kubernetes Publisher
8d42d15550
Merge pull request #119294 from mimowo/backoff-limit-per-index-api
...
Extend the Job API for BackoffLimitPerIndex
Kubernetes-commit: f3f5dd99ac7bdc61c61c3d587575090c3473ab5a
2023-07-18 17:44:59 +00:00
Michal Wozniak
ad08d15b30
Extend the Job API for BackoffLimitPerIndex
...
Kubernetes-commit: fcbfdc1710676ffd77ba4bbda384240293339db4
2023-07-13 09:36:07 +02:00
Kubernetes Publisher
74c18d3a40
Merge pull request #118204 from sttts/sttts-openapi-v2-parameter-refs
...
openapi: reference shared parameters
Kubernetes-commit: f42ff8687026f8e12fb3d3b0da0760525d8d8ab2
2023-07-18 05:56:20 +00:00
Kubernetes Publisher
efe741a289
Merge pull request #119312 from pacoxu/prometheus/common-v0.44
...
upgrade prometheus common to v0.44.0
Kubernetes-commit: d627c4b41cdd9ef08b13604ce1c460eca26684f8
2023-07-18 01:59:24 +00:00
Kubernetes Publisher
64339c0aa9
Merge pull request #116335 from gnufied/update-api-recovery-apis
...
Update api recovery apis
Kubernetes-commit: a776bf046286b578bc6259cca7e5bc0d0fb14e59
2023-07-18 01:59:19 +00:00
Paco Xu
251884f570
upgrade prometheus common to v0.44.0
...
Kubernetes-commit: 9b6af80a631f5659ea62d552d595b3dd137525a0
2023-07-14 11:05:46 +08:00
Alexander Zielenski
84505f7088
update-codegen
...
Kubernetes-commit: 9a595209bd28d6456f5f8cf5effe74944daf2105
2023-07-10 13:06:26 -07:00
Hemant Kumar
fe95890e7f
Update generated data
...
Kubernetes-commit: 6a780f57ce5e64002d96200be59dea881aad977c
2023-07-10 12:19:57 -04:00
Kubernetes Publisher
5360d05de9
Merge pull request #118895 from RyanAoh/kep-1860
...
Make Kubernetes aware of the LoadBalancer behaviour
Kubernetes-commit: 890a6c8f70d2e0f45b3692d34a6df1ecb6d8335b
2023-07-17 21:52:50 +00:00
Aohan Yang
950fa167a0
Generated code for IP mode field
...
Kubernetes-commit: 7c6e399b228199bed94219dcaf36cd3cb5eb68e5
2023-07-17 16:00:57 +08:00
Kubernetes Publisher
162ee91898
Merge pull request #109616 from wzshiming/feat/pod-host-ips
...
Field `status.hostIPs` added for Pod
Kubernetes-commit: 8a0ea1bd587895a328f6587064c936022b16335d
2023-07-15 09:18:53 +00:00
Kubernetes Publisher
f19b40cda9
Merge pull request #119330 from bertinatto/fix-conn-reuse-test
...
Proactively bump golang.org/x/net to v0.12.0
Kubernetes-commit: c79be34fba3ad20532c9648216924afaa8434e06
2023-07-14 21:24:36 +00:00
Kubernetes Publisher
0f514c8c6b
Merge pull request #118782 from MikeSpreitzer/exempt-borrowing-impl
...
Exempt borrowing implementation
Kubernetes-commit: 2a91bd1dfdd2e293b9ec017ea3a976ecc2ecd545
2023-07-14 17:25:41 +00:00
Fabio Bertinatto
1c4976d2f6
Proactively bump golang.org/x/net to v0.12.0
...
Proactively bump to v0.12.0 to avoid v0.10.0 and v0.11.0, which contain
a regression added by commit
82780d606d .
This commit was later reverted in v0.12.0.
Generated with:
hack/pin-dependency.sh golang.org/x/net v0.12.0 && hack/update-vendor.sh
Kubernetes-commit: d9bd413f991958492602c4bf51c43d6edca0e5cd
2023-07-14 10:25:23 -03:00
Mike Spreitzer
4c1cb3cb29
Update generated code for APF borrowing by exempt
...
Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com >
Kubernetes-commit: f78d6062eb8c4565e570f4c8657856a0bd082cf9
2023-07-14 01:00:06 +00:00
Jiahui Feng
0c7c900fd5
ValidatingAdmissionPolicy: Variable Composition ( #118642 )
...
* [API REVIEW] Variable Composition
* lazy map.
* variable composition implementation.
* check variables during VAP validation.
* generated: ./hack/update-vendor.sh
* generated: UPDATE_COMPATIBILITY_FIXTURE_DATA
(cd staging/src/k8s.io/api/ && env UPDATE_COMPATIBILITY_FIXTURE_DATA=true go test)
* cost calucation.
* tests for cost calculations.
* e2e test for variables.
* fix doc for Validation.Expression.
* generated: ./hack/update-codegen.sh
* fix missing utilruntime import.
* generated: ./hack/update-openapi-spec.sh
Kubernetes-commit: b635f2a401fd03715f6a33c4a19f11c509c0ce03
2023-07-14 01:12:10 +00:00
Shiming Zhang
8c4503becd
Regenerate
...
Kubernetes-commit: 3e2a1a7b9ce860dbe39a03014707c9bcdd333960
2023-07-12 15:02:44 +08:00
Kubernetes Publisher
560efb3b89
Merge pull request #117351 from pohly/dra-generated-resource-claim-names
...
DRA: generated resource claim names
Kubernetes-commit: e0dafe57a3858b798f4137223e7fdc70bd15b617
2023-07-11 21:08:44 +00:00
Patrick Ohly
86ae84acb9
generated files
...
Kubernetes-commit: c1eb18c00caaffa127ef554f3c0f693848a28d4a
2023-07-10 17:51:23 +02:00
Dr. Stefan Schimanski
05b412c425
Bump kube-openapi
...
Kubernetes-commit: 961c1503b5bd2b0f83d6b6b98e0c8f29525ca9cb
2023-06-26 13:09:30 +02:00
Eric Lin
411a1189f8
Run hack/update-codegen.sh informers subprojects
...
Signed-off-by: Eric Lin <exlin@google.com >
Kubernetes-commit: c86f562f29b6b7498ea962d2ac596e6d26ecd723
2023-06-04 20:33:01 +00:00
Eric Lin
da4a4e2e16
Add 'WithTransform' SharedInformerOption
...
Also add support for metadata informer factory to use SharedInformerOption
Signed-off-by: Eric Lin <exlin@google.com >
Kubernetes-commit: 9c4651bd0479b84f5e5913649207476717f3f13e
2023-06-04 12:26:58 +00:00
Jordan Liggitt
daed746fdc
Add GroupDiscoveryFailedErrorGroups helper method
...
Kubernetes-commit: 733f63c6c423565b8cecf3f3db8e9d81e48b1311
2023-05-15 09:23:54 -04:00
Stephen Kitt
caded3c2dc
api-machinery: stop using deprecated io/ioutil
...
This replaces deprecated ioutil functions as follows:
* ioutil.ReadAll -> io.ReadAll
* ioutil.ReadFile -> os.ReadFile
* ioutil.TempDir -> os.MkdirTemp
* ioutil.TempFile -> os.CreateTemp
* ioutil.WriteFile -> os.WriteFile
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: b60a3a58df2791ae67764f6325be31aea5eca5a0
2023-05-02 15:08:18 +02:00
Patrick Ohly
4ddde4e3b5
dra: generated files
...
Kubernetes-commit: 0fc62d5ded07b01c6ffe9110f5c4991c34efb205
2023-04-14 09:51:07 +02:00
Kubernetes Publisher
aed71fa5cf
Merge pull request #116429 from SergeyKanzhelev/sidecar
...
Add SidecarContainers feature
Kubernetes-commit: 0e1409833360adf6b46ca5ae3ba355169d065285
2023-07-11 06:29:00 +00:00
Gunju Kim
d63727d2cb
Sidecar: Generated code
...
Kubernetes-commit: c187b38117379777b77656526a4f12da311c8341
2023-05-10 01:39:38 +09:00
Kubernetes Publisher
d31edad7e2
Merge pull request #118010 from aimuz/cleanup
...
cleanup: duplicate request_test TestRequestAbsPathPreservesTrailingSlash
Kubernetes-commit: 823e0f77e8a736718bd88bfaa87226186dcaae25
2023-07-06 19:32:17 +00:00
Kubernetes Publisher
5d8fd6bf0a
Merge pull request #118386 from Richabanker/enhance-storage-version
...
Add servedVersions info in StorageVersion API
Kubernetes-commit: cd32adebd9d52ae46827054350c17de085a4eb23
2023-07-06 06:37:06 +00:00
Richa Banker
61c0de83db
Add servedVersions info in StorageVersion API
...
Kubernetes-commit: 1c48b7ec144785b4b2493a01d82e40d6d34ce578
2023-06-01 18:07:56 -07:00
Michal Fojtik
0cde78477a
client-go: add DNS resolver latency metrics ( #115357 )
...
* client-go: add DNS resolver latency metrics
* client-go: add locking to DNS latency metrics
* client-go: add locking for whole DNSStart and DNSDone
Signed-off-by: Vu Dinh <vudinh@outlook.com >
* Fix a mismatched ctx on the request
Signed-off-by: Vu Dinh <vudinh@outlook.com >
* Clean up request code and fix comments
Signed-off-by: Vu Dinh <vudinh@outlook.com >
---------
Signed-off-by: Vu Dinh <vudinh@outlook.com >
Co-authored-by: Vu Dinh <vudinh@outlook.com >
Kubernetes-commit: 1c7e87cff27aa009488a9d55342220e223d5c146
2023-06-28 22:56:45 +02:00
Kubernetes Publisher
bb755c8cba
Merge pull request #118922 from champtar/kubeadm-backdate-ca
...
kubeadm: backdate generated CAs
Kubernetes-commit: 4036b6fb41b36d76a6076e4f430f74423efe04f3
2023-06-28 22:17:23 +00:00
Etienne Champetier
089cdcdf71
client-go: allow to set NotBefore in NewSelfSignedCACert()
...
Signed-off-by: Etienne Champetier <e.champetier@ateme.com >
Kubernetes-commit: 44692a486f96bda80ffd2a2a132a651b47457391
2023-06-28 00:01:34 -04:00
Kubernetes Publisher
4308ca3a0e
Merge pull request #118903 from champtar/revert-118631-ca-not-before
...
Revert "Make CA valid 1 hour in the past"
Kubernetes-commit: b82240cfb02c282b3765920ca0d28ff754dafe9a
2023-06-27 18:35:02 +00:00
Etienne Champetier
d19c2b99a8
Revert "Make CA valid 1 hour in the past"
...
Kubernetes-commit: 56c5c8f7eef25748389987a416d272bf8db2431d
2023-06-27 08:57:59 -04:00
Kubernetes Publisher
9186f40b18
Merge pull request #114849 from padlar/handle-terminating-namespaces
...
handle event errors caused due to terminating namespaces
Kubernetes-commit: 2e93c65eff5979e21178d9d7117916e49af29838
2023-06-20 13:08:39 +00:00
Kubernetes Publisher
808ebc843b
Merge pull request #118689 from bzsuni/clean
...
[dependencies] update prometheus/client_golang v1.14.0 to v1.16.0
Kubernetes-commit: 0004ce8684bd9c6be0af4ad8fc9b076f4a04e23e
2023-06-19 01:09:03 +00:00
Kubernetes Publisher
ebad5fbb0d
Merge pull request #118631 from champtar/ca-not-before
...
Make CA valid 1 hour in the past
Kubernetes-commit: 604584d1d3cc230948498040281b2862f789c7c3
2023-06-15 11:22:30 -07:00
bzsuni
afed8d3bbe
update prometheus/client_golang v1.14.0 to v1.16.0
...
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io >
Kubernetes-commit: 5aa5f1abc9c9d83ccc34382ae2a8e0241ec1d866
2023-06-15 11:24:32 +00:00
Etienne Champetier
d606148375
Make CA valid 1 hour in the past
...
When running kubeadm / installing k8s early during boot,
the CA certificate can be generated before time is synchronised
and time is jumped backward.
Make notBefore 1 hour in the past to accept small clock jump.
Signed-off-by: Etienne Champetier <e.champetier@ateme.com >
Kubernetes-commit: e1735b9863777ff11ac35434e047c38dcce4b4f3
2023-06-13 01:04:28 -04:00
Kubernetes Publisher
92512ee2b8
Merge pull request #118055 from timofurrer/export-default-server-url-for-func
...
Export DefaultServerUrlFor utility function
Kubernetes-commit: cc60a9348536a85978946de3001dc6a3737cf516
2023-06-12 21:08:41 +00:00
Kubernetes Publisher
aa1fae7565
Merge pull request #118481 from cbandy/client-go-testing-setenv
...
Replace os.Setenv with testing.T.Setenv in tests
Kubernetes-commit: a4e6367bb60b0b0bdaf0007248c2c5cd990fcecd
2023-06-12 21:08:40 +00:00
Kubernetes Publisher
5a01920212
Merge pull request #118507 from jeremyrickard/go1205
...
[go] Bump images, versions and deps to use Go 1.20.5
Kubernetes-commit: c042d6956f70566a81bc29c9af6896fefbf89aae
2023-06-07 18:21:36 +00:00
Jeremy Rickard
5b9e822e45
Update vendor with hack/update-vendor.sh
...
Signed-off-by: Jeremy Rickard <jeremyrrickard@gmail.com >
Kubernetes-commit: b1da721bdd711d9f75a57d782c5a33eea7ac35a4
2023-06-07 08:26:14 -06:00
Chris Bandy
3ffcfabea2
Replace os.Setenv with testing.T.Setenv in tests
...
T.Setenv ensures that the environment is returned to its prior state
when the test ends. It also panics when called from a parallel test to
prevent racy test interdependencies.
Kubernetes-commit: ac5ce5cbce7ddb6ffeff755d1cf670afadb8e1fb
2023-06-05 21:03:21 -05:00
Kubernetes Publisher
fe81cbee2b
Merge pull request #118384 from Jefftree/gnostic-models-branch
...
Update gnostic library to point to gnostic-models
Kubernetes-commit: bd0ac4cba33f40195b4ffab5463f2b5397216400
2023-06-02 18:20:34 +00:00
Kubernetes Publisher
4485c4ecbb
Merge pull request #117870 from howardjohn/client/run-errorhandler-race
...
informer: fix race against Run and SetTransform/SetWatchErrorHandler
Kubernetes-commit: decf1e1a9b53a4f4b24bb780d6433e2d5e959d83
2023-06-02 02:20:29 +00:00
Jefftree
2bd3f49236
Update gnostic references
...
Kubernetes-commit: 2111e79f56acdfa6a8dab56780c52e3abc608758
2023-06-01 18:25:39 +00:00
Jefftree
90e15d42fa
vendor
...
Kubernetes-commit: 1993a4cb3798d818ff05db0e0c7c9c87d8b41dd2
2023-06-01 18:25:30 +00:00
Kubernetes Publisher
cf830e3cb3
Merge pull request #113362 from sxllwx/ftr/extract_listobject_use_copy
...
Faster ExtractList. Add ExtractListWithAlloc variant.
Kubernetes-commit: fe9ef26af5d90de9610153c73f47ce75805ee9d5
2023-05-29 18:20:30 +00:00
Kubernetes Publisher
f21df6e02d
Merge pull request #118132 from marseel/improve_reflector_retries
...
Improve backoff policy in reflector.
Kubernetes-commit: 7f2a1e8cd3363b04d970c619daf9f9d5ee5d50c0
2023-05-29 18:20:28 +00:00
scott
6c7d1bc996
Add WithAlloc interface and stub implementations with base benchmarks
...
Kubernetes-commit: b8a3bd673dc61b4d7a0ad0f54fa423e0160078cf
2023-05-27 17:57:35 -04:00
Kubernetes Publisher
c670796be1
Merge pull request #118269 from liggitt/genproto
...
Update google.golang.org/genproto
Kubernetes-commit: d05b79c836c9db35ef0a60f0175b3a6bbeedfa7e
2023-05-26 22:20:21 +00:00
Jordan Liggitt
260c0c5584
Update google.golang.org/genproto
...
Kubernetes-commit: a045fedd025c08ad6cb116a9beb3042b6be39fd1
2023-05-25 21:10:02 -04:00
Kubernetes Publisher
7a7ea20936
Merge pull request #118054 from johanoskarsson/johan_leader_election_lock_id_validate
...
Validate lock identity
Kubernetes-commit: 36d81a5818665b55c2b0f307c15572626d84b07a
2023-05-25 18:20:05 +00:00
Kubernetes Publisher
151a5919db
Merge pull request #118235 from kkkkun/set_watchlist_env
...
Lookup ENABLE_CLIENT_GO_WATCH_LIST_ALPHA in NewReflectorWithOptions
Kubernetes-commit: 6911d3b2b8a498c570d58827277347b2bb8c4100
2023-05-25 10:19:57 +00:00
Kubernetes Publisher
6fbb0bd42d
Merge pull request #116656 from HirazawaUi/fik-fd-leaks
...
Cleanup fd leaks and file removal cleanup
Kubernetes-commit: 03ebd4b7ef3fc5d2ec5b407b36488c6324a058b6
2023-05-25 06:19:52 +00:00
Kubernetes Publisher
328d0fb9ee
Merge pull request #118240 from Jefftree/bump-kube-openapi
...
Bump kube openapi
Kubernetes-commit: f99589b4f52a39a73a0a15449f9adb817a8865b8
2023-05-24 22:20:11 +00:00
Jefftree
17a70dc433
Update vendor
...
Kubernetes-commit: 4373ae05f345b5d85672bdeefe26e1f69d185086
2023-05-24 18:55:36 +00:00
Arda Güçlü
4cb373f7ca
Add warning log callback in client-go loading rules ( #117233 )
...
* Add warning log callback in client-go loading rules
This provides a way to consumers use their own custom warning
mechanisms instead default klog warning.
* Use typed error instead plain string
* Fix interface change in unit test
Kubernetes-commit: 2ea6896f90c8b757d8a247d393b9a13fff2dab58
2023-05-24 18:20:07 +00:00
kkkkun
3195e36899
Should get ENABLE_CLIENT_GO_WATCH_LIST_ALPHA when new reflector
...
Signed-off-by: kkkkun <scuzk373x@gmail.com >
Kubernetes-commit: 2eed9b4143a9009b3327003ae50dbbebb44d2841
2023-05-24 21:09:53 +08:00
Marcel Zieba
bae10246dd
Improve backoff policy in reflector.
...
Before, we've used two separate backoff managers for List and Watch
calls, now they share single backoff manager.
Kubernetes-commit: 337728b02559dec8a613fdef174f732da9cae310
2023-05-19 14:28:31 +02:00
Kubernetes Publisher
2a5f18df73
Merge pull request #116973 from apelisse/add-client-to-typeconverter
...
managedfields: A few improvements which will make testing easier
Kubernetes-commit: addf9d477840abd7555e9a7b2568f88e53644ed0
2023-05-17 01:00:17 +00:00
Timo Furrer
d11d5308d6
Export DefaultServerUrlFor utility function
...
Signed-off-by: Timo Furrer <tuxtimo@gmail.com >
Kubernetes-commit: ebaf49dbd709a94e0c44aa75b4c32b50898a05e3
2023-05-16 19:20:07 +02:00
Johan Oskarsson
0011bf6b0b
Validate lock identity
...
Ensure that the lock identity is not empty. This can cause unexpected issues during leader election.
Kubernetes-commit: 5519b89a28eeea5a5b134092242aff770fcc07eb
2023-05-16 09:41:18 -07:00
aimuz
39f724a06e
cleanup: duplicate request_test TestRequestAbsPathPreservesTrailingSlash
...
Signed-off-by: aimuz <mr.imuz@gmail.com >
Kubernetes-commit: 7da7468a3fc3f914c7b032c25c3e35097fd85449
2023-05-15 23:14:30 +08:00
John Howard
702d7378b6
informer: fix race against Run and SetTransform/SetWatchErrorHandler
...
`SetWatchErrorHandler` claims it will fail if Run() has already started.
But if they are called concurrently, it will actually trigger a data
race.
With this PR:
```
62702 runs so far, 0 failures (100.00% pass rate). 59.152682ms avg, 189.068387ms max, 26.623785ms min
```
Without this PR:
```
5012 runs so far, 38 failures (99.25% pass rate). 58.675502ms avg, 186.018084ms max, 29.468104ms min
```
Kubernetes-commit: 35d2431b3a89c5bd693846952e9d27ce4e3a0754
2023-05-08 10:11:54 -07:00
HirazawaUi
84dc0417b2
fix fd leaks and failed file removing for pkg client-go
...
Kubernetes-commit: 73aeed8766c2c42a6cb4fc8632b1b974f4508dde
2023-05-03 01:35:16 +08:00
HirazawaUi
a9b2f9e9eb
add remove_file in client-go util directory
...
Kubernetes-commit: f49cc5eb113b839a5f5c6121ff0b89f82a483011
2023-05-03 01:33:28 +08:00
Antoine Pelisse
f454763642
openapi: Create client -> TypeConverter function
...
Allows creating a typeconverter from a client (i.e. by taking the data
of the client and formatting it so that one can create a type
converter).
Kubernetes-commit: 45853e20ae5c33d144939495650bb5cc49e1134c
2023-03-28 14:15:43 -07:00
Kubernetes Publisher
9e63bf0275
Merge pull request #117985 from howardjohn/patch-2
...
Fix comments on InformerFor
Kubernetes-commit: 54d2ced4d6e6e03f6e411f3c77f33bcc9ff809e1
2023-05-16 17:10:27 +00:00
Kubernetes Publisher
c2105c1815
Merge pull request #118014 from liggitt/mapstructure
...
Update kube-openapi, drop mapstructure
Kubernetes-commit: ea4cc84cf7c47d2bc45730ea2563bc320dfe5ff1
2023-05-16 01:12:09 +00:00
Jordan Liggitt
9cbecd3bd0
Update kube-openapi, drop mapstructure
...
Kubernetes-commit: d6d1dbdd82a412a06cdf458ca40836a018670131
2023-05-15 16:42:00 -04:00
John Howard
73d5348976
codegen
...
Kubernetes-commit: 3867569ae275b056e7f25b2228a5887dd9fa422b
2023-05-15 10:16:18 -07:00
Kubernetes Publisher
578f82a568
Merge pull request #117982 from jpbetz/sig-roles-jpbetz
...
Add api-machinery TL owners permissions for jpbetz
Kubernetes-commit: 1487fc762ff9b23952a75b69ca2b152efd3f7238
2023-05-15 17:04:28 +00:00
Kubernetes Publisher
435f839a9e
Merge pull request #117645 from humblec/etcd-2
...
dependencies: update etcd dependencies to v3.5.9
Kubernetes-commit: 3a65b989e3db450029e796b370d103fe2c43006b
2023-05-15 17:04:27 +00:00
Kubernetes Publisher
79d967dc52
Merge pull request #117139 from pohly/test-integration-race-detection-update-utils
...
dependencies: bump k8s.io/utils
Kubernetes-commit: 87d8c4ed0ab58c5d19a4f2513fb49b920fdef346
2023-05-15 17:04:25 +00:00
Joe Betz
2c19e72cd0
Add api-machinery TL owners permissions for jpbetz
...
Kubernetes-commit: f0f92853ad82cba33c95803d9f869eaeba6cc3a7
2023-05-12 13:06:12 -04:00
Humble Chirammal
d400a4ae88
update vendor dependencies for the change
...
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com >
Kubernetes-commit: dcefc42b35acb229fcf95a172bfd635ee615d1be
2023-05-11 21:58:39 +05:30
Humble Chirammal
81fe15039a
etcd depdencies are updated to v3.5.9
...
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com >
Kubernetes-commit: ae749238786f0c7b32a5291dd52ca31ea7c4fd18
2023-05-11 21:25:46 +05:30
Patrick Ohly
c1b43e3ea9
dependencies: bump k8s.io/utils
...
This includes a fix for a race condition.
Kubernetes-commit: 83fb5a50bc97cb58705084c0750f5a6b16fdf219
2023-04-06 13:11:47 +02:00
Kubernetes Publisher
2b18fa2c7a
Merge pull request #117946 from lavalamp/lavalamp-taking-a-break
...
lavalamp is taking a long break
Kubernetes-commit: 8479db5876e95de535d9a8a361b6a2bff8251ea3
2023-05-13 01:08:23 +00:00
Kubernetes Publisher
f5cc996aa0
Merge pull request #117961 from humblec/ginkgo
...
ginkgo update to v2.9.4 and gomega to 1.27.6
Kubernetes-commit: 84c8abfb8bf900ce36f7ebfbc52794bad972d8cc
2023-05-12 17:14:55 +00:00
Kubernetes Publisher
54dbcc99c2
Merge pull request #116761 from iancoolidge/devel-cpuset-revendor
...
Complete cpuset export to k/utils by revendoring
Kubernetes-commit: 8f9c18569616eb65666a9271c3dd4d87b46ccece
2023-05-12 17:14:52 +00:00
Humble Chirammal
719a53871d
ginkgo update to v2.9.4 and gomega to 1.27.6
...
https://github.com/onsi/ginkgo/v2/compare/v2.9.1...v2.9.4
https://github.com/onsi/gomega/compare/v1.27.4...v1.27.6
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com >
Kubernetes-commit: cbe825b2b6cde3ae6e13b75e459227c71ea7e1f7
2023-05-12 09:33:31 +05:30
Kubernetes Publisher
23a9e82799
Merge pull request #117295 from aojea/transport_cache_metrics
...
add new metric for the internal client-go cache size
Kubernetes-commit: 64af2d93e5b97e41bb078e2fa81923fda6681154
2023-05-11 18:40:35 +00:00
Daniel Smith
aa75d3bd59
lavalamp is taking a long break
...
Kubernetes-commit: 1ffe3f467e8b8033312b7c68943d58125fd27663
2023-05-11 16:43:38 +00:00
Antonio Ojea
7cf3125431
add new metrics for the internal client-go transport generator
...
Add two new metrics to monitor the client-go logic that
generate http.Transports for the clients.
- rest_client_transport_cache_entries is a gauge metrics
with the number of existin entries in the internal cache
- rest_client_transport_create_calls_total is a counter
that increments each time a new transport is created, storing
the result of the operation needed to generate it: hit, miss
or uncacheable
Change-Id: I2d8bde25281153d8f8e8faa249385edde3c1cb39
Kubernetes-commit: 3f3e1d507d081528ce8081f0daf4446d8a3b9bc0
2023-05-10 22:40:13 +00:00
Kubernetes Publisher
783d0d3362
Merge pull request #116506 from HirazawaUi/fix-events-field
...
generate ReportingInstance and ReportingController in Event
Kubernetes-commit: b277afdf469c959955a2818b85fb1e4333ba3c11
2023-05-09 21:25:18 +00:00
Min Ni
a3b4cd32e5
update serial number to a valid non-zero number in ca certificate ( #117791 )
...
* update serial number to a valid non-zero number in ca certificate
* fix the existing problem (0 SerialNumber in all certificate) as part of this PR in a separate commit
Kubernetes-commit: e865b30abd0a862697ff1d2526ea8897ee98a523
2023-05-09 17:07:46 +00:00
Kubernetes Publisher
bbdc95deee
Merge pull request #117422 from cbandy/client-go-testing-setenv
...
Replace os.Setenv with testing.T.Setenv in tests
Kubernetes-commit: 940101e07e1fbf45747ef67bca43b645b2a67065
2023-05-05 09:05:44 +00:00
Kubernetes Publisher
383ccb06d0
Merge pull request #117713 from flant/ssr-ga
...
KEP-3325: Promote SelfSubjectReview to GA
Kubernetes-commit: 78833e1b3385ea3485d38aa46586d39195377ec9
2023-05-03 18:02:28 +00:00
Kubernetes Publisher
bea472626f
Merge pull request #117687 from pohly/klog-update
...
dependencies: klog v2.100.1
Kubernetes-commit: a6825c8542ee1e5e9d570ba1c267458a09287015
2023-05-03 18:02:26 +00:00
Kubernetes Publisher
d8abacd71f
Merge pull request #117716 from thockin/validation_test_whitespace
...
Clean up brace whitespace in **/validation_test.go
Kubernetes-commit: 2e78e07ee56e4c7a6e764af39735a36454768ab4
2023-05-02 17:45:21 +00:00
Kubernetes Publisher
1513f87e7a
Merge pull request #94021 from timoreimann/support-specifying-custom-lb-retry-period-from-cloud-provider
...
Support specifying custom LB retry period from cloud provider
Kubernetes-commit: f51dad586ddc1a02b4fcc4e3974092ad78b630a7
2023-05-02 09:44:08 +00:00
Tim Hockin
54190dfee5
Clean up brace whitespace in **/validation_test.go
...
This was making my eyes bleed as I read over code.
I used the following in vim. I made them up on the fly, but they seemed
to pass manual inspection.
:g/},\n\s*{$/s//}, {/
:w
:g/{$\n\s*{$/s//{{/
:w
:g/^\(\s*\)},\n\1},$/s//}},/
:w
:g/^\(\s*\)},$\n\1}$/s//}}/
:w
Kubernetes-commit: d55b67b349021b6c46fc6ce78f2a36bd4217145f
2023-05-02 00:36:15 -07:00
Kubernetes Publisher
71d8553562
Merge pull request #115843 from rikatz/remote-netpol-status
...
Remove/Withdraw NetworkPolicy Status
Kubernetes-commit: d6471d01a43d575351ec505f95a3691c977caccd
2023-05-02 05:34:53 +00:00
m.nabokikh
8009187f26
KEP-3325: Promote SelfSubjectReview to GA
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
Kubernetes-commit: 40de26dcff80f29380a4ba90a93ce3ece7482b78
2023-05-02 01:26:20 +02:00
Patrick Ohly
a4fdfdae72
dependencies: klog v2.100.1
...
Kubernetes-commit: 5fff8cae749cefbac63173f176831ea007b95b3a
2023-04-29 20:47:44 +02:00
Chris Bandy
18ffb5c67f
Replace os.Setenv with testing.T.Setenv in tests
...
T.Setenv ensures that the environment is returned to its prior state
when the test ends. It also panics when called from a parallel test to
prevent racy test interdependencies.
Kubernetes-commit: 89467ad3e9b051515fa9632a7373d6ef01723256
2023-04-15 10:09:47 -05:00
HirazawaUi
0a0ddf8b6b
generate ReportingInstance and ReportingController in Event
...
Kubernetes-commit: df0a25382053bb6c0f04fc4d807be6e059b552c1
2023-03-27 22:23:45 +08:00
Ian K. Coolidge
f4ef3f8afe
Update k8s.io/utils version to v0.0.0-20230313181309-38a27ef9d749
...
Steps:
1) Manualy update go.mod with new version string
2) ./hack/update-vendor.sh
3) Fixup go.sum with new package hash
4) ./hack/update-vendor.sh
Kubernetes-commit: 9f46cbc6fa475c420af3ccd654d4e59606375836
2023-03-18 14:52:37 +00:00
Kensei Nakada
a46288252b
feature(scheduler): implement matchLabelKeys in PodAffinity and PodAntiAffinity
...
Kubernetes-commit: d5d3c26337af418555fe6f62f86b9aaf38dc59d3
2023-02-26 04:25:59 +00:00
Ricardo Katz
224050a5b5
Generated files for NetworkPolicyStatus removal
...
Kubernetes-commit: ec997d5433afc09e79376e35936a027dc2ba8713
2023-02-16 14:31:49 -03:00
Kubernetes Publisher
10f4062eb6
Merge pull request #117705 from Jefftree/update-openapi-fix-race
...
Update kube-openapi to fix race
Kubernetes-commit: 3f8c4794eadf8aadd8a5bcb0b875bf0af5c2020b
2023-05-01 21:41:35 +00:00
Kubernetes Publisher
757bbef10a
Merge pull request #117623 from skitt/intstr-fromint32-api-machinery
...
API machinery: use new intstr functions
Kubernetes-commit: 32703dec0faa19762f3cde83cfefae981de62027
2023-05-01 21:41:33 +00:00
Kubernetes Publisher
337feac705
Merge pull request #117576 from wzshiming/fix/clientcmd-localtion-of-origin
...
Fix LocationOfOrigin shows up unexpectedly
Kubernetes-commit: 34d6b92a8ceaf0b2243dd62b1f3517878fc75e35
2023-05-01 17:50:53 +00:00
Kubernetes Publisher
741627a2eb
Merge pull request #117253 from akhilerm/update-containerd-dependencies
...
dependencies: update cgroups, ttrpc, ebpf versions
Kubernetes-commit: d33853edcfdb521c80cd9a659ed02b7fe52b40f4
2023-05-01 17:50:51 +00:00
Jefftree
fa6d692ff2
Update kube-openapi to fix race
...
Kubernetes-commit: de34540248a6cd4335a6aedd3f1d24c608d59c86
2023-05-01 17:19:03 +00:00
Shiming Zhang
3b78b11d95
Add json tag
...
Kubernetes-commit: d0677f528c03ff5556830bc2e9b9c40824b160ee
2023-05-01 23:05:32 +08:00
Arda Güçlü
fc96cec338
Use absolute path instead requestURI in openapiv3 discovery ( #117495 )
...
Currently, openapiv3 discovery uses requestURI to discover resources.
However, that does not work when the rest endpoint contains prefixes
(e.g. `http://localhost/test-endpoint/ `).
Because requestURI overwrites prefixes also in rest endpoint
(e.g. `http://localhost/openapiv3/apis/apps/v1 `).
Since `absPath` keeps the prefixes in the rest endpoint,
this PR changes to absPath instead requestURI.
Kubernetes-commit: d94c733ee2bfaedd9a1c45d58fbd56c99403c94d
2023-04-29 18:28:27 +03:00
Kubernetes Publisher
f775857c5d
Merge pull request #117534 from Mskxn/fix_watcher
...
stop watcher when error occurs
Kubernetes-commit: 041bb9a56cb56ebf4ff9305f435a71c135bfc19c
2023-04-27 13:49:25 +00:00
Kubernetes Publisher
68394bf465
Merge pull request #117571 from seans3/agg-discovery-fix
...
Fixes bug when extra params added to discovery content-type
Kubernetes-commit: c5c2806e233b9c5ff49ac4ad0c6d734b530771de
2023-04-26 21:42:58 +00:00
Kubernetes Publisher
6aab78468d
Merge pull request #116191 from aojea/spdy_passthrugh
...
improve remotecommand testing fuzzing the data stream
Kubernetes-commit: 928adb27abf755b402be7594844e3c248b0b7670
2023-04-26 17:48:31 +00:00
Msk233
5d5619d392
stop watcher when error occurs
...
Kubernetes-commit: da3e7e3781650024e4cc7cb65082908c531e8efa
2023-04-26 09:04:33 +08:00
Kubernetes Publisher
6c514ab3ff
Merge pull request #117558 from wojtek-t/remove_multi_lock
...
Remove support for EndpointsLeases and ConfigMapsLeases lock from leader election
Kubernetes-commit: ff1e3ee26e94597f386b75fb60c5e2af6535a5be
2023-04-25 11:06:16 -07:00
Shiming Zhang
1ec6a37b5c
Fix LocationOfOrigin shows up unexpectedly
...
Kubernetes-commit: 4d9261c7567a7498d16754b7c5bf3b9ea834e5a6
2023-04-25 10:58:07 +08:00
Sean Sullivan
5c4e72cc66
Refactors discovery content-type and helper functions
...
Kubernetes-commit: 2af662b05fe591083a029520e6da5b077cad8e31
2023-04-24 17:40:07 -07:00
Wojciech Tyczyński
27bbe76535
Remove support for EndpointsLeases and ConfigMapsLeases lock from leader election
...
Kubernetes-commit: 2bd42061b6e8035c3def54545ccc4baf95bd6586
2023-04-24 15:08:10 +02:00
Kubernetes Publisher
b26f379fe1
Merge pull request #117350 from mohitsharma-in/update/google-golang-protobuf
...
Dependencies: Update google.golang.org/protobuf v1.30.0
Kubernetes-commit: b925ce244638187dbf0f502ecb6e02db149970aa
2023-04-25 17:51:11 +00:00
Kubernetes Publisher
d2b87849d5
Merge pull request #117483 from ArkaSaha30/bump-gofuzz
...
dependencies:update `github.com/google/gofuzz` to v1.2.0
Kubernetes-commit: 7fbe3cba41915cad69f376eb6b3d3a326d51cd11
2023-04-24 21:58:24 +00:00
Kubernetes Publisher
e846cbee0d
Merge pull request #117482 from ArkaSaha30/bump-go-logr
...
dependencies:update `github.com/go-logr/logr` to v1.2.4
Kubernetes-commit: f77e570fbadbf91c05840a1f6f9b6aec860de400
2023-04-24 21:58:15 +00:00
Akhil Mohan
a9d165e169
chore: update cgroups and ttrpc versions
...
- update github.com/containerd/cgroups to v1.1.0
- update github.com/containerd/ttrpc to v1.2.1
Signed-off-by: Akhil Mohan <akhilerm@gmail.com >
Kubernetes-commit: 76fe41a996ec78d9774e1f1ca9d1d7ec40522f98
2023-04-23 22:23:42 -07:00
Kubernetes Publisher
bc930747ec
Merge pull request #116972 from apelisse/update-openapi-file-client
...
openapi: Make file client more easy to re-use
Kubernetes-commit: 065428befa06c1d99deb4160b4490a8bf1a377ee
2023-04-21 05:44:30 +00:00
Kubernetes Publisher
861f50a667
Merge pull request #117352 from mohitsharma-in/update/golang_x_tools
...
dependencies: Update golang.org/x/tools to v0.8.0
Kubernetes-commit: bda7e8979088614c60ee21fd2602d00786e2ea78
2023-04-20 09:58:09 +00:00
ArkaSaha30
e367d8e4c2
update gofuzz dependency
...
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
Kubernetes-commit: 1d15354ccb56b2e367cc403777255125ef65b7df
2023-04-19 21:08:16 +05:30
ArkaSaha30
061a00296e
Update go-logr dependencies
...
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
Kubernetes-commit: 2cd23c8b17c93f75a30cf3f651369d7a932aef2d
2023-04-19 21:01:55 +05:30
Mohit Sharma
23557e107c
Dependencies Update golang.org/x/tools v0.7.0 to v0.8.0
...
Kubernetes-commit: 6f90c5363301c9417a3a806cac69f3e79e66a66c
2023-04-14 04:39:43 -07:00
Kubernetes Publisher
c84a3771c0
Merge pull request #117399 from mohitsharma-in/update/golang_time
...
dependencies : Update golang.org/x/time v0.3.0
Kubernetes-commit: cf89189ca3a3e5d280ba1cb09998c4b88dc1e127
2023-04-19 13:48:47 +00:00
Mohit Sharma
34d738fb5d
Dependencies Update golang.org/x/timet 90d013bbcef8 to v0.3.0
...
Kubernetes-commit: 4d73864026cde02f4a1cdf9e889a124174d38e38
2023-04-16 22:18:35 -07:00
Mohit Sharma
1aeffb0799
Dependencies Update google.golang.org/protobuf v1.28.1 to v1.30.0
...
Kubernetes-commit: 8efeb5afcfd006a48d6e1263a5cf8de3284797df
2023-04-14 04:28:47 -07:00
Kubernetes Publisher
1dc92da663
Merge pull request #117278 from haoruan/cleanup/replace-spew-with-dump
...
replace spew methods with dump methods
Kubernetes-commit: d060d487dcd74bc1a557f9378035696db40c64c2
2023-04-14 05:53:56 +00:00
Kubernetes Publisher
4e89310f6e
Merge pull request #117285 from humblec/azure-go-autorest
...
dependencies: update gh/Azure/auto-test/{adal,validation}
Kubernetes-commit: ba0a8f9cceb513bc36bd803e9bf8f9a8c3912ff2
2023-04-13 21:52:00 +00:00
Humble Chirammal
8b888b0027
dependencies: update gh/Azure/auto-test/{adal,validation}
...
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com >
Kubernetes-commit: 6d13cad2cf56d0bad77a6410a0c36b2cf8f0df57
2023-04-13 23:25:48 +05:30
Kubernetes Publisher
46f963913c
Merge pull request #116896 from thockin/apimachinery_util_diff_cleanup
...
apimachinery util/diff cleanups
Kubernetes-commit: c3e3ff989ac9abfb0dc3b958fcb698fcce952f8c
2023-04-13 12:51:58 +00:00
Hao Ruan
ef522cc423
replace spew methods with dump methods
...
Kubernetes-commit: c4e1b01416ec05e6a520a181d4ce3b4333adb4e4
2023-04-13 09:41:07 +08:00
Antoine Pelisse
12beb34ceb
openapi: Make file client more easy to re-use
...
A few notes about the change:
1. I need to initialize the fileclient once, in an init function, so I
don't have access to `testing.T` yet.
2. I want to be able to configure the openapi files that I use
3. We already have a "cache" client that wraps another client, we don't
need to re-implement caching here, one can just do:
`cache.NewClient(openapitest.NewFileClient("some/path"))` to do a cached
client. Or initialize it in an init/global var.
Since there is still some value to use the embedded file, make an
alternative constructor while using fs.FS interface to be able to
manipulate both virtual and disk-based filesystems.
Kubernetes-commit: 29503fd8d45bc2c9438e92936bf4111162529b40
2023-03-28 13:40:28 -07:00
Tim Hockin
12553015e2
Replace uses of ObjectReflectDiff with cmp.Diff
...
ObjectReflectDiff is already a shim over cmp.Diff, so no actual output
or behavior changes
Kubernetes-commit: bc302fa4144d21a338683cd83701661f97be4aba
2023-03-23 11:34:03 -07:00
Tim Hockin
c4339eeca9
Replace uses of ObjectGoPrintDiff with cmp.Diff
...
ObjectGoPrintDiff is already a shim over cmp.Diff, so no actual output
or behavior changes
Kubernetes-commit: 9627c50ef37f3b5274486e6f5ad37b73b1b69bf0
2023-03-23 11:31:25 -07:00
Tim Hockin
7114041b4f
Replace uses of diff.ObjectDiff with cmp.Diff
...
ObjectDiff is already a shim over cmp.Diff, so no actual output or
behavior changes
Kubernetes-commit: 29c0b73d640b6e50c4f2dfeee7b07ca66a530dbd
2023-03-23 11:29:01 -07:00
Kubernetes Publisher
8005e0d28b
Merge pull request #116869 from MikeSpreitzer/add-structure
...
Add structured alternatives to strings in client-go/tools/cache
Kubernetes-commit: 5052d31d6582c58cd82ccba084b11590fc82ba47
2023-04-12 04:02:58 +00:00
Kubernetes Publisher
20bcfef42d
Merge pull request #114800 from haoruan/feature-8976-spew-sprintf-refactor
...
Capture spew.Sprintf() with all our favorite config into a util func
Kubernetes-commit: d0fc9d16ce1c8ac523e9dc90e14af542b09cd3b3
2023-04-12 00:07:19 +00:00
Kubernetes Publisher
04ef61f72b
Merge pull request #116948 from MadhavJivrajani/fix-verify-vendor
...
.*: update vendor dir and cleanup
Kubernetes-commit: 3a46f2611503b4d8a8ab557bf2541ac9c1be695a
2023-03-27 18:23:04 +00:00
Madhav Jivrajani
012beed4e0
.*: update vendor dir and cleanup
...
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com >
Kubernetes-commit: 63b5ca69f1f481b2b4b2ee967f5b8b7b58937211
2023-03-27 19:18:05 +05:30
Mike Spreitzer
8301a60862
Added conversions to/from NamespacedName
...
Also renamed file to something more on-point.
Kubernetes-commit: 8d92cfb13163f596feddfe1b5e734fd1ba4f6323
2023-03-22 16:55:07 -04:00
Mike Spreitzer
42799afb70
Add structured alternatives to strings in client-go/tools/cache
...
Kubernetes-commit: ec9515a828ec3907ffc66913947adf4e8ee7b9d6
2023-03-22 16:21:17 -04:00
Kubernetes Publisher
1517ffb8d3
Merge pull request #116623 from lavalamp/xfrmr
...
change where transformers are called
Kubernetes-commit: 76d351065e504e23b7962158ef0e9067b6bd96ed
2023-03-17 00:11:43 +00:00
Kubernetes Publisher
308e6b1055
Merge pull request #113218 from ahmedtd/kep-3257
...
Add certificates.k8s.io/v1alpha1 ClusterTrustBundle
Kubernetes-commit: a34e37c9963af5944435b736882bfcd1e81f7e09
2023-03-16 20:00:06 +00:00
Daniel Smith
c3b84f0438
Change where transformers are called.
...
Kubernetes-commit: e76dff38cf74c3c8ad9ed4d3bc6e3641d9b64565
2023-03-14 23:05:20 +00:00
Stephen Kitt
20433f9965
api-machinery: replace intstr.FromInt with intstr.FromInt32
...
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: 94410ee8078971b8894e5c400ce3fc79f02bc510
2023-03-14 16:17:48 +01:00
Antonio Ojea
9ed804b6d5
improve remotecommand testing fuzzing the data stream
...
Change-Id: I1303bc79a8c43fc4fb04bf76afcf90653ceb9e14
Kubernetes-commit: 60d25c3ed77cbd8341fc7ae984e165e7046e5c9b
2023-03-01 19:56:41 +00:00
Sunil Shivanand
aea98eb150
combine conditional checks
...
Signed-off-by: Sunil Shivanand <sunil.shivanand@statnett.no >
Kubernetes-commit: 80480f8e21572cba152a4f6f171ebb5de8c6bafb
2023-01-11 09:45:37 +01:00
Sunil Shivanand
0d54cf50db
handle event errors caused due to terminating namespaces
...
Create events are forbidden in terminating namespaces, use info
instead of error to log the failed event.
Signed-off-by: Sunil Shivanand <sunil.shivanand@statnett.no >
Kubernetes-commit: 7a6d58001b7d824f92601fd246b3aad9fbb9c583
2023-01-05 12:56:40 +01:00
Hao Ruan
db3650d98f
replaced spew.Sprintf with a util pretty print function
...
Kubernetes-commit: f638e2849fbddeb201b8290586a4747af99086bf
2023-01-04 14:12:56 +08:00
Timo Reimann
d3003795b3
Localize SpyWorkQueue to cloud-provider for now
...
Kubernetes-commit: 208af2d1d83488de933977849581207149b829ee
2022-11-09 07:32:40 +01:00
Taahir Ahmed
4c5879adb0
ClusterTrustBundles: make update
...
Kubernetes-commit: 2e4b637bf8f304c5264b93cced659c2bcbb66733
2022-11-07 11:45:53 -08:00
Max Smythe
4666344cbc
Custom match criteria ( #116350 )
...
* Add custom match conditions for CEL admission
This PR is based off of, and dependent on the following PR:
https://github.com/kubernetes/kubernetes/pull/116261
Signed-off-by: Max Smythe <smythe@google.com >
* run `make update`
Signed-off-by: Max Smythe <smythe@google.com >
* Fix unit tests
Signed-off-by: Max Smythe <smythe@google.com >
* Fix unit tests
Signed-off-by: Max Smythe <smythe@google.com >
* Update compatibility test data
Signed-off-by: Max Smythe <smythe@google.com >
* Revert "Update compatibility test data"
This reverts commit 312ba7f9e74e0ec4a7ac1f07bf575479c608af28.
* Allow params during validation; make match conditions optional
Signed-off-by: Max Smythe <smythe@google.com >
* Add conditional ignoring of matcher CEL expression validation on update
Signed-off-by: Max Smythe <smythe@google.com >
* Run codegen
Signed-off-by: Max Smythe <smythe@google.com >
* Add more validation tests
Signed-off-by: Max Smythe <smythe@google.com >
* Short-circuit CEL matcher when no matchers specified
Signed-off-by: Max Smythe <smythe@google.com >
* Run codegen
Signed-off-by: Max Smythe <smythe@google.com >
* Address review comments
Signed-off-by: Max Smythe <smythe@google.com >
---------
Signed-off-by: Max Smythe <smythe@google.com >
Kubernetes-commit: e5fd204c33e90a7e8f5a0ee70242f1296a5ec7af
2023-03-16 04:07:18 +00:00
Igor Velichkovich
38589731da
Matchconditions admission webhooks alpha implementation for kep-3716 ( #116261 )
...
* api changes adding match conditions
* feature gate and registry strategy to drop fields
* matchConditions logic for admission webhooks
* feedback
* update test
* import order
* bears.com
* update fail policy ignore behavior
* update docs and matcher to hold fail policy as non-pointer
* update matcher error aggregation, fix early fail failpolicy ignore, update docs
* final cleanup
* openapi gen
Kubernetes-commit: 5e5b3029f3bbfc93c3569f07ad300a5c6057fc58
2023-03-15 06:19:12 +00:00
Kubernetes Publisher
445660b561
Merge pull request #116332 from klueska/extend-resourceclaimstatus
...
Update resource.AllocationResult with a slice of ResourceHandlers
Kubernetes-commit: ae36991498282514da3fe771b0dd9de66b991c86
2023-03-15 06:19:06 +00:00
Kubernetes Publisher
e023fb8815
Merge pull request #116119 from vinaykul/restart-free-pod-vertical-scaling-fixes
...
Restructure resize policy naming and set default resize policy values
Kubernetes-commit: 9053b5dc2c8e0b977e759b9f076d1a52bafabbb7
2023-03-15 06:18:59 +00:00
Kubernetes Publisher
9ff2627505
Merge pull request #115075 from aojea/ipaddress
...
IPAddress allocator
Kubernetes-commit: f44d561c1f8c327bdf2ff3bff175bd10d161454c
2023-03-15 06:18:52 +00:00
Kubernetes Publisher
84ae514115
Merge pull request #116539 from pohly/ginkgo-gomega-update
...
dependencies: ginkgo v2.9.1, gomega v1.27.3
Kubernetes-commit: f22504a9bafd5e34d86853a816d10578376aadc2
2023-03-15 06:18:45 +00:00
Kubernetes Publisher
ef07195878
Merge pull request #114242 from austince/feat/per-queue-metrics
...
Allow setting per-workqueue metrics providers
Kubernetes-commit: 98b1980a42ad197404d65a5022a32dcdc2087784
2023-03-15 06:18:38 +00:00
Kubernetes Publisher
23d016c390
Merge pull request #107826 from smarterclayton/context_wait
...
wait: Introduce new methods that allow detection of context cancellation
Kubernetes-commit: 5469b170fe8717cb9fae8f12498cd1afd5586891
2023-03-15 06:18:32 +00:00
Kubernetes Publisher
f3dc70cf10
Merge pull request #116603 from seans3/discovery-resilience
...
Aggregated discovery client resilient to nil GVK in response
Kubernetes-commit: a9fd6dfc736da314096f1fda24171119e58017c6
2023-03-15 06:18:27 +00:00
Kubernetes Publisher
48d97c09db
Merge pull request #116556 from pohly/dra-podschedulingcontext
...
dra: PodScheduling -> PodSchedulingContext
Kubernetes-commit: fbfc887a097b2f7cddd065deacbff03abf0bfef6
2023-03-15 06:18:23 +00:00
Kubernetes Publisher
2a7ba94880
Merge pull request #112334 from dgrisonnet/fix-eventseries-count
...
Fix EventSeries starting count discrepancy
Kubernetes-commit: 689fc37dd2f92ca61f4f2405186cb7e097be3ab1
2023-03-15 06:18:17 +00:00
Kubernetes Publisher
3cafc13f5d
Merge pull request #116299 from pohly/dra-v1alpha2
...
api: resource.k8s.io v1alpha1 -> v1alpha2
Kubernetes-commit: 0e06be57a65792ad5744b5ddf6abe95dd20ac773
2023-03-15 06:18:13 +00:00
Sean Sullivan
2bd557faec
Aggregated discovery resilient to nil GVK
...
Kubernetes-commit: 26bf8a7ceb51bac357d8a02fd3e62b84363716db
2023-03-14 17:59:19 +00:00
Patrick Ohly
76262aa83e
api: generated files for PodSchedulingContext
...
Kubernetes-commit: 2b8a4e809710f1b5eb3846a2964431a0266f287e
2023-03-13 23:16:18 +01:00
Patrick Ohly
a952148a50
dependencies: ginkgo v2.9.1, gomega v1.27.4
...
They contain some nice-to-have improvements (for example, better printing of
errors with gomega/format.Object) but nothing that is critical right now.
"go mod tidy" was run manually in
staging/src/k8s.io/kms/internal/plugins/mock (https://github.com/kubernetes/kubernetes/pull/116613
not merged yet).
Kubernetes-commit: fe59e091eb3331db54cff2351f16eabfe0cb681d
2023-03-13 16:06:20 +01:00
Antonio Ojea
568393e257
make update
...
Change-Id: I19e12ca05d977dca63043cb07ecf8a90e0e525c5
Kubernetes-commit: ba42ed9a49345f8a182829e72c7013ea3ff0d224
2023-03-12 13:50:02 +00:00
austin ce
21b4553e44
Allow custom metric provider for retry metrics
...
Kubernetes-commit: a60624ffbc265d61b35cab16ea9ded485909f3ed
2023-03-10 17:48:10 -05:00
austin ce
66fa9d308f
Unify queue constructors, deprecate current constructors
...
Kubernetes-commit: fea83b78243c77e81b91f3f0a812979809aeacaf
2023-03-10 17:46:26 -05:00
Clayton Coleman
250fc3d6b4
wait: Update tests to reference the constant error
...
The structure of the error is changing, and we don't guarantee
reflect.DeepEqual(...) will remain true for ErrWaitTimeout currently.
Kubernetes-commit: 8d4004bbc77d012642db97e09238f4f65a926bca
2023-03-10 11:02:59 -06:00
Kevin Klues
ff60d1bd90
Update generated code for resource.k8s.io/v1alpha2
...
Signed-off-by: Kevin Klues <kklues@nvidia.com >
Kubernetes-commit: 452f345c472a206b148bbe7e4e27f772841dc363
2023-03-07 11:35:08 +00:00
Patrick Ohly
324f43b974
api: resource.k8s.io v1alpha1 -> v1alpha2
...
For Kubernetes 1.27, we intend to make some breaking API changes:
- rename PodScheduling -> PodSchedulingHints (https://github.com/kubernetes/kubernetes/issues/114283 )
- extend ResourceClaimStatus (https://github.com/kubernetes/enhancements/pull/3802 )
We need to switch from v1alpha1 to v1alpha2 for that.
Kubernetes-commit: 29941b8d3e7928244f48b05bf5bd453221fe7a9d
2023-03-06 12:43:58 +01:00
Kubernetes Publisher
362ffe4fcd
Merge pull request #115668 from jiahuif-forks/feature/validating-admission-policy/type-system
...
Type System for ValidatingAdmissionPolicy
Kubernetes-commit: 152876a3eb9c6211c48bb159c87e2bf834e4eedc
2023-03-15 06:18:05 +00:00
Jiahui Feng
8dcee0c630
generated: ./hack/update-codegen.sh && ./hack/update-openapi-spec.sh
...
Kubernetes-commit: deb467261ca23ca5decfdb6b67bef3591d4cb842
2023-03-13 19:44:28 -07:00
Kubernetes Publisher
b5e4a5a9c3
Merge pull request #116397 from jiahuif-forks/feature/validating-admission-policy/message-expression
...
MessageExpression for ValidatingAdmissionPolicy
Kubernetes-commit: 6b3e2b7873f8518b95f5b09fa04f5f316669c7b2
2023-03-14 05:26:20 +00:00
Kubernetes Publisher
471f66fb10
Merge pull request #116490 from tallclair/docs-urls2
...
Fix broken links in API documentation
Kubernetes-commit: 110541b3d72e32e0016061cbaaecb4db9683e1eb
2023-03-14 01:10:18 +00:00
Kubernetes Publisher
e4aa1125e3
Merge pull request #116542 from enj/enj/f/go1.20
...
Explicit bump to go 1.20
Kubernetes-commit: de9ce03f19e8b1ace1e79fae17119820c4232b67
2023-03-13 21:15:40 +00:00
Kubernetes Publisher
b14244a3db
Merge pull request #116477 from twz123/synctrack-64bit-alignment
...
Properly align synctrack.SingleFileTracker struct
Kubernetes-commit: 077ca3b7367d0761eaee833dffb15e7eed73fa2a
2023-03-13 21:15:38 +00:00
Monis Khan
e0b969df98
Explicit bump to go 1.20
...
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: ba471884fba92246e1547ce4a27f9d5e735afc60
2023-03-13 12:47:36 -04:00
Tom Wieczorek
9e8c663097
Properly align synctrack.SingleFileTracker struct
...
count is used with atomic operations so it must be 64-bit aligned,
otherwise atomic operations will panic. Having it at the top of the
struct will guarantee that, even on 32-bit arches.
This fixes panics like that one observed in kube-apiserver:
E0310 13:48:47.476124 676 runtime.go:77] Observed a panic: unaligned 64-bit atomic operation
goroutine 141 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x2482378, 0x2db2ff8})
vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:75 +0x94
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x0})
vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:49 +0x78
panic({0x2482378, 0x2db2ff8})
/usr/local/go/src/runtime/panic.go:884 +0x218
runtime/internal/atomic.panicUnaligned()
/usr/local/go/src/runtime/internal/atomic/unaligned.go:8 +0x24
runtime/internal/atomic.Load64(0x685f794)
/usr/local/go/src/runtime/internal/atomic/atomic_arm.s:280 +0x14
k8s.io/client-go/tools/cache/synctrack.(*SingleFileTracker).HasSynced(0x685f790)
vendor/k8s.io/client-go/tools/cache/synctrack/synctrack.go:115 +0x3c
k8s.io/client-go/tools/cache.(*processorListener).HasSynced(0x6013e60)
vendor/k8s.io/client-go/tools/cache/shared_informer.go:907 +0x20
k8s.io/client-go/tools/cache.WaitForCacheSync.func1()
vendor/k8s.io/client-go/tools/cache/shared_informer.go:332 +0x50
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0x2dcf274, 0x607c600})
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:222 +0x1c
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x2dcf274, 0x607c600}, 0x6382050)
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:262 +0x64
k8s.io/apimachinery/pkg/util/wait.waitForWithContext({0x2dcf274, 0x607c600}, 0x64a6060, 0x6382050)
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:649 +0x11c
k8s.io/apimachinery/pkg/util/wait.poll({0x2dcf274, 0x607c600}, 0x1, 0x64a6060, 0x6382050)
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:600 +0xc4
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntilWithContext({0x2dcf274, 0x607c600}, 0x5f5e100, 0x6382050)
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:551 +0x60
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntil(0x5f5e100, 0x6298020, 0x607c600)
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:542 +0x48
k8s.io/client-go/tools/cache.WaitForCacheSync(0x607c600, {0x6298000, 0x3, 0x3})
vendor/k8s.io/client-go/tools/cache/shared_informer.go:329 +0x80
k8s.io/client-go/tools/cache.WaitForNamedCacheSync({0x283c5e1, 0xf}, 0x607c600, {0x6298000, 0x3, 0x3})
vendor/k8s.io/client-go/tools/cache/shared_informer.go:316 +0xe8
created by k8s.io/kubernetes/plugin/pkg/auth/authorizer/node.AddGraphEventHandlers
plugin/pkg/auth/authorizer/node/graph_populator.go:65 +0x5b0
panic: unaligned 64-bit atomic operation [recovered]
panic: unaligned 64-bit atomic operation
goroutine 141 [running]:
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x0})
vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:56 +0xf4
panic({0x2482378, 0x2db2ff8})
/usr/local/go/src/runtime/panic.go:884 +0x218
runtime/internal/atomic.panicUnaligned()
/usr/local/go/src/runtime/internal/atomic/unaligned.go:8 +0x24
runtime/internal/atomic.Load64(0x685f794)
/usr/local/go/src/runtime/internal/atomic/atomic_arm.s:280 +0x14
k8s.io/client-go/tools/cache/synctrack.(*SingleFileTracker).HasSynced(0x685f790)
vendor/k8s.io/client-go/tools/cache/synctrack/synctrack.go:115 +0x3c
k8s.io/client-go/tools/cache.(*processorListener).HasSynced(0x6013e60)
vendor/k8s.io/client-go/tools/cache/shared_informer.go:907 +0x20
k8s.io/client-go/tools/cache.WaitForCacheSync.func1()
vendor/k8s.io/client-go/tools/cache/shared_informer.go:332 +0x50
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0x2dcf274, 0x607c600})
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:222 +0x1c
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x2dcf274, 0x607c600}, 0x6382050)
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:262 +0x64
k8s.io/apimachinery/pkg/util/wait.waitForWithContext({0x2dcf274, 0x607c600}, 0x64a6060, 0x6382050)
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:649 +0x11c
k8s.io/apimachinery/pkg/util/wait.poll({0x2dcf274, 0x607c600}, 0x1, 0x64a6060, 0x6382050)
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:600 +0xc4
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntilWithContext({0x2dcf274, 0x607c600}, 0x5f5e100, 0x6382050)
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:551 +0x60
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntil(0x5f5e100, 0x6298020, 0x607c600)
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:542 +0x48
k8s.io/client-go/tools/cache.WaitForCacheSync(0x607c600, {0x6298000, 0x3, 0x3})
vendor/k8s.io/client-go/tools/cache/shared_informer.go:329 +0x80
k8s.io/client-go/tools/cache.WaitForNamedCacheSync({0x283c5e1, 0xf}, 0x607c600, {0x6298000, 0x3, 0x3})
vendor/k8s.io/client-go/tools/cache/shared_informer.go:316 +0xe8
created by k8s.io/kubernetes/plugin/pkg/auth/authorizer/node.AddGraphEventHandlers
plugin/pkg/auth/authorizer/node/graph_populator.go:65 +0x5b0
Kubernetes-commit: ffcf653e0666366e6241c99d9418e830840afa0f
2023-03-13 08:37:13 +01:00
Kubernetes Publisher
012954e4d5
Merge pull request #116450 from vinaykul/restart-free-pod-vertical-scaling-api
...
Rename ContainerStatus.ResourcesAllocated to ContainerStatus.AllocatedResources
Kubernetes-commit: 3c6e419cc3e364e0fce874e6c51ca058f1b9daab
2023-03-13 01:21:52 +00:00
Tim Allclair
b8c2b4bd8c
Fix broken API docs URLs
...
Kubernetes-commit: ea974280dc9948e31d426ee6366abff0957a5f82
2023-03-10 19:18:06 -08:00
Jiahui Feng
d2cdd64ea8
generated: ./hack/update-codegen.sh && ./hack/update-openapi-spec.sh
...
Kubernetes-commit: 1fff4949bd3168bea68f9d64525f394fd6821c54
2023-03-10 09:03:49 -08:00
Kubernetes Publisher
6df09021f9
Merge pull request #116435 from pohly/client-go-cache-reflector-leak
...
client-go: shut down watch reflector as soon as stop channel closes
Kubernetes-commit: fcfe5dfc2177320833caa451b401f2d1dc5668e7
2023-03-10 17:01:51 +00:00
Kubernetes Publisher
1f020beddb
Merge pull request #110772 from p0lyn0mial/upstream-reflector-gets-stream
...
client-go: Add support for API streaming to the reflector
Kubernetes-commit: 90c3232de77aa0dd09b948ffdd27c575688fba8a
2023-03-10 17:01:47 +00:00
Kubernetes Publisher
d2ebc4d27c
Merge pull request #116349 from apelisse/use-smarter-cache
...
Update kube-openapi to 15aac26d736a
Kubernetes-commit: a034962173e2b481d59e81178e3897870511ec7d
2023-03-10 08:45:19 +00:00
Kubernetes Publisher
756a0f3ae9
Merge pull request #114290 from Jefftree/mime-remove
...
remove mime AddExtensionType in discovery test
Kubernetes-commit: 37260b764811fc4f6ddddcb8b5b51f49f733c50c
2023-03-10 08:45:16 +00:00
vinay kulkarni
d906637aa7
Rename ContainerStatus.ResourcesAllocated to ContainerStatus.AllocatedResources - generated files
...
Kubernetes-commit: 565fd4116df866a642e245d6ef9c2fe94448b265
2023-03-10 03:36:01 +00:00
Patrick Ohly
29ad2bc1d4
client-go: shut down watch reflector as soon as stop channel closes
...
Without this change, sometimes leaked goroutines were reported for
test/integration/scheduler_perf. The one that caused the cleanup to get delayed
was this one:
goleak.go:50: found unexpected goroutines:
[Goroutine 2704 in state chan receive, 2 minutes, with k8s.io/client-go/tools/cache.(*Reflector).watch on top of the stack:
goroutine 2704 [chan receive, 2 minutes]:
k8s.io/client-go/tools/cache.(*Reflector).watch(0xc00453f590, {0x0, 0x0}, 0x1f?, 0xc00a128080?)
/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache/reflector.go:388 +0x5b3
k8s.io/client-go/tools/cache.(*Reflector).ListAndWatch(0xc00453f590, 0xc006e94900)
/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache/reflector.go:324 +0x3bd
k8s.io/client-go/tools/cache.(*Reflector).Run.func1()
/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache/reflector.go:279 +0x45
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc007aafee0)
/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:157 +0x49
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc003e18150?, {0x75e37c0, 0xc00389c280}, 0x1, 0xc006e94900)
/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:158 +0xcf
k8s.io/client-go/tools/cache.(*Reflector).Run(0xc00453f590, 0xc006e94900)
/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache/reflector.go:278 +0x257
k8s.io/apimachinery/pkg/util/wait.(*Group).StartWithChannel.func1()
/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:58 +0x3f
k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1()
/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:75 +0x74
created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start
/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:73 +0xe5
watch() was stuck in an exponential backoff timeout. Logging confirmed that:
I0309 21:14:21.756149 1572727 reflector.go:387] k8s.io/client-go/informers/factory.go:150: watch of *v1.PersistentVolumeClaim returned Get "https://127.0.0.1:38269/api/v1/persistentvolumeclaims?allowWatchBookmarks=true&resourceVersion=1&timeout=7m47s&timeoutSeconds=467&watch=true ": dial tcp 127.0.0.1:38269: connect: connection refused - backing off
Kubernetes-commit: b4751a52d53d4acc6a5ce3e796938c9a12f81fcb
2023-03-09 21:19:17 +01:00
Kubernetes Publisher
65be885753
Merge pull request #116409 from p0lyn0mial/upstream-reflector-list-n-watch
...
reflector: allow watch method to accept a watcher
Kubernetes-commit: 20e44913853fba580997cacad594e5274613bd2d
2023-03-09 15:59:46 +00:00
Maksim Nabokikh
64e2c7ff16
KEP-3325: Promote SelfSubjectReview to Beta ( #116274 )
...
* Promote SelfSubjectReview to Beta
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
* Fix whoami API
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
* Fixes according to code review
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
---------
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
Kubernetes-commit: c1431af4f83b2b06a581f23806ee12a0663fed3b
2023-03-09 03:35:44 +00:00
Kubernetes Publisher
223d456ea2
Merge pull request #116145 from seans3/discovery-stale
...
Surface "stale" GroupVersions from AggregatedDiscovery
Kubernetes-commit: b1ba5c54625efc61931fbdf831044c76780dd8b4
2023-03-08 23:43:50 +00:00
Kubernetes Publisher
e6ae4ec2c5
Merge pull request #116354 from pacoxu/cleanup-CronJobTimeZone
...
cleanup: sync testdata as CronJobTimeZone is GAed
Kubernetes-commit: a66e13921408b0db8956e6d76feb5db1388f7603
2023-03-08 19:49:17 +00:00
Lukasz Szaszkiewicz
ac7598edb4
reflector: allow watch method to accept a watcher
...
Kubernetes-commit: f6161a51e93bfa70585f1797f447f13ec1fde68b
2023-03-08 12:52:32 +01:00
Paco Xu
7bf37ef90f
cleanup: sync testdata as CronJobTimeZone is GAed
...
Kubernetes-commit: 23a583dc3679111d5aaebf2a87db67e4d7c58739
2023-03-08 13:15:46 +08:00
Lukasz Szaszkiewicz
262b98af03
cache/controller: Add ENABLE_CLIENT_GO_WATCH_LIST_ALPHA
...
Kubernetes-commit: 966b26d55c22f7fbf20841a3a993de4f984d88db
2023-03-07 12:34:11 +01:00
Kubernetes Publisher
60e53732bb
Merge pull request #115973 from jpbetz/enforcement-actions
...
KEP-3488: Implement Enforcement Actions and Audit Annotations
Kubernetes-commit: 04675428bbfc9bf7ba4c9e1abfc427b6228069d9
2023-03-07 07:41:01 +00:00
Joe Betz
bbbf092e1d
Generate code
...
Kubernetes-commit: 932a4d97249cb79f3041b5d8842425b0ed7275b3
2023-03-06 17:30:37 -05:00
Kubernetes Publisher
48ca73428a
Merge pull request #115978 from seans3/discovery-empty-response
...
"empty response" not logged as error in memcache discovery client
Kubernetes-commit: 6bfa9371cffc66e7b80a848d72b81d4007ab05b8
2023-03-06 19:38:33 +00:00
Kubernetes Publisher
29a689d161
Merge pull request #116297 from p0lyn0mial/upstream-reflector-list-n-watch-refactor
...
reflector: extract watch and startResyncAsync methods
Kubernetes-commit: 778b24c97e189dcc8f14a81ce32e022b959f8fd3
2023-03-06 15:46:20 +00:00
Lukasz Szaszkiewicz
ac0a428e7a
reflector watchlist tests
...
Kubernetes-commit: 194ffd779e7699c3f756f12e604b479b73f9f66c
2023-03-06 09:24:36 +01:00
Lukasz Szaszkiewicz
b33e818785
reflector: use watchlist
...
Kubernetes-commit: 51ec7305aa9fc2541c46c4836f5e150c818341f9
2023-03-09 14:11:59 +01:00
Lukasz Szaszkiewicz
d1c260eddc
reflector: introduce watchList
...
Kubernetes-commit: 2fed6b8a19dde62fb6824aa9d008baedf51c2466
2023-03-09 14:08:58 +01:00
Kubernetes Publisher
06ad6b391d
Merge pull request #116166 from pohly/test-go-vet
...
fix "go vet" issues, check as part of golangci-lint
Kubernetes-commit: ff735dff85367c2a096c4065b8b3c1fbbeecabc4
2023-03-04 00:02:04 +00:00
Kubernetes Publisher
d39f8291fc
Merge pull request #116162 from apelisse/update-openapi
...
Update kube-openapi to afdc3dddf62d31f5e3868d699379c571a6007920
Kubernetes-commit: 253ab3eda71f250ad6692bb16f035cebaf0651c9
2023-03-04 00:02:02 +00:00
Antoine Pelisse
59fa142a96
Update kube-openapi to afdc3dddf62d31f5e3868d699379c571a6007920
...
Kubernetes-commit: 736123f447219375219a23b9acc9d550fe8ec4c4
2023-03-03 08:43:44 -08:00
Kubernetes Publisher
bfa72fd2d3
Merge pull request #116237 from seans3/openapi3-add-error
...
Add custom error struct for Group/Version not found
Kubernetes-commit: a6c775333cb1012ecdc192b68f7a411e38ff4ae7
2023-03-02 22:56:57 -08:00
Sean Sullivan
4c5eaaf0d7
Add custom error struct for Group/Version not found
...
Kubernetes-commit: dc83af0b44bd6432dea3ccd29a77ca3a0b6122a2
2023-03-03 00:01:22 +00:00
Kubernetes Publisher
3f4372de09
Merge pull request #115865 from seans3/discovery-client-cleanup
...
Updates old 403 and 404 discovery response tolerations
Kubernetes-commit: e0ca10118e0aa0076a49a6f96ea96534ffe30dcd
2023-03-03 00:01:45 +00:00
Lukasz Szaszkiewicz
f694a7978b
reflector: extract watch and startResyncAsync methods
...
Kubernetes-commit: 34fe27355b8b5acc4d29d053ed4361b4f72e147b
2023-03-02 16:26:41 +01:00
Kubernetes Publisher
02d652e007
Merge pull request #116195 from seans3/openapi3-root-fix
...
Fixes bug with Root not handling Group without Version
Kubernetes-commit: bb8e9f3afb961920ef62dc073b283f3724d5adb2
2023-03-02 01:18:32 +00:00
Kubernetes Publisher
91199a69ee
Merge pull request #115277 from pohly/klog-update
...
klog update
Kubernetes-commit: 51dedff4f3efd407ebf47de11d0db521274471a3
2023-03-02 01:18:31 +00:00
Sean Sullivan
6ddf61b8c1
Fixes bug with Root not handling Group without Version
...
Kubernetes-commit: 17cd59ec1cf5c0a83d52bc94995025e802f1a123
2023-03-01 21:24:02 +00:00
John Howard
089d04441d
client-go: support Shutdown() for metadata and dynamic informers ( #114434 )
...
* client-go: support `Shutdown()` for metadata and dynamic informers
Followup to https://github.com/kubernetes/kubernetes/pull/112200 ,
specifically
https://github.com/kubernetes/kubernetes/pull/112200#issuecomment-1344812038 .
* add comments
* Defer lock
Kubernetes-commit: b99fe0d5b9896dd3fe9a2c1bc3b399a18ad080d2
2023-02-28 23:09:17 -08:00
Kubernetes Publisher
9ea785f819
Merge pull request #116090 from abserari/patch-1
...
Typo: fix EndpointsLeasesResourceLock ->ConfigMapsLeasesResourceLock
Kubernetes-commit: 11ff3fbeeeba56b28be3bf0badf8b49ec7d9fc2b
2023-03-01 01:18:45 +00:00
Patrick Ohly
3259c410fa
staging: fix "go vet" issues
...
These issues were not found earlier because "make vet" ignored staging. Some of
these fixes are stylistic and/or don't matter in practice, but all of the
loopclosure issues seem to be real: those tests didn't run as intended.
Here's the full error report:
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller.go:304:11: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersion struct literal uses unkeyed fields (govet)
gv := schema.GroupVersion{crd.Spec.Group, v.Name}
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler_test.go:790:119: composites: k8s.io/apimachinery/pkg/runtime/serializer/json.SerializerOptions struct literal uses unkeyed fields (govet)
delegate := serializerjson.NewSerializerWithOptions(serializerjson.DefaultMetaFactory, unstructuredCreator{}, nil, serializerjson.SerializerOptions{tc.yaml, false, tc.strictDecoding})
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go:171:30: composites: k8s.io/apiserver/pkg/cel.Error struct literal uses unkeyed fields (govet)
compilationResult.Error = &apiservercel.Error{apiservercel.ErrorTypeInvalid, "compilation failed: " + issues.String()}
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go:175:30: composites: k8s.io/apiserver/pkg/cel.Error struct literal uses unkeyed fields (govet)
compilationResult.Error = &apiservercel.Error{apiservercel.ErrorTypeInvalid, "cel expression must evaluate to a bool"}
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go:182:30: composites: k8s.io/apiserver/pkg/cel.Error struct literal uses unkeyed fields (govet)
compilationResult.Error = &apiservercel.Error{apiservercel.ErrorTypeInternal, "unexpected compilation error: " + err.Error()}
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go:201:30: composites: k8s.io/apiserver/pkg/cel.Error struct literal uses unkeyed fields (govet)
compilationResult.Error = &apiservercel.Error{apiservercel.ErrorTypeInvalid, "program instantiation failed: " + err.Error()}
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go:206:30: composites: k8s.io/apiserver/pkg/cel.Error struct literal uses unkeyed fields (govet)
compilationResult.Error = &apiservercel.Error{apiservercel.ErrorTypeInternal, "cost estimation failed: " + err.Error()}
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:38:14: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"foo"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:44:15: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"foo"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:53:17: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"A"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:58:17: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"B"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:63:17: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"C"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:76:19: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"A"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:81:19: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"B"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:91:18: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"N"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:96:18: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"O"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:108:21: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"alpha"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:113:21: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"beta"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:123:16: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"bar"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:133:17: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"A"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:147:17: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"A"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:159:15: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"A"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:169:17: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"A"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:179:17: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"A"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:190:18: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"A"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go:202:18: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"A"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/prunenulls_test.go:38:14: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"foo"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/prunenulls_test.go:47:17: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"A"},
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/prunenulls_test.go:57:18: composites: k8s.io/apiextensions-apiserver/pkg/apiserver/schema.JSON struct literal uses unkeyed fields (govet)
Default: structuralschema.JSON{"C"},
^
staging/src/k8s.io/apiextensions-apiserver/test/integration/defaulting_test.go:289:38: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
fooClient := dynamicClient.Resource(schema.GroupVersionResource{crd.Spec.Group, crd.Spec.Versions[0].Name, crd.Spec.Names.Plural})
^
staging/src/k8s.io/apiextensions-apiserver/test/integration/listtype_test.go:140:38: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
fooClient := dynamicClient.Resource(schema.GroupVersionResource{crd.Spec.Group, crd.Spec.Versions[0].Name, crd.Spec.Names.Plural})
^
staging/src/k8s.io/apiextensions-apiserver/test/integration/objectmeta_test.go:453:38: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
fooClient := dynamicClient.Resource(schema.GroupVersionResource{crd.Spec.Group, crd.Spec.Versions[0].Name, crd.Spec.Names.Plural})
^
staging/src/k8s.io/apiextensions-apiserver/test/integration/pruning_test.go:214:38: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
fooClient := dynamicClient.Resource(schema.GroupVersionResource{crd.Spec.Group, crd.Spec.Versions[0].Name, crd.Spec.Names.Plural})
^
staging/src/k8s.io/apiextensions-apiserver/test/integration/pruning_test.go:266:38: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
fooClient := dynamicClient.Resource(schema.GroupVersionResource{crd.Spec.Group, crd.Spec.Versions[0].Name, crd.Spec.Names.Plural})
^
staging/src/k8s.io/apiextensions-apiserver/test/integration/pruning_test.go:377:38: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
fooClient := dynamicClient.Resource(schema.GroupVersionResource{crd.Spec.Group, crd.Spec.Versions[0].Name, crd.Spec.Names.Plural})
^
staging/src/k8s.io/apiextensions-apiserver/test/integration/pruning_test.go:418:38: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
fooClient := dynamicClient.Resource(schema.GroupVersionResource{crd.Spec.Group, crd.Spec.Versions[0].Name, crd.Spec.Names.Plural})
^
staging/src/k8s.io/apiextensions-apiserver/test/integration/pruning_test.go:471:38: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
fooClient := dynamicClient.Resource(schema.GroupVersionResource{crd.Spec.Group, crd.Spec.Versions[0].Name, crd.Spec.Names.Plural})
^
staging/src/k8s.io/apiextensions-apiserver/test/integration/pruning_test.go:556:38: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
fooClient := dynamicClient.Resource(schema.GroupVersionResource{crd.Spec.Group, crd.Spec.Versions[0].Name, crd.Spec.Names.Plural})
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go:1096:32: loopclosure: loop variable validRule captured by func literal (govet)
s := withRule(*tt.schema, validRule)
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go:1107:19: loopclosure: loop variable expectedCost captured by func literal (govet)
if rtCost != expectedCost {
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go:1108:83: loopclosure: loop variable expectedCost captured by func literal (govet)
t.Fatalf("runtime cost %d does not match expected runtime cost %d", rtCost, expectedCost)
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go:2009:30: loopclosure: loop variable tt captured by func literal (govet)
celValidator := validator(tt.schema, true, model.SchemaDeclType(tt.schema, true), PerCallLimit)
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go:2013:65: loopclosure: loop variable tt captured by func literal (govet)
errs, _ := celValidator.Validate(ctx, field.NewPath("root"), tt.schema, tt.obj, tt.oldObj, math.MaxInt)
^
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go:2015:22: loopclosure: loop variable tt captured by func literal (govet)
for _, e := range tt.errors {
^
staging/src/k8s.io/apimachinery/pkg/runtime/mapper_test.go:28:67: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
gvr := func(g, v, r string) schema.GroupVersionResource { return schema.GroupVersionResource{g, v, r} }
^
staging/src/k8s.io/apimachinery/pkg/runtime/mapper_test.go:30:63: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
gvk := func(g, v, k string) schema.GroupVersionKind { return schema.GroupVersionKind{g, v, k} }
^
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go:150:35: composites: k8s.io/apimachinery/pkg/runtime.WithoutVersionDecoder struct literal uses unkeyed fields (govet)
if err := d.DecodeNestedObjects(runtime.WithoutVersionDecoder{c.decoder}); err != nil {
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go:119:18: composites: k8s.io/apimachinery/pkg/api/errors.StatusError struct literal uses unkeyed fields (govet)
return false, &apierrors.StatusError{status.Status()}
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/testcase.go:300:17: composites: k8s.io/api/admissionregistration/v1.MutatingWebhook struct literal uses unkeyed fields (govet)
mutating[i] = registrationv1.MutatingWebhook{h.Name, h.ClientConfig, h.Rules, h.FailurePolicy, h.MatchPolicy, h.NamespaceSelector, h.ObjectSelector, h.SideEffects, h.TimeoutSeconds, h.AdmissionReviewVersions, nil}
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:70:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"extensions", "v1beta1", "deployments"}, "", schema.GroupVersionKind{"extensions", "v1beta1", "Deployment"})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:71:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"apps", "v1", "deployments"}, "", schema.GroupVersionKind{"apps", "v1", "Deployment"})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:72:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"apps", "v1beta1", "deployments"}, "", schema.GroupVersionKind{"apps", "v1beta1", "Deployment"})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:73:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"apps", "v1alpha1", "deployments"}, "", schema.GroupVersionKind{"apps", "v1alpha1", "Deployment"})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:75:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"extensions", "v1beta1", "deployments"}, "scale", schema.GroupVersionKind{"extensions", "v1beta1", "Scale"})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:76:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"apps", "v1", "deployments"}, "scale", schema.GroupVersionKind{"autoscaling", "v1", "Scale"})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:77:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"apps", "v1beta1", "deployments"}, "scale", schema.GroupVersionKind{"apps", "v1beta1", "Scale"})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:78:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"apps", "v1alpha1", "deployments"}, "scale", schema.GroupVersionKind{"apps", "v1alpha1", "Scale"})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:81:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"example.com", "v1", "widgets"}, "", schema.GroupVersionKind{"", "", ""})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:82:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"example.com", "v2", "widgets"}, "", schema.GroupVersionKind{"", "", ""})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:100:59: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"apps", "v1", "Deployment"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:114:61: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"apps", "v1", "Deployment"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:116:22: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectMatchKind: &schema.GroupVersionKind{"apps", "v1", "Deployment"},
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:139:61: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"apps", "v1", "Deployment"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:141:22: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectMatchKind: &schema.GroupVersionKind{"apps", "v1", "Deployment"},
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:159:59: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"apps", "v1", "Deployment"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:179:59: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"apps", "v1", "Deployment"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:199:61: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"apps", "v1", "Deployment"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:201:22: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectMatchKind: &schema.GroupVersionKind{"extensions", "v1beta1", "Deployment"},
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:220:61: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"apps", "v1", "Deployment"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:222:22: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectMatchKind: &schema.GroupVersionKind{"apps", "v1beta1", "Deployment"},
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:246:61: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "scale", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:248:22: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectMatchKind: &schema.GroupVersionKind{"autoscaling", "v1", "Scale"},
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:266:59: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "scale", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:286:59: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "scale", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:306:61: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "scale", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:308:22: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectMatchKind: &schema.GroupVersionKind{"extensions", "v1beta1", "Scale"},
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:327:61: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "scale", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:329:22: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectMatchKind: &schema.GroupVersionKind{"apps", "v1beta1", "Scale"},
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:343:61: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:345:22: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectMatchKind: &schema.GroupVersionKind{"autoscaling", "v1", "Scale"},
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:359:59: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:375:61: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"extensions", "v1beta1", "deployments"}, "scale", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:377:22: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectMatchKind: &schema.GroupVersionKind{"autoscaling", "v1", "Scale"},
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:392:59: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"extensions", "v1beta1", "deployments"}, "scale", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:413:61: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:415:22: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectMatchKind: &schema.GroupVersionKind{"autoscaling", "v1", "Scale"},
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:435:59: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"extensions", "v1beta1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:450:59: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:460:59: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{"autoscaling", "v1", "Scale"}, "ns", "name", schema.GroupVersionResource{"apps", "v1", "deployments"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:475:70: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(&example.Pod{}, nil, schema.GroupVersionKind{"example.apiserver.k8s.io", "v1", "Pod"}, "ns", "name", schema.GroupVersionResource{"example.apiserver.k8s.io", "v1", "pods"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:491:70: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(&example.Pod{}, nil, schema.GroupVersionKind{"example.apiserver.k8s.io", "v1", "Pod"}, "ns", "name", schema.GroupVersionResource{"example.apiserver.k8s.io", "v1", "pods"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:507:70: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(&example.Pod{}, nil, schema.GroupVersionKind{"example.apiserver.k8s.io", "v1", "Pod"}, "ns", "name", schema.GroupVersionResource{"example.apiserver.k8s.io", "v1", "pods"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:523:70: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
attrs: admission.NewAttributesRecord(&example.Pod{}, nil, schema.GroupVersionKind{"example.apiserver.k8s.io", "v1", "Pod"}, "ns", "name", schema.GroupVersionResource{"example.apiserver.k8s.io", "v1", "pods"}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:591:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"extensions", "v1beta1", "deployments"}, "", schema.GroupVersionKind{"extensions", "v1beta1", "Deployment"})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:592:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"apps", "v1", "deployments"}, "", schema.GroupVersionKind{"apps", "v1", "Deployment"})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:593:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"apps", "v1beta1", "deployments"}, "", schema.GroupVersionKind{"apps", "v1beta1", "Deployment"})
^
staging/src/k8s.io/apiserver/pkg/admission/plugin/validatingadmissionpolicy/matching/matching_test.go:594:25: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionResource struct literal uses unkeyed fields (govet)
mapper.RegisterKindFor(schema.GroupVersionResource{"apps", "v1alpha1", "deployments"}, "", schema.GroupVersionKind{"apps", "v1alpha1", "Deployment"})
^
staging/src/k8s.io/client-go/tools/leaderelection/resourcelock/leaselock.go:120:19: composites: k8s.io/apimachinery/pkg/apis/meta/v1.Time struct literal uses unkeyed fields (govet)
r.AcquireTime = metav1.Time{spec.AcquireTime.Time}
^
staging/src/k8s.io/client-go/tools/leaderelection/resourcelock/leaselock.go:123:17: composites: k8s.io/apimachinery/pkg/apis/meta/v1.Time struct literal uses unkeyed fields (govet)
r.RenewTime = metav1.Time{spec.RenewTime.Time}
^
staging/src/k8s.io/client-go/tools/leaderelection/resourcelock/leaselock.go:135:26: composites: k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime struct literal uses unkeyed fields (govet)
AcquireTime: &metav1.MicroTime{ler.AcquireTime.Time},
^
staging/src/k8s.io/client-go/tools/leaderelection/resourcelock/leaselock.go:136:26: composites: k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime struct literal uses unkeyed fields (govet)
RenewTime: &metav1.MicroTime{ler.RenewTime.Time},
^
staging/src/k8s.io/client-go/plugin/pkg/client/auth/exec/exec_test.go:1088:28: composites: k8s.io/apimachinery/pkg/apis/meta/v1.Time struct literal uses unkeyed fields (govet)
ExpirationTimestamp: &v1.Time{now.Add(time.Hour)},
^
staging/src/k8s.io/client-go/plugin/pkg/client/auth/exec/exec_test.go:1100:28: composites: k8s.io/apimachinery/pkg/apis/meta/v1.Time struct literal uses unkeyed fields (govet)
ExpirationTimestamp: &v1.Time{now.Add(time.Hour)},
^
staging/src/k8s.io/client-go/plugin/pkg/client/auth/exec/exec_test.go:1110:28: composites: k8s.io/apimachinery/pkg/apis/meta/v1.Time struct literal uses unkeyed fields (govet)
ExpirationTimestamp: &v1.Time{now.Add(time.Hour)},
^
staging/src/k8s.io/client-go/tools/events/event_recorder.go:44:15: composites: k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime struct literal uses unkeyed fields (govet)
timestamp := metav1.MicroTime{time.Now()}
^
staging/src/k8s.io/client-go/tools/events/eventseries_test.go:95:24: composites: k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime struct literal uses unkeyed fields (govet)
EventTime: metav1.MicroTime{time.Now()},
^
staging/src/k8s.io/client-go/tools/events/eventseries_test.go:299:56: composites: k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime struct literal uses unkeyed fields (govet)
cachedEvent := recorder.makeEvent(regarding, related, metav1.MicroTime{time.Now()}, v1.EventTypeNormal, "test", "some verbose message: 1", "eventTest", "eventTest-"+hostname, "started")
^
staging/src/k8s.io/client-go/tools/events/eventseries_test.go:385:57: composites: k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime struct literal uses unkeyed fields (govet)
cachedEvent := recorder.makeEvent(regarding, related, metav1.MicroTime{time.Now()}, v1.EventTypeNormal, "test", "some verbose message: 1", "eventTest", "eventTest-"+hostname, "started")
^
staging/src/k8s.io/client-go/tools/leaderelection/leaderelection_test.go:365:26: composites: k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime struct literal uses unkeyed fields (govet)
AcquireTime: &metav1.MicroTime{time.Now()},
^
staging/src/k8s.io/client-go/tools/leaderelection/leaderelection_test.go:366:26: composites: k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime struct literal uses unkeyed fields (govet)
RenewTime: &metav1.MicroTime{time.Now()},
^
staging/src/k8s.io/client-go/tools/auth/exec/types_test.go:40:53: loopclosure: loop variable cluster captured by func literal (govet)
testClientAuthenticationClusterTypesAreSynced(t, cluster)
^
staging/src/k8s.io/cli-runtime/pkg/resource/scheme_test.go:44:16: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectGVK: &schema.GroupVersionKind{"", "v1", "Status"},
^
staging/src/k8s.io/cli-runtime/pkg/resource/scheme_test.go:50:16: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectGVK: &schema.GroupVersionKind{"meta.k8s.io", "v1", "Status"},
^
staging/src/k8s.io/cli-runtime/pkg/resource/scheme_test.go:56:16: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectGVK: &schema.GroupVersionKind{"example.com", "v1", "Status"},
^
staging/src/k8s.io/cli-runtime/pkg/resource/scheme_test.go:62:16: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
expectGVK: &schema.GroupVersionKind{"example.com", "v1", "Foo"},
^
staging/src/k8s.io/cli-runtime/pkg/resource/builder_example_test.go:77:1: tests: ExampleLocalBuilder refers to unknown identifier: LocalBuilder (govet)
func ExampleLocalBuilder() {
^
staging/src/k8s.io/component-base/metrics/desc_test.go:159:26: copylocks: call of reflect.DeepEqual copies lock value: k8s.io/component-base/metrics.Desc contains sync.RWMutex (govet)
if !reflect.DeepEqual(*descA, *descB) {
^
staging/src/k8s.io/component-base/logs/json/json_benchmark_test.go:46:6: structtag: struct field secret has json tag but is not exported (govet)
secret string `json:"secret"`
^
staging/src/k8s.io/component-base/logs/json/json_benchmark_test.go:76:6: structtag: struct field secret has json tag but is not exported (govet)
secret string `json:"secret"`
^
staging/src/k8s.io/component-base/logs/json/json_benchmark_test.go:105:6: structtag: struct field secret has json tag but is not exported (govet)
secret string `json:"secret"`
^
staging/src/k8s.io/csi-translation-lib/plugins/vsphere_volume_test.go:31:26: composites: k8s.io/api/core/v1.TopologySelectorTerm struct literal uses unkeyed fields (govet)
topologySelectorTerm := v1.TopologySelectorTerm{[]v1.TopologySelectorLabelRequirement{
^
staging/src/k8s.io/csi-translation-lib/plugins/vsphere_volume_test.go:37:40: composites: k8s.io/api/core/v1.TopologySelectorTerm struct literal uses unkeyed fields (govet)
topologySelectorTermWithBetaLabels := v1.TopologySelectorTerm{[]v1.TopologySelectorLabelRequirement{
^
staging/src/k8s.io/csi-translation-lib/plugins/vsphere_volume_test.go:43:34: composites: k8s.io/api/core/v1.TopologySelectorTerm struct literal uses unkeyed fields (govet)
expectedTopologySelectorTerm := v1.TopologySelectorTerm{[]v1.TopologySelectorLabelRequirement{
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:506:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() error = %v", err)
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:509:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() annotations = %v, want %v", resp.Annotations, encLocalKEK)
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:539:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() error = %v", err)
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:542:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() annotations = %v, want %v", resp.Annotations, lk.encKEK)
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:589:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() error = %v", err)
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:592:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() annotations = %v, want %v", resp.Annotations, encLocalKEK)
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:627:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() error = %v", err)
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:630:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() annotations = %v, want %v", resp.Annotations, lk.encKEK)
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:677:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() error = %v", err)
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:680:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() annotations = %v, want %v", resp.Annotations, encLocalKEK)
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:717:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() error = %v", err)
^
staging/src/k8s.io/kms/pkg/hierarchy/hierarchy_test.go:720:5: testinggoroutine: call to (*T).Fatalf from a non-test goroutine (govet)
t.Fatalf("Encrypt() annotations = %v, want %v", resp.Annotations, lk.encKEK)
^
staging/src/k8s.io/kubectl/pkg/cmd/debug/debug_test.go:451:25: composites: k8s.io/apimachinery/pkg/apis/meta/v1.Time struct literal uses unkeyed fields (govet)
CreationTimestamp: metav1.Time{time.Now()},
^
staging/src/k8s.io/kubectl/pkg/cmd/util/helpers_test.go:341:5: composites: k8s.io/apimachinery/pkg/api/errors.StatusError struct literal uses unkeyed fields (govet)
&errors.StatusError{metav1.Status{
^
staging/src/k8s.io/kubectl/pkg/cmd/util/helpers_test.go:352:5: composites: k8s.io/apimachinery/pkg/api/errors.StatusError struct literal uses unkeyed fields (govet)
&errors.StatusError{metav1.Status{
^
staging/src/k8s.io/kubectl/pkg/cmd/util/helpers_test.go:364:5: composites: k8s.io/apimachinery/pkg/api/errors.StatusError struct literal uses unkeyed fields (govet)
&errors.StatusError{metav1.Status{
^
staging/src/k8s.io/kubectl/pkg/cmd/util/helpers_test.go:374:5: composites: k8s.io/apimachinery/pkg/api/errors.StatusError struct literal uses unkeyed fields (govet)
&errors.StatusError{metav1.Status{
^
staging/src/k8s.io/kubectl/pkg/cmd/util/helpers_test.go:385:50: composites: k8s.io/apimachinery/pkg/api/errors.StatusError struct literal uses unkeyed fields (govet)
AddSourceToErr("creating", "configmap.yaml", &errors.StatusError{metav1.Status{
^
staging/src/k8s.io/kubectl/pkg/cmd/util/helpers_test.go:395:5: composites: k8s.io/apimachinery/pkg/api/errors.StatusError struct literal uses unkeyed fields (govet)
&errors.StatusError{metav1.Status{
^
staging/src/k8s.io/kubectl/pkg/explain/v2/funcs_test.go:204:15: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
"needle": schema.GroupVersionKind{"testgroup.k8s.io", "v1", "Kind"},
^
staging/src/k8s.io/kubectl/pkg/explain/v2/funcs_test.go:206:6: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
{"randomgroup.k8s.io", "v1", "OtherKind"},
^
staging/src/k8s.io/kubectl/pkg/explain/v2/funcs_test.go:207:6: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
{"testgroup.k8s.io", "v1", "OtherKind"},
^
staging/src/k8s.io/kubectl/pkg/explain/v2/funcs_test.go:208:6: composites: k8s.io/apimachinery/pkg/runtime/schema.GroupVersionKind struct literal uses unkeyed fields (govet)
{"testgroup.k8s.io", "v1", "Kind"},
^
staging/src/k8s.io/kubectl/pkg/polymorphichelpers/history_test.go:95:46: composites: k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference struct literal uses unkeyed fields (govet)
OwnerReferences: []metav1.OwnerReference{{"apps/v1", "Deployment", deployment.Name, deployment.UID, &trueVar, nil}},
^
staging/src/k8s.io/kubectl/pkg/polymorphichelpers/history_test.go:222:46: composites: k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference struct literal uses unkeyed fields (govet)
OwnerReferences: []metav1.OwnerReference{{"apps/v1", "StatefulSet", "moons", "1993", &trueVar, nil}},
^
staging/src/k8s.io/kubectl/pkg/polymorphichelpers/history_test.go:326:46: composites: k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference struct literal uses unkeyed fields (govet)
OwnerReferences: []metav1.OwnerReference{{"apps/v1", "DaemonSet", "moons", "1993", &trueVar, nil}},
^
staging/src/k8s.io/kubectl/pkg/util/i18n/i18n_test.go:143:31: loopclosure: loop variable envVar captured by func literal (govet)
defer func() { os.Setenv(envVar, envVarValue) }()
^
staging/src/k8s.io/legacy-cloud-providers/aws/aws_assumerole_provider_test.go:95:9: copylocks: range var tt copies lock: struct{name string; fields k8s.io/legacy-cloud-providers/aws.fields; want github.com/aws/aws-sdk-go/aws/credentials.Value; wantProviderCalled bool; sleepBeforeCallingProvider time.Duration; wantErr bool; wantErrString string} contains k8s.io/legacy-cloud-providers/aws.fields contains sync.RWMutex (govet)
for _, tt := range tests {
^
staging/src/k8s.io/legacy-cloud-providers/vsphere/nodemanager.go:190:5: lostcancel: the cancel function is not used on all paths (possible context leak) (govet)
ctx, cancel := context.WithCancel(context.Background())
^
staging/src/k8s.io/legacy-cloud-providers/vsphere/nodemanager.go:236:3: lostcancel: this return statement may be reached without using the cancel var defined on line 190 (govet)
}()
^
staging/src/k8s.io/pod-security-admission/policy/registry_test.go:152:35: composites: k8s.io/pod-security-admission/api.LevelVersion struct literal uses unkeyed fields (govet)
results := registry.EvaluatePod(api.LevelVersion{tc.level, versionOrPanic(tc.version)}, nil, nil)
^
staging/src/k8s.io/sample-apiserver/pkg/registry/wardle/fischer/etcd.go:50:10: composites: k8s.io/sample-apiserver/pkg/registry.REST struct literal uses unkeyed fields (govet)
return ®istry.REST{store}, nil
^
staging/src/k8s.io/sample-apiserver/pkg/registry/wardle/flunder/etcd.go:50:10: composites: k8s.io/sample-apiserver/pkg/registry.REST struct literal uses unkeyed fields (govet)
return ®istry.REST{store}, nil
^
Kubernetes-commit: a58eb1b3da870b2b568fcf0ffd42332d6a0fd667
2023-02-28 21:22:40 +01:00
Sean Sullivan
6b8e57ec24
Plumb stale GroupVersions through aggregated discovery
...
Kubernetes-commit: fed7bb7c51e9f85db122ad6d111cb8326dce9f8a
2023-02-28 19:44:34 +00:00
Kubernetes Publisher
8f4ee7119f
Merge pull request #102884 from vinaykul/restart-free-pod-vertical-scaling
...
In-place Pod Vertical Scaling feature
Kubernetes-commit: b9fd1802ba0aec68508b4e9eec00819008a79370
2023-02-28 09:06:23 +00:00
vinay kulkarni
2932f6b3c1
Restructure naming of resource resize restart policy - generated files
...
Kubernetes-commit: c5130fb0d6337436c405426468de47ae96717243
2023-02-28 08:13:36 +00:00
DingRui Yang
af12621334
Typo: fix EndpointsLeasesResourceLock ->ConfigMapsLeasesResourceLock
...
The comment on ConfigMapsLeasesResourceLock begins with the wrong name: EndpointsLeasesResourceLock.
Kubernetes-commit: a50c9db09ba4d22328088887d2fd00b61b36e6c4
2023-02-27 21:09:07 +08:00
Kubernetes Publisher
b46677097d
Merge pull request #115393 from seans3/openapi3-root
...
OpenAPI V3 Root interface and basic implementation
Kubernetes-commit: fb57080e069fe2efe11734a4570a92873e673c35
2023-02-25 01:06:03 +00:00
Kubernetes Publisher
6e69fba05a
Merge pull request #114872 from Iceber/fix_acquire_leader
...
client-go: fix the wait time for trying to acquire the leader lease
Kubernetes-commit: 6e213e7390b60c6db85210f322a213768cefb172
2023-02-24 17:06:01 +00:00
Kubernetes Publisher
ba2fdddad1
Merge pull request #115784 from seans3/openapi-fake-client
...
Refactor to use openapi fake client
Kubernetes-commit: 5961d8ce1bb4eb6537f7ca3b3eaf7fd9d5cd2595
2023-02-24 05:05:58 +00:00
Sean Sullivan
0bc91705fa
Tolerate empty discovery response in memcache client
...
Kubernetes-commit: a49f13258548c71194e3001ebf5fa219b88155d0
2023-02-22 23:59:37 +00:00
Sean Sullivan
bc1864f6cf
Removes old discovery hack ignoring 403 and 404
...
Kubernetes-commit: 298cb361c85be02d6336437bde37c8a4ccf5583a
2023-02-17 12:47:05 -08:00
Sean Sullivan
0a3ea4f4da
Refactor to use openapi fake client
...
Kubernetes-commit: e352d94e45cdd7f92574ac02e37fc3ab78a34798
2023-02-14 18:00:08 -08:00
Kubernetes Publisher
1ea719588e
Merge pull request #115933 from intUnderflow/clean-up-fake-recorder
...
Clean up FakeRecorder event emission
Kubernetes-commit: b2a40948bdf18e622147a38421f4145b3302ae84
2023-02-22 01:05:51 +00:00
Lucy Sweet
3a78ee0346
Fix typo
...
Kubernetes-commit: 247299946bb424407590219729c4f16b073f1e4a
2023-02-21 22:05:02 +01:00
Lucy Sweet
1fc8a8a5a7
Clean up FakeRecorder event emission
...
Kubernetes-commit: 191fe47b6ca537040b22e56776bb97d3d21737e3
2023-02-21 20:35:54 +01:00
Kubernetes Publisher
269abfd8b0
Merge pull request #115860 from intUnderflow/include-annotations-fake-recorder
...
Allow inclusion of annotations in channel events when using FakeRecorder
Kubernetes-commit: 3a4583aeb6b66452fdfc7958fbc28d744805a63e
2023-02-21 21:05:39 +00:00
Lucy Sweet
c633a8222b
Include annotations all the time
...
Kubernetes-commit: 8373afef0e0886fcd05a4cbf8b0bedeaa82a4d05
2023-02-21 16:42:37 +01:00
Lucy Sweet
f7f367ebae
Respond to review
...
Kubernetes-commit: 7a48c6e2171d23fea76b7a15ab4971989f125b96
2023-02-21 16:29:38 +01:00
Kubernetes Publisher
dda9c5244f
Merge pull request #115809 from seans3/openapi-file-client
...
New openapi v3 testing file client
Kubernetes-commit: 1c97dbc8c9096495706b1e141b0fe256ff3185e9
2023-02-17 21:05:23 +00:00
Kubernetes Publisher
d7a20b15ab
Merge pull request #115472 from lanycrost/client-go-110992-GenerateSelfSignedCertKeyWithFixtures-permissions
...
client-go: make generating certificate/key permissions more restrictive (600)
Kubernetes-commit: 8014155cb5828d7d39905da68c3e2d39b1dab132
2023-02-17 21:05:21 +00:00
Lucy Sweet
a43f324cb9
Allow inclusion of annotations in channel events when using FakeRecorder
...
Kubernetes-commit: 9839ce96f557413f522230fa3e374e26356ae3d9
2023-02-17 16:38:10 +01:00
Khachatur Ashotyan
bd24c4230e
client-go: change permissions of key
...
Kubernetes-commit: 49af62e64f33317ec0c12f9ed8ab8a0d4f365d44
2023-02-17 14:21:24 +04:00
Khachatur Ashotyan
a7dbbf8255
client-go: change permissions of GenerateSelfSignedCertKeyWithFixtures generated cert
...
Kubernetes-commit: 3cc99c5e77185ce26fd2d5513336e7229c5f7441
2023-02-17 11:20:39 +04:00
Khachatur Ashotyan
be82893604
client-go: change permissions of directories and certs
...
Kubernetes-commit: c941877438c2219318b0625f5b4e321efe324171
2023-02-17 11:16:46 +04:00
Kubernetes Publisher
d0008d188f
Merge pull request #115620 from odinuge/ou-relist-missing-delete
...
client-go/cache: fix missing delete event on replace
Kubernetes-commit: 814faade7fa3916478df963cfc6e34042e79ce89
2023-02-17 01:05:14 +00:00
Kubernetes Publisher
df55688a24
Merge pull request #115604 from pacoxu/fix-design-proposals-links
...
old design proposals are now moved to Design Proposals Archive repo
Kubernetes-commit: ffe410bbb4e43ba7b7ceaec379709575e817d866
2023-02-16 21:05:13 +00:00
Paco Xu
4bd9226d28
API docs: point to current docs instead of archived designs
...
Kubernetes-commit: 3d536bd14bba0586f20d1d96560073e5d9e82f97
2023-02-16 15:29:56 +08:00
Sean Sullivan
1369f160e9
New openapi v3 testing file client
...
Kubernetes-commit: 195a55c84c1a0ba9dcc278cc1cccee320334d5e1
2023-02-15 11:37:08 -08:00
Kubernetes Publisher
60f5c9b463
Merge pull request #115786 from liggitt/net-0.7.0-master
...
Update golang.org/x/net to v0.7.0
Kubernetes-commit: b3d8ac8496a23d65a907f9333d906bcd5463764e
2023-02-15 10:47:27 +00:00
Kubernetes Publisher
249eb86644
Merge pull request #115785 from liggitt/fix-kubectl-test
...
Revert "Refactor fake versions of openapi client into testing subdir"
Kubernetes-commit: 98406e2a3e88bd6a2affe5674b7a577aa0926d48
2023-02-14 21:26:39 -08:00
Jordan Liggitt
e850f4518c
Update golang.org/x/net to v0.7.0
...
Kubernetes-commit: f8e00778ddca11c08117ccf1d1c410641c70c428
2023-02-14 23:14:30 -05:00
Jordan Liggitt
fb55d97d70
Revert "Refactor fake versions of openapi client into testing subdir"
...
This reverts commit 869da89eab37ce670759cea2c86325f36625e7fc.
Kubernetes-commit: f98944590058f936c7adb76ea2c974899a460fe2
2023-02-14 22:14:37 -05:00
Kubernetes Publisher
278918a593
Merge pull request #115465 from seans3/openapi-client-testing
...
Refactor fake versions of openapi client into testing subdir
Kubernetes-commit: 08bbecb8e315fc976e35575e4e33c8a4a0e1cd28
2023-02-15 06:24:06 +00:00
Kubernetes Publisher
8ef4d7d4e8
Merge pull request #115685 from skitt/rest-req-error
...
client-go: add an Error() function on Request
Kubernetes-commit: 30f15671456283f37c3ed09412299b27cb92bcb4
2023-02-13 14:53:41 -08:00
Odin Ugedal
b2a4f028d6
client-go/cache: update Replace comment to be more clear
...
Since the behavior is now changed, and the old behavior leaked objects,
this adds a new comment about how Replace works.
Signed-off-by: Odin Ugedal <ougedal@palantir.com >
Signed-off-by: Odin Ugedal <odin@uged.al >
Kubernetes-commit: 27f4bcae5c52a3bb88141f940ec23d907a15cde5
2023-02-13 11:23:50 +00:00
Odin Ugedal
a01b5a2a96
client-go/cache: rewrite Replace to check queue first
...
This is useful to both reduce the code complexity, and to ensure clients
get the "newest" version of an object known when its deleted. This is
all best-effort, but for clients it makes more sense giving them the
newest object they observed rather than an old one.
This is especially useful when an object is recreated. eg.
Object A with key K is in the KnownObjects store;
- DELETE delta for A is queued with key K
- CREATE delta for B is queued with key K
- Replace without any object with key K in it.
In this situation its better to create a DELETE delta with
DeletedFinalStateUnknown with B (with this patch), than it is to give
the client an DeletedFinalStateUnknown with A (without this patch).
Signed-off-by: Odin Ugedal <ougedal@palantir.com >
Signed-off-by: Odin Ugedal <odin@uged.al >
Kubernetes-commit: 7bcc3e00fc28b2548886d04639a2e352ab37fb55
2023-02-13 11:12:37 +00:00
Odin Ugedal
b250bf51ae
client-go/cache: merge ReplaceMakesDeletionsForObjectsInQueue tests
...
Signed-off-by: Odin Ugedal <ougedal@palantir.com >
Signed-off-by: Odin Ugedal <odin@uged.al >
Kubernetes-commit: cd3e98b65c1339a8adc157175630de099a057d3f
2023-02-10 14:30:10 +00:00
Odin Ugedal
8279635aa4
client-go/cache: fix missing delete event on replace without knownObjects
...
This fixes an issue where a relist could result in a DELETED delta
with an object wrapped in a DeletedFinalStateUnknown object; and then on
the next relist, it would wrap that object inside another
DeletedFinalStateUnknown, leaving the user with a "double" layer
of DeletedFinalStateUnknown's.
Signed-off-by: Odin Ugedal <ougedal@palantir.com >
Signed-off-by: Odin Ugedal <odin@uged.al >
Kubernetes-commit: 0bf0546d9f75d92c801e81c9f7adf040bba64102
2023-02-10 14:16:26 +00:00
Stephen Kitt
22e2a9b6b1
client-go: add an Error() function on Request
...
Requests can accumulate errors with no obvious indication, e.g. if
their primary purpose is to construct a URL: URL() itself doesn't
return an error if r.err is non-nil.
Instead of changing URL() to return an error, which has quite a large
impact, add an Error() function and indicate on URL() that it should
be checked.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
Kubernetes-commit: f69c1c47463ff70ad61adf6f38c4d5b7373e9d0a
2023-02-10 14:44:07 +01:00
Kubernetes Publisher
d46293369e
Merge pull request #115665 from aramase/aramase/f/update_vendor_k8s_utils
...
Update k8s.io/utils to `a36077c30491`
Kubernetes-commit: 9a51625ebebcc8345c851afc2b5cc98eb19ac193
2023-02-10 01:08:12 +00:00
Anish Ramasekar
86a4c64374
Update k8s.io/utils to a36077c30491
...
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com >
Kubernetes-commit: 09e02052fdf3d248368b3d05d5c922d616528c4c
2023-02-09 20:09:41 +00:00
Odin Ugedal
2ded6b6eb8
client-go/cache: fix missing delete event on replace
...
This fixes a race condition when a "short lived" object
is created and the create event is still present on the queue
when a relist replaces the state. Previously that would lead in the
object being leaked.
The way this could happen is roughly;
1. new Object is added O, agent gets CREATED event for it
2. watch is terminated, and the agent runs a new list, L
3. CREATE event for O is still on the queue to be processed.
4. informer replaces the old data in store with L, and O is not in L
- Since O is not in the store, and not in the list L, no DELETED event
is queued
5. CREATE event for O is still on the queue to be processed.
6. CREATE event for O is processed
7. O is <leaked>; its present in the cache but not in k8s.
With this patch, on step 4. above it would create a DELETED event
ensuring that the object will be removed.
Signed-off-by: Odin Ugedal <ougedal@palantir.com >
Signed-off-by: Odin Ugedal <odin@uged.al >
Kubernetes-commit: 25d77218acdac2f793071add9ea878b08c7d328b
2023-02-08 14:57:23 +00:00
Kubernetes Publisher
efd0415f67
Merge pull request #115514 from pohly/event-broadcaster-shutdown
...
client-go: don't wait too long after EventBroadcaster.Shutdown
Kubernetes-commit: b0171f77f68427813efbb478c0ba89f48322d34a
2023-02-08 13:07:28 +00:00
Paco Xu
878a4f8bbe
archived design proposals are now moved to Design Proposals Archive Repo.
...
Kubernetes-commit: 019d2615af3f7fd0ed0d593ef9df348f6d85b204
2023-02-08 11:12:22 +08:00
Kubernetes Publisher
00b9d76f44
Merge pull request #115315 from enj/enj/i/kas_kubelet_conn_close
...
kubelet/client: collapse transport wiring onto standard approach
Kubernetes-commit: 22b88dea360b0aae4ecaa57142718386b3cbd40d
2023-02-07 17:07:30 +00:00
Kubernetes Publisher
9c5046523c
Merge pull request #115379 from artemvmin/serial-mkfs
...
Add an option to limit the number of concurrent mkfs calls
Kubernetes-commit: 6eb008620cd0ee3501326ee003d47fbaf1fa5b52
2023-02-07 05:07:29 +00:00
Kubernetes Publisher
2e3265cc1d
Merge pull request #108396 from tkashem/retry-metric
...
client-go: add a metric to count request retries
Kubernetes-commit: 2ab3151936f1df6b3ffb4d49bf9dc90218264545
2023-02-07 05:07:26 +00:00
Iceber Gu
899a109017
leaderelection: using le.clock for the time calculations
...
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io >
Kubernetes-commit: 9c31f14a7cfea7cc793a9a3f98bdd117cb438316
2023-02-07 13:00:55 +08:00
Monis Khan
d8b14dc089
kubelet/client: collapse transport wiring onto standard approach
...
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: 754cb3d601a820180d19567c3600a789d77b0f07
2023-02-05 20:51:54 -05:00
vinay kulkarni
85d57cfad9
Generated files and compat data from API changes
...
Kubernetes-commit: 3c70be1a1231e11c45698e209b01e91b92f8c5d2
2023-02-05 04:44:45 +00:00
Artem Minyaylov
13c89f7a54
Update k8s.io/utils to latest version
...
Update all usages of FakeExec to pointer to avoid copying the mutex
Kubernetes-commit: f573e149423dc578284789fdff8eeb3c195b5ccf
2023-02-03 14:51:25 -08:00
Patrick Ohly
f6a5a1f139
client-go: don't wait too long after EventBroadcaster.Shutdown
...
When Shutdown was called, delivery of each pending event would still be retried
12 times with a delay of ~10s between each retry. In apiserver integration
tests that caused the goroutine to linger long after the corresponding
apiserver of the test was shut down.
Kubernetes-commit: 15b01af9c18a0840d71e2bb7dff4d8c29b158aad
2023-02-03 14:52:20 +01:00
Khachatur Ashotyan
71253f0b35
fix: comment about permission bits
...
Kubernetes-commit: fd17dcf3876458229ac15d426eb1bd58f8c52cb4
2023-02-03 13:40:33 +04:00
Khachatur Ashotyan
03568a1821
client-go: make generating certificate/key permissions more secure (600)
...
Kubernetes-commit: 5f81c3005f6d3aeb652a0626c3632ff68b036577
2023-02-02 14:52:45 +04:00
Sean Sullivan
bb1833cfed
Refactor fake versions of openapi client into testing subdir
...
Kubernetes-commit: 869da89eab37ce670759cea2c86325f36625e7fc
2023-02-01 18:39:18 -08:00
Sean Sullivan
6eb57690dc
OpenAPI V3 Root interface and basic implementation
...
Kubernetes-commit: 5b482476b1bb458b8206c122be045ced759550f2
2023-01-29 23:28:35 -08:00
Patrick Ohly
6a9f0eb8ac
dependencies: update klog v2.90.1
...
This improves performance of the text formatting and ktesting.
Because ktesting no longer buffers messages by default, one unit
test needs to ask for that explicitly.
Kubernetes-commit: 961819a4d09488e20931103e0c36d2bed588fdcb
2023-01-23 18:19:54 +01:00
Iceber Gu
b4217e149b
client-go: fix the wait time for trying to acquire the leader lease
...
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io >
Kubernetes-commit: 9d80516abb4244ac1df4ceb84a32d3204fe5b308
2023-01-10 13:09:07 +08:00
Antoine Pelisse
e2867f9cdc
Update kubernetes code for minor API changes to kube-openapi
...
Kubernetes-commit: 88ec8fba32f0ef7b768ec528cfbe44046877ea34
2022-12-29 12:12:33 -08:00
Antoine Pelisse
3d77c7c648
Update kube-openapi to 15aac26d736a
...
Kubernetes-commit: 9bbdb9f130516a14a73914d0b41396ddb72a88ea
2023-03-07 16:14:54 -08:00
Jefftree
eec00dc791
remove mime AddExtensionType in discovery test
...
Kubernetes-commit: 50c6b6c86a50d0196af4bc659948d8dfd2147308
2022-12-05 17:30:08 +00:00
austin ce
9668243c04
Integrate new metrics provider option in test case
...
Kubernetes-commit: 9e83e7e975dd5971e60e9768e06520aa5ebf9bf8
2022-12-02 14:08:11 -05:00
austin ce
e0785d6713
Remove options from queue ctors w/o metrics
...
Kubernetes-commit: 31f16db1959bb1db02fcc578f4aa7d47414a26f4
2022-12-02 14:06:37 -05:00
austin ce
89a4c1271f
Add license header to new file
...
Kubernetes-commit: 95ad089ff8164d455f766694b1292ca8f1d200df
2022-12-01 18:28:02 -05:00
austin ce
98d0d1a9ba
Allow setting per-queue metrics providers
...
Kubernetes-commit: da71811514ac6e8fedd265831fed71f897b97781
2022-11-29 20:47:33 -05:00
Timo Reimann
0536a4e40c
Add tests
...
Kubernetes-commit: fc8b4657c18a6e58b2587060ad3c862d3d2ae262
2022-10-22 00:47:04 +02:00
Damien Grisonnet
9c7c60b695
events: fix EventSeries starting count discrepancy
...
The kube-apiserver validation expects the Count of an EventSeries to be
at least 2, otherwise it rejects the Event. There was is discrepancy
between the client and the server since the client was iniatizing an
EventSeries to a count of 1.
According to the original KEP, the first event emitted should have an
EventSeries set to nil and the second isomorphic event should have an
EventSeries with a count of 2. Thus, we should matcht the behavior
define by the KEP and update the client.
Also, as an effort to make the old clients compatible with the servers,
we should allow Events with an EventSeries count of 1 to prevent any
unexpected rejections.
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com >
Kubernetes-commit: d00364902bda05eed4f7f02051ab81f7be55f8a9
2022-09-08 23:50:41 +02:00
Claudiu Belu
79c893df5a
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
Patrick Ohly
9445f86b9d
Generate go.work files
...
This creates go.work and enables Go Workspaces. This is a file that
includes info on k/k and all the staging modules.
This depends on go 1.22 and setting FORCE_HOST_GO=true (for kube
scripts, which try to be hermetic).
Make this part of the normal update/verify sequence.
The top-level go.work file contains no replace statements. Instead, the
replace statements in the individual go.mod files are used. For this to
work, replace statements in the individual go.mod files have to be
consistent.
hack/tools has different dependencies and can't be in the main
workspace, so this adds a go.work just for that. Without this, go tries
to consider all deps in all modules and pick one that works for all.
This is problematic because there are so many of them that it is
difficult to manage.
Likewise for k8s.io/code-generator/examples and
k8s.io/kms/internal/plugins/_mock - add trivial go.work files.
For example k/k depends on an older version of a lib that gloangci-lint
needs (transitively) and it breaks.
This also updates vendor (needed to make go happy), and removes
vendor'ed symlinks. This breaks a LOT of our build tools, which will be
fixed subsequently.
Result: `go` commands work across modules:
Before:
```
$ go list ./pkg/proxy/iptables/ ./staging/src/k8s.io/api/core/v1/
main module (k8s.io/kubernetes) does not contain package k8s.io/kubernetes/staging/src/k8s.io/api/core/v1
$ go build ./pkg/proxy/iptables/ ./staging/src/k8s.io/api
main module (k8s.io/kubernetes) does not contain package k8s.io/kubernetes/staging/src/k8s.io/api
$ go test ./pkg/proxy/iptables/ ./staging/src/k8s.io/api
main module (k8s.io/kubernetes) does not contain package k8s.io/kubernetes/staging/src/k8s.io/api
```
After:
```
$ go list ./pkg/proxy/iptables/ ./staging/src/k8s.io/api/core/v1/
k8s.io/kubernetes/pkg/proxy/iptables
k8s.io/api/core/v1
$ go build ./pkg/proxy/iptables/ ./staging/src/k8s.io/api
$ go test ./pkg/proxy/iptables/ ./staging/src/k8s.io/api
ok k8s.io/kubernetes/pkg/proxy/iptables 0.360s
ok k8s.io/api 2.302s
```
Result: `make` fails:
```
$ make
go version go1.22rc1 linux/amd64
+++ [0106 12:11:03] Building go targets for linux/amd64
k8s.io/kubernetes/cmd/kube-proxy (static)
k8s.io/kubernetes/cmd/kube-apiserver (static)
k8s.io/kubernetes/cmd/kube-controller-manager (static)
k8s.io/kubernetes/cmd/kubelet (non-static)
k8s.io/kubernetes/cmd/kubeadm (static)
k8s.io/kubernetes/cmd/kube-scheduler (static)
k8s.io/component-base/logs/kube-log-runner (static)
k8s.io/kube-aggregator (static)
k8s.io/apiextensions-apiserver (static)
k8s.io/kubernetes/cluster/gce/gci/mounter (static)
k8s.io/kubernetes/cmd/kubectl (static)
k8s.io/kubernetes/cmd/kubectl-convert (static)
github.com/onsi/ginkgo/v2/ginkgo (non-static)
k8s.io/kubernetes/test/e2e/e2e.test (test)
k8s.io/kubernetes/test/conformance/image/go-runner (non-static)
k8s.io/kubernetes/cmd/kubemark (static)
github.com/onsi/ginkgo/v2/ginkgo (non-static)
k8s.io/kubernetes/test/e2e_node/e2e_node.test (test)
test/e2e/e2e.go:35:2: cannot find package "k8s.io/api/apps/v1" in any of:
/home/thockin/src/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/api/apps/v1 (vendor tree)
/home/thockin/src/kubernetes/_output/local/.gimme/versions/go1.22rc1.linux.amd64/src/k8s.io/api/apps/v1 (from $GOROOT)
/home/thockin/src/kubernetes/_output/local/go/src/k8s.io/api/apps/v1 (from $GOPATH)
... more ...
... more ...
... more ...
!!! [0106 12:13:41] Call tree:
!!! [0106 12:13:41] 1: /home/thockin/src/kubernetes/hack/lib/golang.sh:948 kube::golang::build_binaries_for_platform(...)
!!! [0106 12:13:41] 2: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
!!! [0106 12:13:41] Call tree:
!!! [0106 12:13:41] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
!!! [0106 12:13:41] Call tree:
!!! [0106 12:13:41] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
make: *** [Makefile:96: all] Error 1
```
Again, this requires go 1.22 (e.g. gotip), as go 1.21.x does not have
`go work vendor` support.
TO REPEAT:
( \
./hack/update-go-workspace.sh; \
./hack/update-vendor.sh; \
./hack/update-go-workspace.sh; \
)
Kubernetes-commit: 65b841c077e0d3282d28b9199aec72d23d045104
2022-06-08 12:12:42 +02:00
Abu Kashem
d2388d199c
client-go: add metric to count retries
...
Kubernetes-commit: b6c369f5c90bbef8058b3d44949f4e815dd6607f
2022-02-28 12:22:09 -05:00
Kubernetes Publisher
f457a57d6d
Merge pull request #112072 from tkashem/retry-concurrency-test
...
client-go: add unit test for Request thread safety
Kubernetes-commit: 87759c73eb7d7804c8b5116becbce3f1066678bd
2023-01-31 01:46:49 -08:00
Abu Kashem
67f1485c1d
client-go: add unit test for Request thread safety
...
Kubernetes-commit: ca492a9b62a586caf3e3cd22bc020108a63fb395
2022-08-26 13:24:36 -04:00
Kubernetes Publisher
b1350830d0
Merge pull request #115266 from pohly/gomega-update
...
dependencies: update gomega to v1.26.0
Kubernetes-commit: 6d17cb2051b3a9958ed3353df242312d85e75d43
2023-01-30 21:07:00 +00:00
Kubernetes Publisher
d7d6bcf014
Merge pull request #115354 from pohly/dra-reserved-for-list-type
...
dynamic resource allocation: avoid apiserver complaint about list content
Kubernetes-commit: c829397f7a1fa956766f6479a8ca454b6937feda
2023-01-30 17:06:56 +00:00
Kubernetes Publisher
648d82831a
Merge pull request #110253 from tkashem/retry-condition-test
...
client-go: add a test to document retry conditions
Kubernetes-commit: 3bf42a7aec041f4e50e7b4ce3b3cfe04de0af859
2023-01-27 09:14:48 +00:00
Patrick Ohly
fa4e59aaee
dynamic resource allocation: avoid apiserver complaint about list content
...
This fixes the following warning (error?) in the apiserver:
E0126 18:10:38.665239 16370 fieldmanager.go:210] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (test/claim-84; resource.k8s.io/v1alpha1, Kind=ResourceClaim) to smd typed: .status.reservedFor: element 0: associative list without keys has an element that's a map type" VersionKind="/, Kind=" namespace="test" name="claim-84"
The root cause is the same as in e50e8a0c919c0e02dc9a0ffaebb685d5348027b4:
nothing in Kubernetes outright complains about a list of items where the item
type is comparable in Go, but not a simple type. This nonetheless isn't
supposed to be done in the API and can causes problems elsewhere.
For the ReservedFor field, everything seems to work okay except for the
warning. However, it's better to follow conventions and use a map. This is
possible in this case because UID is guaranteed to be a unique key.
Validation is now stricter than before, which is a good thing: previously,
two entries with the same UID were allowed as long as some other field was
different, which wasn't a situation that should have been allowed.
Kubernetes-commit: 508cd60760567b3832da748140e3cf782c1b8695
2023-01-26 20:37:00 +01:00
Patrick Ohly
55c90d535e
dependencies: update gomega to v1.26.0
...
If gomega.Eventually/Consistently run into a situation where it observes some
state of e.g. a pod which does not satisfy the condition and then further
polling fails with API server errors, gomega will report both the most recent
pod state and API error instead of just the API error.
Kubernetes-commit: aa1279b5eb79177f5351368d8d9159982b1bfb5e
2023-01-23 15:19:38 +01:00
Abu Kashem
79c4b4060a
client-go: add test to document retry conditions
...
Kubernetes-commit: 68c542d52246b0b750e332616884350164018695
2022-05-27 09:13:30 -04:00
Kubernetes Publisher
adb1f506f9
Merge pull request #114550 from alexzielenski/apiserver/smd/update-kube-openapi
...
update kube-openapi dependency
Kubernetes-commit: df03edaf755f71a61f4f817ca374ebe3b6416270
2023-01-25 05:06:36 +00:00
Alexander Zielenski
1c9d8a00ef
update kube-openapi
...
Kubernetes-commit: 7641ff75412c1d8b547c4fa388d3901aeeda6948
2023-01-23 15:32:33 -08:00
Kubernetes Publisher
cbb60162c0
Merge pull request #111652 from ash2k/ash2k/leader-elector-tweaks
...
Always emit the stopped leading event
Kubernetes-commit: f21c60341740874703ce12e070eda6cdddfd9f7b
2023-01-23 13:06:19 +00:00
Mikhail Mazurskiy
ac40ba3297
Always emit the stopped leading event
...
Kubernetes-commit: 771ab7488d53f0d6c85238992a8e5f4bcb73e24e
2022-10-12 20:53:05 +11:00
Kubernetes Publisher
84ad8a7920
Merge pull request #113540 from wongearl/cleanup-client-go
...
diff.ObjectReflectDiff is DEPRECATED use cmp.Diff
Kubernetes-commit: 60d73ba75148483d150622a4d8b6e122e189ceab
2023-01-19 21:09:35 +00:00
Kubernetes Publisher
7059973891
Merge pull request #115186 from thockin/codegen-2-rm-deprecated-clients
...
Remove deprecated and orphaned generated code
Kubernetes-commit: 2fba771792023756b539501cdabdb19a32bb9536
2023-01-19 21:09:34 +00:00
Kubernetes Publisher
31586e6042
Merge pull request #115184 from thockin/codegen-1-clientset-doc-go
...
Don't generate clientset/doc.go in client-gen
Kubernetes-commit: c2d18a6d14974b123d09c4ce40ea0dd79184787d
2023-01-19 04:13:56 +00:00
Kubernetes Publisher
c33df1cccb
Merge pull request #113637 from mikedanese/http-proxy
...
switch spdy round trip tests to simple http proxy
Kubernetes-commit: 0acf6dbf7c094b71291b9fd7f78d5385565aa97c
2023-01-19 00:27:41 +00:00
Tim Hockin
7c57428f98
Remove obsolete generated listers
...
These are not regenerated by any input. The OWNERS files were the last
things left for these 2 directories
Kubernetes-commit: dc88f34ce30eb98285f7f30e391b135e842cdbc2
2023-01-14 17:54:12 -08:00
Tim Hockin
0f17f43973
Remove obsolete generated applyconfigs
...
These are not regenerated by any input.
Kubernetes-commit: 37ca6b0fac3c118c9cb0619a07a2fe40e567f6d1
2023-01-14 17:20:06 -08:00
Tim Hockin
1d637ff29e
Don't generate clientset/doc.go in client-gen
...
It seems valuable to be able to provide hand-written docs for these
first-level directories, and if don't want them, the generated doc.go
files are not actually very helpful.
This commit also adds new doc.go files for client-go listers/ and
informers/.
Kubernetes-commit: 95bf7b0afe9dd6a0f00125b1d290514a23e778e2
2023-01-12 09:51:33 -08:00
Tim Hockin
b94c7fc493
Fix client-go doc.go - not generated
...
As per liggitt, lavalamp, and jpbetz
Kubernetes-commit: f95a840c12ef24615d1069b98dca8a061c710cbb
2023-01-04 15:04:06 -08:00
Mike Danese
9edd019f97
vendor: removed unused dep github.com/elazarl/goproxy
...
Kubernetes-commit: f61c4245c18724dcac88f0ad9f347e82bbb57cd7
2022-11-04 22:14:46 +00:00
Kubernetes Publisher
e6998df99e
Merge pull request #115093 from xuzhenglun/too-large-resource-version-1.16
...
Fix bug in reflector not detecting "Too large resource version" error before 1.17.0
Kubernetes-commit: d3f881f7508ec3bd8aa83712038bdcf5f4703396
2023-01-18 11:59:00 +00:00
Kubernetes Publisher
a13376f3fa
Merge pull request #114542 from pacoxu/EphemeralContainers
...
cleanup: EphemeralContainers feature gate related codes
Kubernetes-commit: c913e6ce62d23b19eebec9beda91d7599bf5099b
2023-01-17 20:14:45 +00:00
xuzhenglun
7685b51912
Fix bug in reflector not detecting "Too large resource version" error before 1.17.0
...
Kubernetes-commit: 11e5e92dc65c1caaeb248a60d90ccc8e29eb9ff0
2023-01-16 11:36:28 +08:00
Kubernetes Publisher
228b004f4a
Merge pull request #115077 from smarterclayton/reflector_mock_clock
...
cache: Reflector should have the same injected clock as its informer
Kubernetes-commit: 4c4d4ad0a4aea4d015561ae3e7d48e8aaf609277
2023-01-15 17:24:49 -08:00
Clayton Coleman
08e22c4b64
cache: Reflector should have the same injected clock as its informer
...
While refactoring the backoff manager to simplify and unify the code
in wait a race condition was encountered in
TestSharedInformerWatchDisruption. The new implementation failed
because the fake clock was not propagated to the backoff managers
when the reflector was used in a controller. After ensuring the
mangaers, reflector, controller, and informer shared the same
clock the test needed was updated to avoid the race condition by
advancing the fake clock and adding real sleeps to wait for
asynchronous propagation of the various goroutines in the controller.
Due to the deep structure of informers it is difficult to inject
hooks to avoid having to perform sleeps. At a minimum the FakeClock
interface should allow a caller to determine the number of waiting
timers (to avoid the first sleep).
Kubernetes-commit: 91b3a81fbd916713afe215f7d701950e13a02869
2023-01-14 14:17:33 -05:00
Kubernetes Publisher
241dfe3630
Merge pull request #114794 from lavalamp/improved-has-synced
...
Do not N^2 loading webhook configurations
Kubernetes-commit: cc9cc4d3eaec45206f353216a1c3ff6edaf07d30
2023-01-12 16:03:24 -08:00
Daniel Smith
cb28a0e57e
Fix N^2 startup for webhook configurations
...
Add a "lazy" type to track when an update is needed. It uses a nested
locking technique to avoid extra evaluation calls.
Kubernetes-commit: 5a1091d88d95bd1dd5c27f2c72cee4ecb4219dda
2023-01-09 23:29:25 +00:00
Kubernetes Publisher
895a515b59
Merge pull request #114766 from MadhavJivrajani/prepare-for-go1.20
...
[Prepare for go1.20] *: Bump versions and fix tests
Kubernetes-commit: 4802d7bb62c2623be8e4f940f6b5c1fcddd6c744
2023-01-12 18:42:58 +00:00
Madhav Jivrajani
47c0033395
*: Bump version of vmware/govmomi
...
Bumping version to include changes that
better handle TLS errors. Bump nescessary
to prepare for when the version of Go is
bumped to 1.20
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com >
Kubernetes-commit: 8b064fa4be71b5f1b498fabb5caade3c57f5d434
2023-01-02 20:56:02 +05:30
Kubernetes Publisher
ce349e1afa
Merge pull request #114879 from olivierlemasle/bump-kube-openapi
...
Bump kube-openapi
Kubernetes-commit: 8fdaac238e4f7f560066ea3a324cdbcaae564ac9
2023-01-12 02:09:56 +00:00
Kubernetes Publisher
6500345693
Merge pull request #113467 from pacoxu/psp-cleanup
...
Remove PodSecurityPolicy related code except client-go & API type
Kubernetes-commit: 08d9a0ef5b3b30952a558786e4b6e360701a16c6
2023-01-12 02:09:49 +00:00
Kubernetes Publisher
674e53a7cb
Merge pull request #112365 from dgrisonnet/consolidate-isomorphic-events
...
Update isomorphic event definition in the events/v1 client to match aggregation logic from core/v1
Kubernetes-commit: f56c79398e3c58b4f5a9c7e6a1f4d64248ef1b83
2023-01-11 09:22:09 +00:00
Kubernetes Publisher
2c828f0e97
Merge pull request #114859 from pohly/e2e-ginkgo-spec-ordering
...
dependencies: update ginkgo to v2.7.0
Kubernetes-commit: a11ad04564f05e5d7e2d5a3f421ec5a45b6807c5
2023-01-11 01:23:10 +00:00
Olivier Lemasle
640dd29fa4
Bump kube-openapi
...
Kubernetes-commit: 8b8e20fcdbbeeb4520995e4f7c6a003a33062dd2
2023-01-09 20:41:41 +01:00
Patrick Ohly
e96d4a06a4
dependencies: update ginkgo to v2.7.0
...
The new ginkgo release adds sorting of specs. This was triggered by
the observation that parallel test execution of Kubernetes E2E tests
sometimes ran the same spec twice and (presumably) other specs not at all
because spec order was random due to iteration over a map.
Sorting should avoid that problem.
Kubernetes-commit: baf832d80d798d53ceb7d4de3a39330c6eda5c6a
2023-01-05 21:19:14 +01:00
Kubernetes Publisher
fda1b1132e
Merge pull request #114869 from liggitt/kube-openapi
...
bump kube-openapi
Kubernetes-commit: 0e49c542d7a73dd056f8f32f33939207dd009b14
2023-01-07 07:51:03 +00:00
Jordan Liggitt
61a4d65439
bump kube-openapi
...
Kubernetes-commit: d78de56d769ee9bd2193ccadbac5621d4a0ae89d
2023-01-06 12:21:58 -05:00
Kubernetes Publisher
bd7ed9e647
Merge pull request #114460 from brianpursley/pf-exit
...
portforward: return error on lost connection to pod
Kubernetes-commit: 61cdb86814489624dd5a169526797e186a118e66
2023-01-07 07:51:00 +00:00
Kubernetes Publisher
5ea7f43b5d
Merge pull request #113654 from stevekuznetsov/skuznets/fake-group-name-registration
...
code-generator: refer to the API package for GV{R,K}
Kubernetes-commit: c97dbd1afb815731cbebf9cb0d888a29c39e2b76
2023-01-07 07:50:58 +00:00
Kubernetes Publisher
dc46266e11
Merge pull request #114829 from liggitt/oauth-revert
...
Revert "bump golang.org/x/oauth2"
Kubernetes-commit: 293bf70916de8ef61d5f868f53959f1e15b3e091
2023-01-07 07:50:56 +00:00
Kubernetes Publisher
37a1df5cba
Merge pull request #111660 from pacoxu/key-encipherment-v1.26
...
Key encipherment usage v1.27
Kubernetes-commit: 492637878f0b26fa126f2025af2ee5c1f1fd5867
2023-01-07 07:50:51 +00:00
Kubernetes Publisher
26d70e3a1c
Merge pull request #114822 from liggitt/oauth2
...
bump golang.org/x/oauth2
Kubernetes-commit: 4e785dc7e3ac1d01cedd23a0ed9c4a67dc9c214f
2023-01-07 07:50:50 +00:00
Jordan Liggitt
338dcc21ed
Revert "bump golang.org/x/oauth2"
...
This reverts commit fc9a140badf29382c1396b7de4813849d6f3e3c9.
Kubernetes-commit: 9f07c8e346fef454942d205f2702885475c7fc9a
2023-01-04 17:58:08 -05:00
Jordan Liggitt
4dad476f03
bump golang.org/x/oauth2
...
Kubernetes-commit: fc9a140badf29382c1396b7de4813849d6f3e3c9
2023-01-04 11:16:43 -05:00
Kubernetes Publisher
3e0d990533
Merge pull request #114236 from dgrisonnet/fix-eventseries-race
...
Fix data race when emitting similar Events consecutively
Kubernetes-commit: ca858e0c961db6ef8b22ecc3e257a02757261ea1
2023-01-02 17:28:37 +00:00
Kubernetes Publisher
7e3470802f
Merge pull request #114237 from dgrisonnet/handle-series-error
...
Retry when recording an EventSerie results in an AlreadyExist error
Kubernetes-commit: 2b6c8420a245583d5055e9b4b8ed2b648c42529d
2023-01-02 17:28:33 +00:00
Brian Pursley
b0a6a6f777
portforward: Add unit test to cover stopChan usage
...
Kubernetes-commit: 6f08ab013c6ce54de239aab46b4086c09464f977
2022-12-23 10:11:21 -05:00
Kubernetes Publisher
b69cda3e4e
Merge pull request #113538 from pohly/e2e-ginkgo-timeline
...
e2e: ginkgo timeline
Kubernetes-commit: 020fb2eb776c0affad3a9ff7dd21ba231e6c646d
2022-12-23 02:39:06 +00:00
Kubernetes Publisher
32f9a1505d
Merge pull request #114585 from JoelSpeed/fix-resource-requirements-claims
...
Resource Claims must be a map type, not set
Kubernetes-commit: 5882479457ac2554f70fc4678aa86eca8c49ae8b
2022-12-23 02:39:04 +00:00
Kubernetes Publisher
bc218e478a
Merge pull request #114578 from ardaguclu/wrap-ctx-error-until
...
Embed context deadline exceeded in error to let errors.Is can work
Kubernetes-commit: b704b96565249fe451d9d023f7f743efc1cc90fe
2022-12-23 02:39:02 +00:00
Kubernetes Publisher
19c9966172
Merge pull request #114291 from MaxHorstmann/master
...
#79612 fix(client-go): return error in fake discovery
Kubernetes-commit: 0783cf49e853e56f2f5e1708519c09fa83f0349f
2022-12-23 02:38:59 +00:00
Joel Speed
984a230dff
Resource claims should be a map type
...
Kubernetes-commit: e50e8a0c919c0e02dc9a0ffaebb685d5348027b4
2022-12-19 16:02:02 +00:00
Arda Güçlü
21fffc1153
Embed context deadline exceeded in error to let errors.Is can work
...
Currently, watch package embeds context deadlineexceeded error
in it's own error using `%v`, as can be seen in here;
`fmt.Errorf("UntilWithSync: unable to sync caches: %v", ctx.Err())`
However, consumers of this function can not use
`errors.Is(err, context.DeadlineExceeded)` due this `%v`.
To let consumers can distinguish context deadlineexceeded errors,
this PR changes error embedding format to `%w`.
Kubernetes-commit: 6b7c365f8f6d50280c2dab171efdd4b93d964f32
2022-12-19 15:26:08 +03:00
Kubernetes Publisher
089645a7c5
Merge pull request #114559 from liggitt/gofmt
...
Fix indentation/spacing in comments to render correctly in godoc
Kubernetes-commit: 76522eb1a339a95544523c1ed85da09f287f1ade
2022-12-19 01:08:52 +00:00
Jordan Liggitt
422fe1f61e
Fix indentation/spacing in comments to render correctly in godoc
...
Kubernetes-commit: 78cb3862f11225135afdf76f3424e2d7b33104c7
2022-12-17 17:31:05 -05:00
Paco Xu
20ca706950
cleanup: EphemeralContainers feature gate related codes
...
Kubernetes-commit: 70e56fa71af5aa4f3d1448fcbc26e86309cd0cf3
2022-12-16 23:46:47 +08:00
Kubernetes Publisher
97591331ce
Merge pull request #113985 from lavalamp/improved-has-synced
...
Propagate HasSynced properly
Kubernetes-commit: 843b40aeb421347ae00f206ea879bc1e1ae2912d
2022-12-15 21:18:24 +00:00
Max Horstmann
24248303bf
client-go: properly return error in fake discovery ( #79612 )
...
Fake discovery should return an error if an error-returning reactor was prepended.
This is relevant e.g. for unit tests which test a function which relies
on discovery to check if an API Server is available.
Matches existing behavior of other fake types, for example fake_namespace.
Adds unit test coverage as well.
Kubernetes-commit: b47748103a53c0fe5ba1ddc950662ffc9bd9ed0f
2022-12-14 11:41:10 -05:00
Brian Pursley
d0842249d3
portforward: return error on lost connection to pod
...
Currently, when the remote connection is unexpected closed, forward() prints an error message saying "lost connection to pod" via runtime.HandleError, but then it returns nil for the error.
This prevents the caller from being able to handle this error differently.
This commit changes forward() to return the "lost connection to pod" error so that it can be handled by the caller.
Making this change enables kubectl port-forward to exit with code 1, instead of 0, which is the expected behavior for a command that has failed.
Kubernetes-commit: a9f04103854893056237a09250ad3335867b0391
2022-12-13 13:32:42 -05:00
Damien Grisonnet
e3ded99476
tools/events: retry on AlreadyExist for Series
...
When attempting to record a new Event and a new Serie on the apiserver
at the same time, the patch of the Serie might happen before the Event
is actually created. In that case, we handle the error and try to create
the Event. But the Event might be created during that period of time and
it is treated as an error today. So in order to handle that scenario, we
need to retry when a Create call for a Serie results in an AlreadyExist
error.
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com >
Kubernetes-commit: 2f83117bcfe30ad3ada7f1ca66f4b885a1d5df25
2022-12-01 15:40:01 +01:00
Damien Grisonnet
4b578e1242
tools/events: fix data race when emitting series
...
There was a data race in the recordToSink function that caused changes
to the events cache to be overriden if events were emitted
simultaneously via Eventf calls.
The race lies in the fact that when recording an Event, there might be
multiple calls updating the cache simultaneously. The lock period is
optimized so that after updating the cache with the new Event, the lock
is unlocked until the Event is recorded on the apiserver side and then
the cache is locked again to be updated with the new value returned by
the apiserver.
The are a few problem with the approach:
1. If two identical Events are emitted successively the changes of the
second Event will override the first one. In code the following
happen:
1. Eventf(ev1)
2. Eventf(ev2)
3. Lock cache
4. Set cache[getKey(ev1)] = &ev1
5. Unlock cache
6. Lock cache
7. Update cache[getKey(ev2)] = &ev1 + Series{Count: 1}
8. Unlock cache
9. Start attempting to record the first event &ev1 on the apiserver side.
This can be mitigated by recording a copy of the Event stored in
cache instead of reusing the pointer from the cache.
2. When the Event has been recorded on the apiserver the cache is
updated again with the value of the Event returned by the server.
This update will override any changes made to the cache entry when
attempting to record the new Event since the cache was unlocked at
that time. This might lead to some inconsistencies when dealing with
EventSeries since the count may be overriden or the client might even
try to record the first isomorphic Event multiple time.
This could be mitigated with a lock that has a larger scope, but we
shouldn't want to reflect Event returned by the apiserver in the
cache in the first place since mutation could mess with the
aggregation by either allowing users to manipulate values to update
a different cache entry or even having two cache entries for the same
Events.
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com >
Kubernetes-commit: 55ec09d377274b4a6107fe0b7a061ad408fe05a7
2022-12-01 15:39:34 +01:00
Daniel Smith
5d70a118df
Enable propagration of HasSynced
...
* Add tracker types and tests
* Modify ResourceEventHandler interface's OnAdd member
* Add additional ResourceEventHandlerDetailedFuncs struct
* Fix SharedInformer to let users track HasSynced for their handlers
* Fix in-tree controllers which weren't computing HasSynced correctly
* Deprecate the cache.Pop function
Kubernetes-commit: 8100efc7b3122ad119ee8fa4bbbedef3b90f2e0d
2022-11-18 00:12:50 +00:00
Kubernetes Publisher
e7e7d01afd
Merge pull request #110991 from thockin/svc-typenames-starTrafficPolicyType
...
Svc typenames star traffic policy type
Kubernetes-commit: 923ee203f362aa947a7b0c9b1357488e0a244ea7
2022-12-13 04:24:09 +00:00
Steve Kuznetsov
9bcbb56a27
code-generator: refer to the API package for GV{R,K}
...
There should only be one source of truth for the API group's name and
version.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com >
Kubernetes-commit: e13198ec6f52c4a6405388e90053954dc7656a31
2022-11-06 07:05:42 -07:00
Paco Xu
be1f5d4ebb
client-go: remove extensions psp only
...
Kubernetes-commit: e41b1bff5853c616f7872ccf36fbefa480f72892
2022-11-03 10:12:16 +08:00
wongearl
5d95f80033
diff.ObjectReflectDiff is DEPRECATED use cmp.Diff
...
Kubernetes-commit: 6da08775f9fc8d70f867435f55cf712d3a6ef056
2022-11-02 17:40:19 +08:00
Patrick Ohly
beb71aae41
dependencies: update to ginkgo v2.6.1, gomega v1.24.2
...
Ginkgo v2.5.0 adds support for a "timeline": a full description of what happened
while a specific test ran, including failures, timeouts, and log output.
Ginkgo v2.6.0 adds ReportBeforeSuite which we need for
https://github.com/kubernetes/kubernetes/issues/114313 .
Kubernetes-commit: f3ef4004317c1a12d84021be29dd5f92badc8eff
2022-11-02 09:07:12 +01:00
Damien Grisonnet
1113415196
event_broadcaster: update isomorphic event def
...
Update the definition of an isomorphic event in the events/v1 client to
match the aggregation logic that was already present in the core/v1
implementation.
The note field was omitted even though the message was used in the core
API aggregation because we didn't reach consensus.
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com >
Kubernetes-commit: 21f2f746abc1a5a1b3193274401f5728e19cc26f
2022-09-09 19:16:40 +02:00
Paco Xu
6a07cedcd3
kubelet: add key encipherment usage only if it is rsa key
...
remove allowOmittingUsageKeyEncipherment as it is always true
Signed-off-by: Paco Xu <paco.xu@daocloud.io >
Kubernetes-commit: 160f015ef4affe903f98e74cf42b40fceef15cb9
2022-08-03 16:41:09 +08:00
Tim Hockin
31e7d402a3
ServiceInternalTrafficPolicyType: s/Type//
...
Rename ServiceInternalTrafficPolicyType => ServiceInternalTrafficPolicy
Kubernetes-commit: dd0a50336e283775e05e54b0b174b7c7a9367d99
2021-11-09 23:30:23 -08:00
Tim Hockin
f5f28c4de4
ServiceExternalTrafficPolicyType: s/Type//
...
Rename ServiceExternalTrafficPolicyType => ServiceExternalTrafficPolicy
Kubernetes-commit: d0e2b068500b260851f48c636185e1dcbb438d2e
2021-11-09 23:25:43 -08:00
Kubernetes Publisher
5a489e8d10
Merge pull request #114404 from hoskeri/discovery-error-check
...
Check the correct error in d.downloadAPIs
Kubernetes-commit: 47d58265ae6661fa5e21575f688ce761a11c090e
2022-12-11 00:05:15 -08:00
Abhijit Hoskeri
4dbb1cd1d5
Check the correct error in d.downloadAPIs
...
The error result of `d.downloadAPIs()` is set in `aerr`,
not `err`.
This prevents a nil-ptr dereference of apiGroups in the next step.
Signed-off-by: Abhijit Hoskeri <abhijithoskeri@gmail.com >
Kubernetes-commit: 450ba4f50638ad9ee4d287a762a8530c64e89ebd
2022-12-10 16:32:02 -08:00
Kubernetes Publisher
58ff029093
Merge pull request #113933 from liggitt/retry-race
...
Fix client-go request retry race
Kubernetes-commit: 8d2fbfc5a9635bc3247d7f739f8a057962049aca
2022-12-10 23:34:13 +00:00
Kubernetes Publisher
ca60156554
Merge pull request #111898 from ncdc/reflector-unstructured-fixes
...
Reflector: support logging Unstructured type
Kubernetes-commit: 054274d77c3fc12eeb56fd03d6e371d4aa61f0c1
2022-12-10 03:34:09 +00:00
Kubernetes Publisher
d21defd4b1
Merge pull request #113904 from apelisse/add-owners-apelisse
...
Add apelisse into some more OWNERS files
Kubernetes-commit: b47752022b5b856a3516ad5377e3b020f43c4f2b
2022-12-09 23:33:52 +00:00
Kubernetes Publisher
6cbd19f22f
Merge pull request #114319 from liggitt/net-master
...
Update golang.org/x/net 1e63c2f
Kubernetes-commit: 72acaad83924360960e21915aa94cd1db8d0196c
2022-12-07 02:03:56 +00:00
Jordan Liggitt
b044399795
Update golang.org/x/net 1e63c2f
...
Includes fix for CVE-2022-41717
Kubernetes-commit: afe5378db9d17b1e16ea0028ecfab432475f8e25
2022-12-06 17:29:11 -05:00
Andy Goldstein
fbb7f087d1
reflector: refactor setting typeDescription & expectedGVK
...
Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com >
Kubernetes-commit: 784ec157e67c86bc3383b326bbfe8ee70737aa4d
2022-12-02 12:39:58 -05:00
Antoine Pelisse
0193d08605
Add jpbetz to k8s.io/client-go/applyconfigurations
...
Kubernetes-commit: a1f5e36fab45645ad4776eca927347d8dc715c8b
2022-11-17 14:54:41 -08:00
Jordan Liggitt
e2f402cda3
Limit request retrying to []byte request bodies
...
Kubernetes-commit: 69fad419a7666ac416307de4c3ee88c7e61b94db
2022-11-15 17:47:35 -05:00
Antoine Pelisse
a4d38f89cb
Add apelisse into some more OWNERS files
...
Kubernetes-commit: b5f2130f240b0a9ebd1d0edd400b899d0efb8b2b
2022-11-14 16:28:14 -08:00
Kubernetes Publisher
1ac8d45935
Merge pull request #113797 from seans3/force-no-aggregated
...
Adds field to force non-aggregated discovery
Kubernetes-commit: 418608e926049e7458f03226fe27f101e7fdc47f
2022-11-14 21:50:55 +00:00
Kubernetes Publisher
c8ffed3108
Merge pull request #111023 from pohly/dynamic-resource-allocation
...
dynamic resource allocation
Kubernetes-commit: d1c0171aed848900daa07212370c991c19c318b1
2022-11-12 01:50:36 +00:00
Kubernetes Publisher
61cd728579
Merge pull request #113826 from jsafrane/add-openstack
...
Add CSI migration of OpenStack Cinder volumes
Kubernetes-commit: e4d46148de9d83c23001323d6613618c2897a427
2022-11-11 21:50:36 +00:00
Kubernetes Publisher
cfd682c60b
Merge pull request #113375 from atiratree/PodHealthyPolicy-api
...
api: add unhealthyPodEvictionPolicy for PDBs
Kubernetes-commit: cc704f97784c3359db4690b97201ebfe6b481869
2022-11-11 13:50:33 +00:00
Patrick Ohly
522eaa15ef
api: generated files
...
Kubernetes-commit: 9683c60c05491a9e9cafd3419c150caf7355bf49
2022-11-10 20:22:42 +01:00
Filip Křepinský
f1c80d7a4f
generated
...
Kubernetes-commit: 3e3912467a0d7b00ec8a5231da3603b3aa31337d
2022-11-10 18:41:33 +01:00
Kubernetes Publisher
acc9fa7e04
Merge pull request #113186 from ttakahashi21/KEP-3294
...
Introduce APIs to support CrossNamespaceSourceProvisioning
Kubernetes-commit: d94261e904c90578e913c42c4d2a0fc8cb30937f
2022-11-10 17:39:30 +00:00
Jan Safranek
f2b10f39ac
Remove OpenStack cloud provider
...
And keep OpenStack Cinder CSI translation
Kubernetes-commit: 6005c3b5120d2bfa1ce72b02389ac951a0482545
2022-11-10 18:26:00 +01:00
Jan Safranek
a3d3eb0cc9
Revert "Remove references to openstack and cinder"
...
This reverts commit 9bbf01bae93600d3314bce0acbff1f3a0a42e74b.
Kubernetes-commit: 5b284a50b78cb7d68b12825f5c0cfa29503c1577
2022-11-10 18:22:07 +01:00
Takafumi Takahashi
c7bdab2154
Generate code
...
Kubernetes-commit: cb12a2bc5118fe34e2eb396dc1a3b8e7cc1de9f4
2022-11-09 21:21:52 +00:00
Kubernetes Publisher
0a1f6a8fd0
Merge pull request #112744 from pwschuurman/statefulset-slice-impl
...
Add implementation of KEP-3335, StatefulSetSlice
Kubernetes-commit: ff19efdf9bd2d1f4abece3229f1e36c1d58b96df
2022-11-09 21:30:32 +00:00
Sean Sullivan
3ac73ea2c8
Adds bool to force non-aggregated discovery
...
Kubernetes-commit: a84d877310ba5cf9237c8e8e3218229c202d3a1e
2022-11-09 12:30:05 -08:00
Kubernetes Publisher
1c7a870d4f
Merge pull request #113485 from MikeSpreitzer/apf-borrowing
...
Add borrowing between priority levels in APF
Kubernetes-commit: 1193a9abcbd6c6ce6fc7d4ce38872f1933ef5159
2022-11-09 13:30:37 +00:00
Kubernetes Publisher
7280270f31
Merge pull request #113599 from seans3/discovery-client-update
...
Aggregated discovery client
Kubernetes-commit: c288251818d9d39ffc10d8d133a5094288e73b3b
2022-11-09 09:30:03 +00:00
Marly Puckett
769443557e
Update redacting functionality to redact all sensitive info in config when printing with view ( #109189 )
...
* Add RedactSecrets function
* Move RedactSecrets method to existing RawBytesData case
* Update TestRedactSecrets to use new pattern of os.CreateTemp()
Kubernetes-commit: e721272d10dd6c4d85ff613182ba0eaddcec9272
2022-11-08 17:30:10 +00:00
Kubernetes Publisher
4b1a9fdfb5
Merge pull request #113314 from cici37/celIntegration
...
CEL validation in Admission chain
Kubernetes-commit: 595ea324113580ae61f4a15ab3e5b22303a195cf
2022-11-08 05:49:13 +00:00
Kubernetes Publisher
ea9ec91697
Merge pull request #112905 from alexzielenski/kubectl-apply-csa-migration
...
kubectl: `apply --server-side` managed fields migration
Kubernetes-commit: 2f837dc113ba35f84e7012a6d1b06b075b349353
2022-11-08 05:49:10 +00:00
Kubernetes Publisher
3daf180aa6
Merge pull request #113688 from dashpole/update_utils
...
Update k8s.io/utils to fix util tracing panic
Kubernetes-commit: fa2e203a6bde89a84443ee9813e1f27aa31326a9
2022-11-08 05:49:08 +00:00
David Ashpole
dbe034bd24
update k8s.io/utils to fix util tracing panic
...
Kubernetes-commit: 3f1511c8e9a64cf60821036aa1fc3ec9d58a2931
2022-11-07 19:30:21 +00:00
Kubernetes Publisher
7ed3193a72
Merge pull request #111545 from jlsong01/rewrite_signature_of_StartEventWatcher
...
rewrite signature of function StartEventWatcher
Kubernetes-commit: f33209a6ede53ce6ead8aed6cfc1823df1afedfc
2022-11-08 05:49:05 +00:00
Kubernetes Publisher
cbe28cf468
Merge pull request #113274 from Huang-Wei/kep-3521-A
...
[KEP-3521] Part 1: New Pod API .spec.schedulingGates
Kubernetes-commit: 8c77820759cc28a5d82e9a68f3d335d1a27f4466
2022-11-04 07:56:09 +00:00
Alexander Zielenski
898b7a3cbd
add FindFieldsOwners util function
...
to be used by kubectl to determine csa manager name used
findowners
Kubernetes-commit: 26a6e1234869b5c546195aaf416f3424cd3c3dc8
2022-11-03 12:01:34 -07:00
Alexander Zielenski
4f63b629b5
add UpgradeManagedFieldsPatch
...
rather than modify the object directly, this function provides a JSONPATCH that should be sent to the server to upgrade its managed fields.
Kubernetes-commit: 4e4d748c06e2c2dfec7608f96237c4b0a42540c9
2022-11-03 17:38:08 -07:00
Alexander Zielenski
c8c6cb5745
add OWNERS to csaupgrade
...
Kubernetes-commit: 5002ba215bcaec75a65ccd1ee879c64538b970b7
2022-11-03 17:38:02 -07:00
Alexander Zielenski
a45874a99b
remove kubectl annotation logic from upgrade patch
...
adds unneccessary complexity. also discussed in SIG CLI meeting to keep annotation around for a while longer
Kubernetes-commit: 0c055eae3c9eaea26574743f0623d6b0e9e3d6b4
2022-11-03 12:05:45 -07:00
Sean Sullivan
25d5761bfa
Aggregated discovery client
...
Kubernetes-commit: b8fe2c7b8061e6ab0b093a49351bac256606da4a
2022-11-03 11:09:58 -07:00
Wei Huang
2248bf3801
Automated codegen
...
Kubernetes-commit: fc831d70881d0ef3f4016ad6fa830256f53bb5f3
2022-10-28 15:06:18 -04:00
Kubernetes Publisher
d576a3570d
Merge pull request #113387 from wojtek-t/refactor_client_indexing
...
Refactor store index into its structure
Kubernetes-commit: ee0b179a7b9867203a9cc73f5c90909318a240e3
2022-11-03 07:56:00 +00:00
Kubernetes Publisher
4fbef5bda9
Merge pull request #106242 from thockin/revive-copy-lb-status-type-to-ingress
...
Copy LoadBalancerStatus from core to networking
Kubernetes-commit: 818b13544f6421cd414d648637db48c9271b0bb7
2022-11-03 07:55:58 +00:00
Kubernetes Publisher
bc6266d159
Merge pull request #103177 from arkbriar/support_cancelable_exec_stream
...
Support cancelable SPDY executor stream
Kubernetes-commit: 3cf75a2f760b8093f7c97f26b4b2b059f3777bec
2022-11-03 03:55:56 +00:00
Wojciech Tyczyński
5e7ba1f8d7
Minor cleanup of thread safe store
...
Kubernetes-commit: 72194de96f0bb5c1c1e3247a129cf9e3f11972ef
2022-11-02 13:02:29 +01:00
Kubernetes Publisher
19b2e89c0c
Merge pull request #113523 from seans3/content-type-response
...
Get response content-type
Kubernetes-commit: ccf57ba09dafa94906310059e42a6b896c0eaf44
2022-11-01 22:52:45 -07:00
arkbriar
0563decd0a
Propagate the panic with a channel
...
Signed-off-by: arkbriar <arkbriar@gmail.com >
Kubernetes-commit: b7e6c23e9f73e4cc0209e94fe95c5e2809998bf6
2022-11-02 11:36:22 +08:00
Sean Sullivan
8ff4970e81
Get response content-type
...
Kubernetes-commit: 4ca128d71aa94653927b0e529b746cb7428563b1
2022-11-02 00:03:24 +00:00
Kubernetes Publisher
0d57396335
Merge pull request #113304 from mimowo/handling-pod-failures-beta-ssa
...
Use SSA to add pod failure conditions
Kubernetes-commit: 3c9928e4f87c1d023e595292e6139cbd8dfedd5c
2022-10-28 15:55:54 +00:00
Kubernetes Publisher
a232cf00b9
Merge pull request #113367 from pohly/dep-ginkgo-gomega
...
dependencies: update to gomega v1.23.0 and ginkgo v2.4.0
Kubernetes-commit: 9e8558158478f622104afd0328883577756bff9f
2022-10-28 15:55:53 +00:00
Michal Wozniak
a191e58772
SSA to add pod failure conditions - ready for review
...
Kubernetes-commit: fea883687feafc597591e15773f8c6f491b35d08
2022-10-24 14:55:16 +02:00
Patrick Ohly
984bdbf170
dependencies: update to gomega v1.23.0 and ginkgo v2.4.0 and dependencies
...
Gomega adds support for formatting extensions and StopTrying in matchers.
Ginkgo enhances DeferCleanup.
This also triggered an update of other dependencies.
Kubernetes-commit: e6ad2f2f23449c9d24606b864c4737dc66a7427e
2022-10-24 13:43:15 +02:00
Kubernetes Publisher
f87d0472f2
Merge pull request #112693 from aimuz/fix-GO-2022-0969
...
Fixed CVE-2022-27664 Bump golang.org/x/net to v0.1.1-0.20221027164007-c63010009c80
Kubernetes-commit: 6cb473b6c4f1239d411e0a50a1cdf9c4c092c42a
2022-10-28 07:55:43 +00:00
aimuz
d2367833c1
Fixed (CVE-2022-27664) Bump golang.org/x/net to v0.1.1-0.20221027164007-c63010009c80
...
Fixed https://pkg.go.dev/vuln/GO-2022-0969
Signed-off-by: aimuz <mr.imuz@gmail.com >
Kubernetes-commit: 78c704d4f60d54996d483d49c23c6aac82f28dc9
2022-10-28 10:07:56 +08:00
Kubernetes Publisher
ef8a2e5227
Merge pull request #113089 from zackzhangkai/fix-doc
...
fix typo
Kubernetes-commit: 594d34872c73f6abe5eba740f9e4557c6f970887
2022-10-19 07:54:59 +00:00
Kubernetes Publisher
197e4799dc
Merge pull request #108959 from astraw99/fix-duplicate-list
...
Fix duplicate code block of `ListAll` function
Kubernetes-commit: 0be68925f5d584966f3ca131bbfad3ea275a491a
2022-10-18 19:55:26 +00:00
Kubernetes Publisher
42a0e1ca70
Merge pull request #113062 from alexzielenski/client-go-json-output
...
client-go: raw data options for fetching openapiv3
Kubernetes-commit: bfb78f3e74188b19e627c1126cafaa1be36901d4
2022-10-18 03:55:16 +00:00
Kubernetes Publisher
b6d3c8d376
Merge pull request #107278 from harsimranmaan/allow_pagination_in_dynamic_fake_lister
...
Preserve metadata for fake dynamic client unstructured lists
Kubernetes-commit: aaee0f57da21e4b00181ad577da862246a5fa73c
2022-10-17 23:59:41 +00:00
Kubernetes Publisher
9cc33a48a7
Merge pull request #113106 from pohly/dep-ginkgo-gomega
...
dependencies: update to gomega v1.22.1 and ginkgo v2.3.1
Kubernetes-commit: 4216ad3542ff5defcfdb303945772a8e1663a7f6
2022-10-17 19:55:18 +00:00
Alexander Zielenski
624929cd3f
address feedback
...
Kubernetes-commit: 32d834a88673614080bc37727f8cc94b9b85bc86
2022-10-17 10:51:27 -07:00
Harsimran Singh Maan
0c269b7a5b
remove selflink as per review feedback
...
Kubernetes-commit: 5da368d012f7635f9718876061bec864b7dcf8e6
2022-10-17 09:19:21 -07:00
zackzhangkai
0945beb5d7
fix typo
...
Signed-off-by: zackzhangkai <zhangkaiamm@gmail.com >
Kubernetes-commit: 5a1ca395b28efd6537f93f9615bc5c7ca401a9dd
2022-10-17 14:10:09 +08:00
Alexander Zielenski
12cafe2b1b
refactor to use Schema(contentType)
...
Kubernetes-commit: e6e6dd826d76a2b19515cd907062f1f74f9e52c2
2022-10-14 12:46:36 -07:00
Alexander Zielenski
8b6ceae557
add more options for fetching openapiv3 in clients
...
remove serialized types from client
update tests
Kubernetes-commit: fec79e75a50f334d8384a5377513fc78222ea36a
2022-10-12 11:43:46 -07:00
arkbriar
2362c7b162
use subtests and defer in TestSPDYExecutorStream
...
Signed-off-by: arkbriar <arkbriar@gmail.com >
Kubernetes-commit: 86e5d069ecece8591ad693b50bcea49000f6df26
2022-10-10 11:24:40 +08:00
Patrick Ohly
9b5106747f
dependencies: update to gomega v1.22.1 and ginkgo v2.3.1
...
This adds support for timeouts and intermediate reports in Eventually and
Consistently.
Kubernetes-commit: d1dbf7ae3e223d5d93d0b3d875e4f03ff38e6de0
2022-10-07 17:19:09 +02:00
Kubernetes Publisher
fa9ed7f5fe
Merge pull request #112860 from nckturner/remove-log-line
...
Remove log line from expiration cache
Kubernetes-commit: c5bc8f929baf0ef7d6b1559e76f7569e8792a1bd
2022-10-15 07:53:38 +00:00
Kubernetes Publisher
6b2491258e
Merge pull request #112988 from alexzielenski/update-kube-openapi
...
update kube-openapi
Kubernetes-commit: 353e00796ef4c1e8fcea1cb51bcc62fc3acac3c8
2022-10-15 03:54:03 +00:00
Kubernetes Publisher
aea20dde59
Merge pull request #113037 from pacoxu/fsnotify-v1.6.0
...
update fsnotify to v1.6.0
Kubernetes-commit: 542ec977054c16c7981606cb1590cc39154ddf01
2022-10-14 07:56:41 +00:00
Alexander Zielenski
e3bb48f784
update kube-openapi
...
hack/pin-dependency.sh k8s.io/kube-openapi 172d655c2280350c77cf05962948fc67ff043492
hack/update-vendor.sh
Kubernetes-commit: f622dd918ab5d3bc902a8c625a0a89b21e8afe43
2022-10-13 19:51:22 -07:00
Paco Xu
1af37115fa
update fsnotify to v1.6.0
...
Kubernetes-commit: 3fee9d27355afe64dec7fa264e1faf209712f169
2022-10-13 13:14:43 +08:00
Kubernetes Publisher
e6d958c7a8
Merge pull request #112989 from ameukam/bump-golang.org/x/text-to-v0.3.8
...
Bump golang.org/x/text to v0.3.8
Kubernetes-commit: 054d86feb42b67bb13608d9aa9a7c986750da753
2022-10-12 03:53:33 +00:00
Arnaud Meukam
5e469bad4c
Bump golang.org/x/text to v0.3.8
...
Signed-off-by: Arnaud Meukam <ameukam@gmail.com >
Kubernetes-commit: 0d19690a54e480923e8222ce79566e6879667a1f
2022-10-11 23:30:39 +02:00
Kubernetes Publisher
f515a4cb9f
Merge pull request #112774 from stevekuznetsov/skuznets/dynamic-client-similar
...
client-go: factor the dynamic client similarly to others
Kubernetes-commit: bb2101bac12748aa77adfa15b07b5b8d8dcd0672
2022-10-10 19:53:31 +00:00
Kubernetes Publisher
b28f6c94f4
Merge pull request #112875 from pohly/update-yaml
...
dependencies: update to sigs.k8s.io/yaml v1.3.0
Kubernetes-commit: 93d1c43b491a39740297cf1e76782b99d8739865
2022-10-06 15:53:38 +00:00
Patrick Ohly
c9afc73c5f
dependencies: update to sigs.k8s.io/yaml v1.3.0
...
No particular benefit and no relevant changes, it's just to stay up-to-date and
to avoid having to pull that in when merging
https://github.com/kubernetes/kubernetes/pull/111023 which indirectly depends
on the newer release.
Kubernetes-commit: 9b93cc663a102b6e36f07eecc7b6e32225f39295
2022-10-05 11:14:23 +02:00
Nick Turner
5870c622c7
Remove log line from expiration cache
...
Kubernetes-commit: e7bfd5909f5540f884a8bb914a9230c9bf7c2803
2022-10-04 11:01:37 -07:00
Kubernetes Publisher
f24bd6967c
Merge pull request #112306 from tkashem/v1beta3
...
add v1beta3 for Priority And Fairness
Kubernetes-commit: 9720af2ba3f0d792c873bfa6e4d54e60736fb7a0
2022-10-03 19:47:29 +00:00
Cici Huang
3a430a4884
API - make update
...
API - Auto update
API - make update
API - make update
Kubernetes-commit: 19b2df871560816c3eb29fbb271953afab1e39c8
2022-10-03 17:17:45 +00:00
Abu Kashem
d4a3675975
apiserver: add generated files for borrowing in flowcontrol
...
Kubernetes-commit: a76223f8da90e984cb3a699fe908b0e7a35ad5f9
2022-10-03 13:17:24 -04:00
Kubernetes Publisher
ebc7cd4b2d
Merge pull request #112707 from enj/enj/i/https_links
...
Use https links for k8s KEPs, issues, PRs, etc
Kubernetes-commit: 3af1e5fdf6f3d3203283950c1c501739c21a53e2
2022-09-29 22:29:31 +00:00
Steve Kuznetsov
34e8a5d862
client-go: factor the dynamic client similarly to others
...
All other clients:
- expose a New() method that takes a rest.Interface
- expose their RESTClient()
- return pointers to the type, not instances of an interface that the
type implements
For code that is generic over all Kubernetes clients, and for general
developer experience, it's best to make sure that this client adheres to
these common practices.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com >
Kubernetes-commit: 74af6f1e7d9057bfcb64f4d875063c14041937e5
2022-09-28 08:57:22 -06:00
Peter Schuurman
eed251634d
Adding implementation of KEP-3335, StatefulSetSlice
...
Kubernetes-commit: 7b3d77a41af88083ba14ffe2cc8ad3a66010c43b
2022-09-26 18:34:03 -07:00
Kubernetes Publisher
2f43d370b3
Merge pull request #112705 from stevekuznetsov/skuznets/fix-comment
...
clients: clarify a misleading comment
Kubernetes-commit: bc6e801aa0e0cf17d22652ff881ebc3540b7af55
2022-09-26 16:34:18 +00:00
Kubernetes Publisher
369734286b
Merge pull request #112680 from enj/enj/i/tls_cache_key_comparable
...
transport/cache: statically assert that tlsCacheKey is comparable
Kubernetes-commit: a024252328430d90e807eabfcb86d84e6651b7db
2022-09-26 16:34:16 +00:00
Kubernetes Publisher
c81636cd44
Merge pull request #112665 from NoicFank/fix-typo
...
Fix typo error in shared_informer
Kubernetes-commit: 953ce2212bd00f4d212ec3b1c35b5aba01952cb1
2022-09-24 22:44:02 +00:00
Monis Khan
166580894e
Use https links for k8s KEPs, issues, PRs, etc
...
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: b738be9b46a899571303c8c887e32bf4d5b71a0a
2022-09-23 16:13:22 -04:00
Steve Kuznetsov
956c1ce5e8
clients: clarify a misleading comment
...
It's clear that client-sets contain many versions of one group, so this
comment just seems to be out-dated.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com >
Kubernetes-commit: 588f016c3bc04ea2da85d7077643677028a8cb1b
2022-09-23 12:25:52 -06:00
Kubernetes Publisher
be20b2bd91
Merge pull request #112673 from dims/update-to-latest-k8s.io/utils-sep-22
...
Update to latest k8s.io/utils to pick up changes
Kubernetes-commit: 722e02408ed1d0d1fc5b7304e2ad8c23125aa2b4
2022-09-22 18:51:49 +00:00
Monis Khan
cc2441c02c
transport/cache: statically assert that tlsCacheKey is comparable
...
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: a6d0f483002926f075009e69d533e244dec3cd2b
2022-09-22 13:14:38 -04:00
Davanum Srinivas
04dbcd88ed
Update to latest k8s.io/utils to pick up changes
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 4e7e7cdd3ce7cd0cec806298c2b7705ea240369c
2022-09-22 07:14:21 -04:00
Lurong
59765b8784
fix typo error
...
Kubernetes-commit: 0b2ad4cc42e727ec93011411033cac1abfb637ea
2022-09-22 14:42:41 +08:00
Abu Kashem
9b97b72528
rename assuredConcurrencyShares for flowcontrol v1beta3
...
Kubernetes-commit: 66fc0d703794f309c9715028d3b63f64c281a5fd
2022-09-21 15:40:33 -04:00
Kubernetes Publisher
2fd4aac190
Merge pull request #112613 from dims/update-github.com/go-openapi/jsonreference-to-drop-github.com/PuerkitoBio/purell
...
Update github.com/go-openapi/jsonreference to drop github.com/PuerkitoBio/purell
Kubernetes-commit: 299e65cdc5799b982b6af69858c14bfe41463540
2022-09-21 14:44:50 +00:00
Davanum Srinivas
47ad72abfd
update github.com/go-openapi/jsonreference to drop github.com/PuerkitoBio/purell
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 005a5ca08173b080193ecb01421e2513f32d045b
2022-09-20 20:49:55 -04:00
Kubernetes Publisher
f7c9c639d4
Merge pull request #112545 from dims/update-etcd-3.5.5-and-all-otel-related-to-latest
...
Update etcd 3.5.5 and all otel related libraries to newer versions
Kubernetes-commit: 6820a383be4a1bbb5cd526eb3aeb9e6ade351498
2022-09-20 02:44:03 +00:00
Kubernetes Publisher
b6e72dce28
Merge pull request #112226 from aojea/client_go_transport
...
client-go: test transport generation is goroutine safe
Kubernetes-commit: 5d45f766b5f1527cb54bbc9b625f90cc64b3b784
2022-09-19 18:47:00 +00:00
Kubernetes Publisher
acfaa39399
Merge pull request #112352 from pohly/e2e-ginkgo-progress
...
e2e: better ginkgo progress reports
Kubernetes-commit: 25b93a607a3edd28b0c720701ab7b6ebf1252148
2022-09-19 10:56:47 +00:00
Davanum Srinivas
6b5ecadcc5
updated etcd to v3.5.5 and newer otel libraries as well
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 5be80c05c423daf4bd2a4eb1cabf61fae9a03629
2022-09-17 14:04:16 -04:00
Kubernetes Publisher
037b5fd01d
Merge pull request #112514 from markmc/patch-1
...
client-go: remove reference to TPR in examples
Kubernetes-commit: 86c46a4bcc2b5be6371422fd3130feb98c6697ab
2022-09-16 22:23:41 +00:00
Mark McLoughlin
3f66212017
client-go: remove reference to TPR in examples
...
5 years after third party resources were removed, we're probably just confusing readers with this reference.
Kubernetes-commit: d21fc6e762276747e3306cfaf27b0ce1201071c2
2022-09-16 15:14:13 +01:00
Kubernetes Publisher
86ffa32437
Merge pull request #112475 from vatsalparekh/fix-TestRESTClientLimiter
...
Fix Infelicities in TestRESTClientLimiter
Kubernetes-commit: 8b7840e393d8107647b1818e0a623018786f006f
2022-09-16 14:41:04 +00:00
Kubernetes Publisher
ece64627e4
Merge pull request #112476 from enj/enj/i/list_pager_flake
...
Check for context cancellation on each buffered chunk
Kubernetes-commit: be506dc46e4ba13c701bd8f228a4d1d1581873be
2022-09-16 14:41:03 +00:00
Kubernetes Publisher
58155b7df0
Merge pull request #112450 from enj/enj/i/exec_tls_cache_holder_cleanup
...
client-go/transport: drop Dial and GetCert fields in favor of Holders
Kubernetes-commit: 6824cd3addbb214e88e00f451babb8a44eb738d1
2022-09-16 14:41:02 +00:00
Kubernetes Publisher
eecd3e52a3
Merge pull request #112091 from xyz-li/master
...
kubectl: fix memory leaks in port forwarding client
Kubernetes-commit: 7a68c8a21a29787adf9e959271b8f955a68d3d82
2022-09-15 14:36:40 +00:00
Monis Khan
67030989c0
Check for context cancellation on each buffered chunk
...
TestListPager_EachListItem flakes without this change.
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: 7458ed01d6aa150b8a6046e0dbeba88d5d5ff1bb
2022-09-15 10:33:33 -04:00
Vatsal Parekh
bf2b395a89
Fix Infelicities in TestRESTClientLimiter
...
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com >
Kubernetes-commit: c980cf489eeb39fd0fe0af7e80cfea2dbe2007db
2022-09-15 19:30:40 +05:30
Kubernetes Publisher
f6b8521807
Merge pull request #111333 from flant/selfsubjectattributesreviews
...
Add auth API to get self subject attributes
Kubernetes-commit: 4e8b11d4411cefbe1a32cf9e54810d9e0bd7378e
2022-09-14 22:43:31 +00:00
Patrick Ohly
ec6c80aa4d
e2e: bump ginkgo to v2.2.0
...
The new release adds support for intermediate progress reports.
Kubernetes-commit: 1e4edaf2fe0a7bedd7e54725b489f62c20c92954
2022-09-09 15:47:46 +02:00
Monis Khan
5dab9a0b84
client-go/transport: drop Dial and GetCert fields in favor of Holders
...
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: 3313a70d5bcc40a39f99f482c18effc9de6072ba
2022-09-09 08:06:01 -04:00
Abu Kashem
9bac803bd8
apiserver: generate for apf v1beta3
...
Kubernetes-commit: 6ac0e879790ddaf62942ea101d6edb24b0c57cbd
2022-09-08 10:53:38 -04:00
Antonio Ojea
1bd914a925
client-go: test transport generation is goroutine safe
...
Kubernetes-commit: fe41181c3d470207772d3ac9a91d4ef2c2a6720d
2022-09-04 12:36:01 +02:00
LiHui
cc3cc93e6a
kubectl: fix memory leaks in port forwarding client
...
Signed-off-by: LiHui <andrewli@kubesphere.io >
Kubernetes-commit: 1df24569a0bf62a528c49f73fdb236fd56eb05ee
2022-08-29 14:15:01 +08:00
arkbriar
5e0a53136c
Support cancelable SPDY executor stream
...
Mark remotecommand.Executor as deprecated and related modifications.
Handle crash when streamer.stream panics
Add a test to verify if stream is closed after connection being closed
Remove blank line and update waiting time to 1s to avoid test flakes in CI.
Refine the tests of StreamExecutor according to comments.
Remove the comment of context controlling the negotiation progress and misc.
Signed-off-by: arkbriar <arkbriar@gmail.com >
Kubernetes-commit: 42808c8343671e6783ba4c901dcd619bed648c3d
2022-08-24 10:21:35 +08:00
Andy Goldstein
37897aff8d
Reflector: support logging Unstructured type
...
Add an annotation that can be added to the exampleType passed to
NewReflector to indicate the expected type for the Reflector. This is
useful for types such as unstuctured.Unstructured, which, when used with
a dynamic informer, do not have their TypeMeta filled in.
Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com >
Kubernetes-commit: 474fc8c5234000bce666a6b02f7ffbb295ef135f
2022-08-17 15:49:26 -04:00
jlsong01
34679611a8
rewrite signature of function StartEventWatcher
...
Kubernetes-commit: c8291e393b32f8ce4e8fd1d4f18e848247be13f8
2022-07-29 23:43:05 +08:00
m.nabokikh
b2b55e607d
Add auth API to get self subject attributes
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
Kubernetes-commit: 00dfba473b08528f0a21f7bd3b921f5dd35b013a
2022-07-22 04:01:52 +04:00
Kubernetes Publisher
18c3338d48
Merge pull request #112200 from pohly/client-go-shared-informer-factory-shutdown
...
client-go: support waiting for SharedInformerFactory shutdown
Kubernetes-commit: 084a412e03816ef3ea57da928ae8fd332d17ab59
2022-09-13 18:36:50 +00:00
Kubernetes Publisher
9dae6917fb
Merge pull request #112309 from shyamjvs/disable-compression
...
Add a "DisableCompression" option to kubeconfig
Kubernetes-commit: ed520f3cac2243cd5f66967e2c590caf1e98b9e2
2022-09-12 18:36:27 +00:00
Kubernetes Publisher
ab826d2728
Merge pull request #112349 from pohly/klog-update
...
build: update to klog v2.80.1
Kubernetes-commit: b48b0eac6ad3556b343f54c26b49ed74cac276e3
2022-09-09 22:42:45 +00:00
Patrick Ohly
ab0bfda62e
build: update to klog v2.80.1
...
The fix for https://github.com/kubernetes/klog/issues/348 is required before
https://github.com/kubernetes/kubernetes/pull/111998 can be merged because the
way how a unit test in that PR uses klog triggers the data race.
Kubernetes-commit: 60d92dd96a4ba3873dd9e061c3e332c16c213e30
2022-09-09 13:11:55 +02:00
Kubernetes Publisher
f32861cf25
Merge pull request #112341 from enj/enj/i/second_time_is_the_charm
...
Remove in-tree credential plugins (again)
Kubernetes-commit: d569886a234cb65cb1ec777b7ab2e5b9a35d7145
2022-09-09 06:35:35 +00:00
Monis Khan
7d208ba573
Remove in-tree credential plugins (again)
...
This change reverts three commits:
1. Revert "Revert "Remove gcp and azure auth plugins""
This reverts commit 651b4f5b647a205d12fad4d0edc489d97109cccc.
2. Revert "update-gofmt"
This reverts commit 79c09f0b310b8b66f8f14ad254f268788c42e076.
3. Revert "Update removal warnings to 1.26"
This reverts commit 68758fc5c5099c83104a637e6d6ad3f4534f0d08.
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: 09cde58bbc13ff1229f61146221f56af4ff675dc
2022-09-08 19:11:03 -04:00
Kubernetes Publisher
e003fa92aa
Merge pull request #112017 from enj/enj/i/exec_tls_cache
...
exec auth: support TLS config caching
Kubernetes-commit: 082da2f04e413932615bcc32cba83959e7d043f7
2022-09-09 02:35:35 +00:00
Shyam Jeedigunta
49ac40b489
Autogen code
...
Kubernetes-commit: f9c46a0e3361e19de93c02562fedfff7de448dc2
2022-09-07 18:05:42 -07:00
Shyam Jeedigunta
b8a8d94944
Add DisableCompression option to KubeConfig
...
Kubernetes-commit: 641fd5b482c6117d459a22d99f76aae086c3524f
2022-09-07 18:04:17 -07:00
Kubernetes Publisher
2698e8276e
Merge pull request #111967 from alexzielenski/csa-to-ssa
...
[client-go] add function to upgrade managedfields CSA to SSA
Kubernetes-commit: 385cc255c77dd8c03bba6322946f7c97fdb33f53
2022-09-07 22:50:19 +00:00
Kubernetes Publisher
27c67e708a
Merge pull request #111122 from alexzielenski/informer
...
support removal of event handlers from SharedIndexInformers
Kubernetes-commit: 2969000db3fae354b7b27bc79712d244248e640e
2022-09-07 22:50:16 +00:00
Kubernetes Publisher
d28c73639f
Merge pull request #112022 from JackZxj/release-lock
...
update lock getter of leaderelection
Kubernetes-commit: 2b203348fbe7d05dec9e913e0fb50045a2474425
2022-09-07 18:39:46 +00:00
Alexander Zielenski
00d892f447
correct spacing
...
Kubernetes-commit: dbff8e117c8d4aeccac6ea211dfa334e30621727
2022-09-06 20:58:50 -07:00
Alexander Zielenski
2efbeaf56e
add boilerplate
...
Kubernetes-commit: 3528fd7e47f585c144b13c0c2b75bc4e432987c6
2022-09-06 19:51:47 -07:00
Alexander Zielenski
dac0826f18
remove inaccurate comment
...
Kubernetes-commit: 52fcd20b578b67234a9ac84b5abf1cd2b3d06ea4
2022-09-02 17:42:08 -07:00
Alexander Zielenski
7634f2e002
make upgrade modify input instead of deep copying
...
Kubernetes-commit: adcb5ec3d43908a916fd1ae75af121568f26b80d
2022-09-02 17:40:34 -07:00
Alexander Zielenski
9aa7c11460
remove fieldsv1 from upgrade body
...
Kubernetes-commit: 5c9534b9cfdcfa9625153051f0859e101abb97a9
2022-09-02 17:38:29 -07:00
Alex Zielenski
703d15eff6
Update staging/src/k8s.io/client-go/util/csaupgrade/upgrade.go
...
Co-authored-by: Antoine Pelisse <apelisse@gmail.com >
Kubernetes-commit: 5caffef694b50168f546d7758a26de832302b541
2022-09-02 17:34:07 -07:00
Kubernetes Publisher
b8b620636c
Merge pull request #112199 from pohly/klog-update
...
dependencies: update to klog v2.80.0
Kubernetes-commit: bacd6029b3bac1dbc468b0cc2bc5770bef671af2
2022-09-02 18:36:24 +00:00
Patrick Ohly
5a2c3e9222
dependencies: update to klog v2.80.0
...
Contains one bug fix in the code path for formatting of objects that support
LogMarshal.
Kubernetes-commit: 1bc3bde128463cdc6d55d5d222f489e8eda5eeb7
2022-09-02 08:05:47 +02:00
Patrick Ohly
ec4fedd955
client-go: support waiting for SharedInformerFactory shutdown
...
SharedInformerFactory starts goroutines in Start and those can be stopped by
closing the stop channel. However, there was no API that waits for the
goroutines.
This is a problem for unit testing. A test has to return while the informers
are still running, which may get flagged by tools like
https://github.com/uber-go/goleak or by klog/ktesting when those informers
lead to log output.
While at it, more documentation gets added to address
https://github.com/kubernetes/kubernetes/issues/65036 .
Kubernetes-commit: e89d1d47e8365cad31600b17dab662d3c8a359dd
2022-09-01 13:46:08 +02:00
Kubernetes Publisher
7ccf7b05af
Merge pull request #112134 from apelisse/client-go-valid-segment
...
Validate segments with client-go/dynamic
Kubernetes-commit: b274815e200528c77b66f352e223cdaa987505f5
2022-09-01 02:35:55 +00:00
Kubernetes Publisher
d83ec9e727
Merge pull request #112129 from pohly/e2e-ginkgo-report-after-each
...
e2e: suppress too verbose output
Kubernetes-commit: d0e413e86d150e0d4638ce306ca3fd437fe0b763
2022-08-31 18:36:12 +00:00
Antoine Pelisse
a4b84d86ec
Validate segments with client-go/dynamic
...
Kubernetes-commit: 7d64440dd1edf2acb8e71ecd6726904962c6bd02
2022-08-30 16:32:10 -07:00
Alexander Zielenski
675ca93180
refactor if statement
...
Kubernetes-commit: f7defeecce9c9e32d180deb2a2c67e063a10265f
2022-08-30 15:46:43 -07:00
Alexander Zielenski
a300ae0dfe
return when test is done
...
Kubernetes-commit: cc0b9ffbd5a4edfe7ce01293c2bf963d4335d8d6
2022-08-30 14:38:21 -07:00
Alexander Zielenski
cfaca90a30
address comments
...
Kubernetes-commit: e8d8eb4381f96ec4923a801116050ee998de4887
2022-08-30 13:21:29 -07:00
Patrick Ohly
cac10a8427
dependencies: update to ginkgo v2.1.6 and gomega v1.20.1
...
Ginkgo v2.1.6 adds ginkgo.SuppressProgressReporting which is needed
to suppress too verbose output each time the ReportAfterEach of the custom
progress reporter is invoked.
Kubernetes-commit: 311144fb3e61dabdbcd48d164dc80716b5ba5a73
2022-08-30 19:33:50 +02:00
Alexander Zielenski
93e5e0e8a0
hold listener lock while waiting for goroutines to finish
...
Kubernetes-commit: 7ce19b75a8dbca12837ed9f4c5c2828c38b82a03
2022-08-29 12:34:35 -07:00
Alexander Zielenski
e11a988e1c
simplify control flow
...
Kubernetes-commit: ee24648300f8575f503156f45b44034054c2e49d
2022-08-29 11:52:35 -07:00
jackzhang
d04c2ced1c
update lock getter of leaderelection
...
The lock acquired by tryAcquireOrRenew is released when the leader ends
leadership. However, due to the cancellation of the context, the lock may
be set as an empty lock, so the Update cannot be run normally, resulting
in a failure to release the lock.
Signed-off-by: jackzhang <x_jackzhang@qq.com >
Kubernetes-commit: 8690ff6264cceb38bd81dec99bb8affcc40286a9
2022-08-29 09:58:13 +08:00
Kubernetes Publisher
46d4284b93
Merge pull request #111241 from Abirdcfly/fixtestorsource
...
make TestListPager_EachListItem rework
Kubernetes-commit: ce2c5875d83487eae67896b2ec099bbb9e40395f
2022-08-26 22:35:39 +00:00
Kubernetes Publisher
bdae576b94
Merge pull request #112068 from aojea/aojea_client_go
...
add aojea as client-go reviewer
Kubernetes-commit: 213d811fcb23d918ade553cbb74b174946768045
2022-08-26 11:30:26 -07:00
Antonio Ojea
fd22687940
add aojea as client-go reviewer
...
Kubernetes-commit: 7ddb0ef4642d62ac8bc5a58cf0370b14b8d44f01
2022-08-26 17:01:56 +02:00
Kubernetes Publisher
35ead05f62
Merge pull request #112052 from tosi3k/bump-client-golang
...
Bump prometheus/client_golang to v1.13.0
Kubernetes-commit: 8ccd03226f81573b91550f21c6b8d63f65e7c2f1
2022-08-26 10:35:28 +00:00
Antoni Zawodny
5291ca2900
Bump prometheus/client_golang to v1.13.0
...
Kubernetes-commit: f78e7a2b19fe275b7cb43c01099366c52545e4d1
2022-08-26 05:40:17 +02:00
Kubernetes Publisher
e6538dd42b
Merge pull request #112024 from cndoit18/remove-redundant-judgment
...
style: remove redundant judgment
Kubernetes-commit: bc9f48b84187e6fd9ba5b828a449893d4569e4c6
2022-08-25 18:35:19 +00:00
Alexander Zielenski
089614c43e
remove last applied configuration information
...
Kubernetes-commit: a7fe0f0283765e4970211f7227602e2caa4b3a57
2022-08-24 12:31:57 -07:00
Alexander Zielenski
efe378914a
add more test cases
...
Kubernetes-commit: 42c960497a4737d8147d40d436a00be81ec4248d
2022-08-24 11:51:30 -07:00
Alexander Zielenski
46dc22f46a
clean up test
...
Kubernetes-commit: 8f6d7f1fa13db3d7a3354a13f014e1ce7acabda0
2022-08-24 10:24:05 -07:00
Alexander Zielenski
ced85a8521
update godoc
...
Kubernetes-commit: f94ef92f2ac44fb07bc8d75d5f250b757b343c11
2022-08-24 10:12:41 -07:00
Alexander Zielenski
049ba69f2f
expose FieldsToSet and SetToFields
...
Kubernetes-commit: a338fff435c35a4da2556a8f4c4ab059c98e909c
2022-08-24 10:03:16 -07:00
Monis Khan
6a008ec216
exec auth: support TLS config caching
...
This change updates the transport.Config .Dial and .TLS.GetCert fields
to use a struct wrapper. This indirection via a pointer allows the
functions to be compared and thus makes them valid to use as map keys.
This change is then leveraged by the existing global exec auth and TLS
config caches to return the same authenticator and TLS config even when
distinct but identical rest configs were used to create distinct
clientsets.
Signed-off-by: Monis Khan <mok@microsoft.com >
Kubernetes-commit: 831d95b6a021c2767effe85e461309cb6a0fdcec
2022-08-24 16:04:19 +00:00
Alexander Zielenski
aa892ab1ac
remove unused code
...
Kubernetes-commit: f495d7656ca79e2d5cae03b37977e75369352645
2022-08-23 16:17:27 -07:00
Alexander Zielenski
90ef078c30
dont expose internal methods in implementatoin
...
Kubernetes-commit: fe2b5d00f2c1f16636638acd10b8d640e6de22c9
2022-08-23 16:12:47 -07:00
Alexander Zielenski
ac7f6579ff
fix spelling
...
Kubernetes-commit: 7685b393c2ee8f8548d62f9dd8485df764a0c8c3
2022-08-22 17:34:02 -07:00
Alexander Zielenski
c364b639fb
add function to upgrade managedfields CSA to SSA
...
Kubernetes-commit: 27cd307e23df3a2d508d52ff10ac8f46bf3bcea3
2022-08-22 16:42:18 -07:00
Alexander Zielenski
0f4a6cf319
reset listenersStarted
...
for correctness. technically shouldnt be an issue since restarting a stopped processor is not supported
Kubernetes-commit: 3a81341cfa6f7e2ca1b9bfc195c567dcdfaa4dea
2022-08-08 14:19:37 -07:00
Alexander Zielenski
449817f7b5
add multithreaded test to shared informer
...
Kubernetes-commit: 8af0a31a15079725e5910d538a6ace03df2e382a
2022-08-08 13:39:18 -07:00
Alexander Zielenski
de0b7671e3
remove duplicate test
...
became a duplicate while refactoring original PR
Kubernetes-commit: df9a7afa63164035f1e94c3278d470b347b697b9
2022-08-08 11:46:05 -07:00
Alexander Zielenski
0565962dd0
address review comments
...
asd
Kubernetes-commit: 5f372e1867305679d8f9d8a013c5500763e5c875
2022-08-08 11:44:37 -07:00
cndoit18
bcd2e6c7da
style: remove redundant judgment
...
Signed-off-by: cndoit18 <cndoit18@outlook.com >
Kubernetes-commit: ec43037d0f57fdfc2fdc4960fdb8a7e31ac79fae
2022-07-29 18:25:05 +08:00
Kubernetes Publisher
d5e58631fd
Merge pull request #111752 from aanm/revert-final-url-template
...
Revert "client-go: remove no longer used finalURLTemplate"
Kubernetes-commit: dfd10d3133669d7c30b28edcf1024bafda1df766
2022-08-24 02:35:32 +00:00
Kubernetes Publisher
5feaced742
Merge pull request #67782 from dims/yank-in-tree-openstack-cloud-provider
...
Remove in-tree openstack cloud provider
Kubernetes-commit: 07bca2d7919c192435949c53f81acff58d6f39eb
2022-08-24 02:35:30 +00:00
Kubernetes Publisher
0fdc4f348a
Merge pull request #111684 from 0xff-dev/master1
...
use constant NamespaceDefault instead of variable namespace
Kubernetes-commit: e7297321321a7cde918734402a8a999990045179
2022-08-24 02:35:29 +00:00
Kubernetes Publisher
4faffa8644
Merge pull request #111564 from inosato/remove-ioutil-from-cli-client-go
...
Remove ioutil from client-go
Kubernetes-commit: eb713b11867557c0bf829fc5cf919791db2a022b
2022-08-24 02:35:26 +00:00
Kubernetes Publisher
2e404084ad
Merge pull request #111918 from liggitt/in-tree-auth
...
Restore in-tree credential plugins for 1.25
Kubernetes-commit: d581cc90adba6c84919738841fe3e07302d53e33
2022-08-18 22:38:37 +00:00
Jordan Liggitt
c2f61ae20a
Update removal warnings to 1.26
...
Kubernetes-commit: 68758fc5c5099c83104a637e6d6ad3f4534f0d08
2022-08-18 14:17:56 -04:00
Jordan Liggitt
54e42ab6f2
update-gofmt
...
Kubernetes-commit: 79c09f0b310b8b66f8f14ad254f268788c42e076
2022-08-18 14:17:31 -04:00
Jordan Liggitt
ef26118838
Revert "Remove gcp and azure auth plugins"
...
This reverts commit 916cf16cf14928702f3f90b655ddddab2c85fcec.
Kubernetes-commit: 651b4f5b647a205d12fad4d0edc489d97109cccc
2022-08-18 14:16:23 -04:00
André Martins
e9d4627252
client-go/rest: check if url is nil to prevent nil pointer dereference
...
Signed-off-by: André Martins <aanm90@gmail.com >
Kubernetes-commit: 94e7b2b8fdb4028b8b9d10ce57b9b33df146beb7
2022-08-09 14:19:01 +02:00
André Martins
c501ee0eba
Revert "client-go: remove no longer used finalURLTemplate"
...
The functionality provided by the finalURLTemplate is still used by
certain external projects to track the request latency for requests
performed to kube-apiserver.
Using a template of the URL, instead of the URL itself, prevents the
explosion of label cardinality in exposed metrics since it aggregates
the URLs in a way that common URLs requests are reported as being the
same.
This reverts commit bebf5a608f68523fc430a44f6db26b16022dc862.
Signed-off-by: André Martins <aanm90@gmail.com >
Kubernetes-commit: f8f190cdd2fa76296f8b1b019ac77128b5d40b79
2022-08-08 23:27:45 +02:00
Davanum Srinivas
98e81a7784
Remove references to openstack and cinder
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 9bbf01bae93600d3314bce0acbff1f3a0a42e74b
2022-08-08 16:01:59 -04:00
Kubernetes Publisher
a890e7bc14
Merge pull request #109090 from sarveshr7/multicidr-rangeallocator
...
Enhance NodeIPAM to support multiple ClusterCIDRs
Kubernetes-commit: 759785ea147bc13945d521eaba4a6592cbc0675f
2022-08-07 23:56:12 +00:00
Kubernetes Publisher
f10f16e029
Merge pull request #111113 from mimowo/retriable-pod-failures-job-controller
...
Support handling of pod failures with respect to the configured rules
Kubernetes-commit: eefcf6aa801c5db48b564d0464470d623b8bfb79
2022-08-05 00:25:03 +00:00
Kubernetes Publisher
3300752b61
Merge pull request #111696 from liggitt/go119mod
...
Update go.mod to go1.19
Kubernetes-commit: 897cdea783916023f269e32003a9a3cdb98e4b46
2022-08-04 20:16:34 +00:00
Kubernetes Publisher
ce9ac379ec
Merge pull request #108692 from jsafrane/selinux
...
Speed up SELinux volume relabeling using mounts MVP
Kubernetes-commit: b6d0f6ab613e4f3d3d1f4b6a48c24c561c65a4f1
2022-08-04 20:16:31 +00:00
Jordan Liggitt
4100519c43
Update go.mod to go1.19
...
Kubernetes-commit: 00db9f02293a6e0325330b575bffb9e466406dfe
2022-08-04 10:03:05 -04:00
Michal Wozniak
c439b2507d
Support handling of pod failures with respect to the specified rules
...
Kubernetes-commit: bf9ce70de34c93b545f95e1d81c122c81a8a0aa5
2022-08-04 08:21:32 +02:00
0xff-dev
c94a539bfb
use constant NamespaceDefault instead of variable namespace
...
Kubernetes-commit: 4bdca5689f65597f28a99f3610dd4e43fbc9cd7c
2022-08-04 14:18:47 +08:00
Sarvesh Rangnekar
76884cd2d8
Auto generate code for ClusterCIDR API
...
Kubernetes-commit: 299724d099f87d66b7a196d5acb545eb4dd78b9a
2022-08-02 02:09:07 +00:00
inosato
27de641f75
Remove ioutil from client-go
...
Signed-off-by: inosato <si17_21@yahoo.co.jp >
Kubernetes-commit: 88dfa51b6003c90e8f0a0508939a1d79950a40df
2022-07-30 20:54:41 +09:00
Abirdcfly
9b300defa3
make TestListPager_EachListItem rework
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com >
Kubernetes-commit: 5e84f6b6d7cd39b785eaca404c3f7e460f80f71b
2022-07-19 15:34:23 +08:00
Alexander Zielenski
5a25eb0de8
switch listeners to use a map, adapt tests
...
Kubernetes-commit: 063ef090e7fb5823ca18a10a83e8847eedac9599
2022-06-16 10:54:03 -07:00
Jan Safranek
a00e9abf6c
Regenerate files
...
Kubernetes-commit: f2fd9c1c16c7ba99856d96f69c3b9bde1b811367
2022-06-06 20:08:29 +02:00
Kubernetes Publisher
55b6f70f83
Merge pull request #111677 from dims/stop-panic-in-govet-levee
...
Stop panic in govet levee under golang 1.19
Kubernetes-commit: ef7fc1046059b7cbf93a7a7f5481ed200783ff21
2022-08-04 08:16:30 +00:00
Davanum Srinivas
606e4a8099
run lint-dependencies and follow directions
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 34742f2d2eebfc3ced8442f8579581705dcba38d
2022-08-03 21:56:02 -04:00
Davanum Srinivas
fe9020e749
Stop panic in govet-levee CI job
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 30e2fcd041cdf00d91fb7876f28165f532950213
2022-08-03 21:47:28 -04:00
Kubernetes Publisher
e803ec6bfc
Merge pull request #110495 from alexzielenski/atomic-objectreference
...
make ObjectReference field ownership granular
Kubernetes-commit: a0e702763e01d246ce13a5d7608407204094748a
2022-08-04 00:23:48 +00:00
Kubernetes Publisher
07171f82e7
Merge pull request #111090 from kinvolk/rata/userns-support-2022
...
Add support for user namespaces phase 1 (KEP 127)
Kubernetes-commit: 4b6134b6dc497f48916d4b1667d4c9a461aaa36a
2022-08-03 20:20:12 +00:00
Alexander Zielenski
b5feb253b6
mark persistentvolume's claimRef as granular
...
Kubernetes-commit: 84f795d04aa04b29f587d34a8852818ba5803e35
2022-08-03 09:48:30 -07:00
Alexander Zielenski
c5a511a525
update kube-openapi
...
Kubernetes-commit: 133c26553020409b26de0c1487c804250b528e71
2022-08-03 09:46:39 -07:00
Natasha Sarkar
bebf21907c
Update kubectl kustomize to kyaml/v0.13.9, cmd/config/v0.10.9, api/v0.12.1, kustomize/v4.5.7 ( #111606 )
...
Kubernetes-commit: 83c3c37a879c6d14cce2465161f88d3c6881de8b
2022-08-03 04:15:46 +00:00
Kubernetes Publisher
68639ba114
Merge pull request #111557 from alexzielenski/update-smd-422
...
update smd to 4.2.3
Kubernetes-commit: 22eab136f6c85f83e56ff71ec6346ffd7cc5e977
2022-08-02 20:16:39 +00:00
Kubernetes Publisher
b0d4101b8e
Merge pull request #111475 from alculquicondor/clear_pod_disruption
...
Add worker to clean up stale DisruptionTarget condition
Kubernetes-commit: bc4c4930ff18dce320bd33f645ff4f3accc72018
2022-08-02 20:16:37 +00:00
Alexander Zielenski
1631be4c27
update smd to 4.2.3
...
Kubernetes-commit: e77ed0bc2e3a807f4aca9360ec20933a03869716
2022-08-02 10:07:50 -07:00
Rodrigo Campos
912b04a8ad
Update autogenerated files
...
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com >
Kubernetes-commit: 8dc98c9b8ecded941b2664f64d24b3ee98c0f500
2022-07-27 12:54:15 +02:00
Aldo Culquicondor
3dfaef50d7
Add clock interface to disruption controller
...
To be able to write more precise unit tests in the future
Change-Id: I8f45947dfacca501acd856849bd978fad0f735cd
Kubernetes-commit: dad8454ebb87ba7af897537db6d34033127bbfef
2022-07-26 15:11:53 -04:00
Kubernetes Publisher
3e9c4b4f17
Merge pull request #111587 from ialidzhikov/k8s-utils@ee6ede2d64
...
Update `k8s.io/utils` to `ee6ede2d64ed`
Kubernetes-commit: 9af9947230633823ffa94e1fd11c58d7af986d8b
2022-08-01 04:15:43 +00:00
ialidzhikov
2037cc6a9a
Update k8s.io/utils to ee6ede2d64ed
...
Kubernetes-commit: 6aa5efb1bdc2d0dcccca67c6a9cc20820380a366
2022-07-31 16:33:14 +03:00
Kubernetes Publisher
07735eaa93
Merge pull request #111441 from denkensk/respect-topology
...
Respect PodTopologySpread after rolling upgrades
Kubernetes-commit: 3902a534197b3e4b7ca7a026f5027cfe0a3cc3aa
2022-07-30 12:15:36 +00:00
Alex Wang
2190b2f23b
code generated by script for MatchLabelKeys in TopologySpreadConstraint
...
Signed-off-by: Alex Wang <wangqingcan1990@gmail.com >
Kubernetes-commit: 86a2a85e7dd0a650020bf407a6eb85b956653539
2022-07-30 13:24:55 +08:00
Kubernetes Publisher
95367f2044
Merge pull request #110851 from negz/more-like-mac-slow-s
...
Use checksums instead of fsyncs to avoid slow discovery caching on MacOS
Kubernetes-commit: 8cecf183a659784b240d430e22b828b8e32c1c37
2022-07-30 04:15:31 +00:00
Kubernetes Publisher
ec0f33729d
Merge pull request #111387 from marseel/feature/retry_internal_errors
...
Add option to retry internal api error in reflector.
Kubernetes-commit: 79a62d62350fb600f97d1f6309c3274515b3587a
2022-07-28 16:16:03 +00:00
Kubernetes Publisher
c2d2c47718
Merge pull request #111228 from Abirdcfly/220716
...
clean unreachable code
Kubernetes-commit: 4e5711829c1c8bfadbb7632b28def5ba08325132
2022-07-27 20:05:57 +00:00
Kubernetes Publisher
fe12e65afd
Merge pull request #111442 from ialidzhikov/k8s-utils@56c0de1e6f
...
Update `k8s.io/utils` to `9bab9ef40391`
Kubernetes-commit: e092b6d27bff004171b71fffa45f111fdcd6e81b
2022-07-27 20:05:55 +00:00
Nic Cope
761f55c9e0
Use SHA256 sums to verify discovery cache integrity
...
This is a little more computationally expensive but reduces the
likelihood of a potentially malicious cache collision.
Signed-off-by: Nic Cope <nicc@rk0n.org >
Kubernetes-commit: c5957c284e1d23bdadc98fbbe2bb481fc1f345d4
2022-07-26 23:51:01 -07:00
ialidzhikov
7a55c3b96b
Update k8s.io/utils to 9bab9ef40391
...
Kubernetes-commit: 168fef6845f50f0460e7bdc0280da480cc92b787
2022-07-26 18:43:20 +03:00
Kubernetes Publisher
cc879cd5b6
Merge pull request #111254 from dims/update-to-golang-1.19-rc2
...
[golang] Update to 1.19rc2 (from 1.18.3)
Kubernetes-commit: 3ffdfbe286ebcea5d75617da6accaf67f815e0cf
2022-07-27 00:05:46 +00:00
Kubernetes Publisher
b5c7588f8a
Merge pull request #109141 from ulucinar/bump-discovery-burst
...
Bump default burst limit for discovery client to 300
Kubernetes-commit: 5ac563c507cd75c9382a2a23a3c8e3452138a021
2022-07-26 20:05:51 +00:00
Marcel Zięba
ff6bf679aa
Add option to retry internal api error in reflector.
...
Kubernetes-commit: 0b2b6489de8f75d5299f54180617601126bb8878
2022-07-25 08:02:54 +00:00
Kubernetes Publisher
b2097e607c
Merge pull request #110666 from ldsdsy/modify
...
Fix some syntax errors under the staging/src/k8s.io/client-go/rest/ folder
Kubernetes-commit: 6db9d882387eb2a0b5d78deffac88a121ceac9f3
2022-07-22 16:22:34 +00:00
Kubernetes Publisher
4db4856058
Merge pull request #111242 from wojtek-t/fix_leaking_goroutines_11
...
Fix leaking goroutines in multiple integration tests
Kubernetes-commit: 0cde1b744652306e921116883e2465a005b79811
2022-07-22 16:22:31 +00:00
Kubernetes Publisher
95a40e254c
Merge pull request #110178 from kevindelgado/validation-beta-1-25
...
Graduate server side validation to beta
Kubernetes-commit: eeb12bb3af3361c9ac652be071c3b9cf49aa5e58
2022-07-22 16:22:30 +00:00
Kubernetes Publisher
267b6570f5
Merge pull request #111235 from Abirdcfly/220719
...
fix a possible panic because of taking the address of nil
Kubernetes-commit: e234917e0a3e4bb384ef14c198742643a7e170fd
2022-07-22 16:22:27 +00:00
Kubernetes Publisher
0cfc9635b9
Merge pull request #110649 from harshanarayana/fix/GIT-110335-fix-fake-event-expansion
...
client-go: Modify FakeEvents to Work Event Sink started with `""` namespace
Kubernetes-commit: 0e7bb163e38cde20712ce29e918e10ec5c82f3eb
2022-07-22 16:22:26 +00:00
Davanum Srinivas
2a6c116e40
Generate and format files
...
- Run hack/update-codegen.sh
- Run hack/update-generated-device-plugin.sh
- Run hack/update-generated-protobuf.sh
- Run hack/update-generated-runtime.sh
- Run hack/update-generated-swagger-docs.sh
- Run hack/update-openapi-spec.sh
- Run hack/update-gofmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: a9593d634c6a053848413e600dadbf974627515f
2022-07-19 20:54:13 -04:00
Abirdcfly
ca60e0ea14
fix a possible panic because of taking the address of nil
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com >
Kubernetes-commit: c8c2819a4d7327f33a143f65c6af2bff5ef49735
2022-07-19 10:39:08 +08:00
Wojciech Tyczyński
9dde02d660
Clean shutdown of client integration tests
...
Kubernetes-commit: f673c262bdc2f3f0f060a2ed4349b723a088f36a
2022-07-18 21:13:33 +02:00
Abirdcfly
65b1e7d3c0
clean Unreachable code
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com >
Kubernetes-commit: f71718d6448418d0289b9649905a16bfb1962b68
2022-07-19 00:58:17 +08:00
Kubernetes Publisher
c6bd30b9ec
Merge pull request #111176 from p0lyn0mial/upstream-cacher-refactor-for-streaming
...
refactor the reflector to pave the way for streaming
Kubernetes-commit: d96891255f0a15c5c992ba38ab3cf782eda66fdf
2022-07-15 21:11:11 +00:00
Lukasz Szaszkiewicz
441e2c8c97
reflector: simplify reading the resourceVersion
...
Kubernetes-commit: 63b125d4061d267ad8998ea30e054bb1445b1a5a
2022-07-15 10:14:26 +02:00
Nic Cope
735524f850
Use sha256 to sanitize discovery HTTP cache keys
...
This helps avoid (potentially malicious) collisions when reading and
writing cache data.
Signed-off-by: Nic Cope <nicc@rk0n.org >
Kubernetes-commit: 288a17fd337c65cb5aea44e44ecb74e9cb8088f5
2022-07-14 14:11:33 -07:00
Alper Rifat Ulucinar
4aac6a7c9c
Bump discovery burst of default ConfigFlags to 300
...
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com >
Kubernetes-commit: 45f653e3db6a120d7cafaf2a9262fb3c8a2e22a2
2022-07-14 09:58:55 +03:00
Kevin Delgado
b4c3510afd
update kjson
...
Kubernetes-commit: c210483cf02768c3f2eaf42e13844c5d821831ba
2022-07-13 16:05:45 +00:00
Giuseppe Scrivano
828c3cb11b
pkg/apis, staging: add HostUsers to pod spec
...
It is used to request that a pod runs in a unique user namespace.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com >
Co-authored-by: Rodrigo Campos <rodrigoca@microsoft.com >
Kubernetes-commit: 9e9b23fd3ca6c0c58ee401b18a65422c0564bec0
2022-07-07 21:43:51 +02:00
Nic Cope
1ea239faa5
Use checksums instead of fsyncs to manage discovery cache corruption
...
Part of the API discovery cache uses an HTTP RoundTripper that
transparently caches responses to disk. The upstream implementation of
the disk cache is hard coded to call Sync() on every file it writes.
This has noticably poor performance on modern Macs, which ask their disk
controllers to flush all the way to persistant storage because Go uses
the `F_FULLFSYNC` fnctl. Apple recommends minimizing this behaviour in
order to avoid degrading performance and increasing disk wear.
The content of the discovery cache is not critical; it is indeed just a
cache and can be recreated by hitting the API servers' discovery
endpoints. This commit replaces upstream httpcache's diskcache
implementation with a similar implementation that can use CRC-32
checksums to detect corrupted cache entries at read-time. When such an
entry is detected (e.g. because it was only partially flushed to
permanent storage before the host lost power) the cache will report a
miss. This causes httpcache to fall back to its underlying HTTP
transport (i.e. the real API server) and re-cache the resulting value.
Apart from adding CRC-32 checksums and avoiding calling fsync this
implementation differs from upstream httpcache's diskcache package in
that it uses FNV-32a hashes rather than MD5 hashes of cache keys in
order to generate filenames.
Signed-off-by: Nic Cope <nicc@rk0n.org >
Kubernetes-commit: 7a2c6a432f9e8db8b84abe5607843429f8bff417
2022-06-28 19:15:49 -07:00
Nic Cope
76fccca0ea
Add a benchmark for the discovery cache RoundTripper
...
This benchmark is intended to demonstrate a performance improvement
gained by removing fsyncs. Refer to the below issue for more detail.
https://github.com/kubernetes/kubernetes/issues/110753
Signed-off-by: Nic Cope <nicc@rk0n.org >
Kubernetes-commit: eace46906512b99c23ad9635edc2ea055363a602
2022-06-28 19:40:58 -07:00
Lukasz Szaszkiewicz
04f67d5d4f
reflector: move LIST to its own method
...
Kubernetes-commit: 6fc09008def0b63fdd31bd26a14f7fcd3ed63c7e
2022-06-24 16:25:08 +02:00
Lukasz Szaszkiewicz
4e28921c86
reflector: refactor watchHandler
...
Kubernetes-commit: e9e26068b746315b616a26b91ff2613f98e934bc
2022-06-24 13:44:32 +02:00
Kubernetes Publisher
163ee0b6d7
Merge pull request #111080 from zhoumingcheng/master-v3
...
Correct wrong syntax
Kubernetes-commit: 3b4d2a9b315be29f600c4eae704d62107fd5ff98
2022-07-15 21:11:09 +00:00
Kubernetes Publisher
743e29dc1f
Merge pull request #111008 from cici37/bumpCEL
...
Bump cel-go to v0.12.3
Kubernetes-commit: 19a22f763770d1208dca2b8d50513ac805f7fe14
2022-07-14 13:11:01 +00:00
Kubernetes Publisher
79a582f2eb
Merge pull request #111097 from saltbo/fix-thethe-typo
...
fix: update the typo code comment
Kubernetes-commit: f3654386abbb838c42286250ef52a73c52ab1812
2022-07-14 01:23:24 +00:00
Kubernetes Publisher
eabd4289b0
Merge pull request #111002 from HecarimV/fix-220707
...
fix static-check for staging/src/k8s.io/client-go/
Kubernetes-commit: 09e8339ae4e575ec40e8ed0fc2829fcb678c0f19
2022-07-13 09:22:58 +00:00
saltbo
7c3fa18b11
fix: update the typo code comment
...
Kubernetes-commit: d2bab218ddef3fc3f444038420dd500c0e8bc068
2022-07-13 10:16:51 +08:00
Kubernetes Publisher
59fda2e669
Merge pull request #111087 from HecarimV/fix-22071205
...
Fix: import the same package multiple times
Kubernetes-commit: d46399f788fbb8de586cd71c19d1e49bfae8659f
2022-07-12 17:29:46 +00:00
HaoJie Liu
2f582c2a40
Fix:import the same package multiple times
...
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com >
Kubernetes-commit: 4f0a0ec81c649727cfc62cf8c0a2ad7eabf12516
2022-07-12 17:41:37 +08:00
zhoumingcheng
84e1219642
Correct some wrong syntax
...
Signed-off-by: zhoumingcheng <zhoumingcheng@beyondcent.com >
Kubernetes-commit: e590ab77dcb68486a154b755aae658509b9290ea
2022-07-12 10:46:56 +08:00
Kubernetes Publisher
3b969f9680
Merge pull request #111001 from pohly/klog-update
...
build: update to klog v2.70.1
Kubernetes-commit: 8e62fd24b073296c4cfd8f8d966d5922b6d9022c
2022-07-08 01:23:16 +00:00
Cici Huang
7f7dbbc80a
Bump cel-go to v0.12.0
...
Kubernetes-commit: 772a252b06da86955d30d7b935dc4dba84fdc328
2022-07-07 17:13:57 +00:00
HaoJie Liu
f295032991
fix static-check for staging/src/k8s.io/client-go/
...
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com >
Kubernetes-commit: 6022b69dfd1c6e9454d4aa79012803c749706f6d
2022-07-07 18:58:25 +08:00
Patrick Ohly
26b506437f
build: update to klog v2.70.1
...
This makes ktesting more resilient against logging from leaked goroutines,
which is a problem that came up in kubelet node shutdown
tests (https://github.com/kubernetes/kubernetes/issues/110854 ).
Kubernetes-commit: 3581e308835c69b11b2c9437db44073129e0e2bf
2022-07-07 12:54:08 +02:00
Kubernetes Publisher
506ef8944c
Merge pull request #110990 from thockin/svc-typenames-IPFamilyPolicyType
...
Rename IPFamilyPolicyType => IPFamilyPolicy
Kubernetes-commit: e8eb7a5e1906ec07f5e666a2d2f32f3a0e74dcec
2022-07-07 05:29:22 +00:00
ldsdsy
123d4e7e38
Fix a typo
...
Kubernetes-commit: bfe61fa574321474c4b278afb39af95464efad43
2022-06-20 21:52:50 +08:00
Harsha Narayana
e2ef40870b
GIT-110335: address namespace defaulting for events
...
Kubernetes-commit: 85e74aa3122114ac7e82c3044f387d03661063e4
2022-06-18 21:52:50 +05:30
Wojciech Tyczyński
b69a16cf38
Refactor store index into its structure
...
Kubernetes-commit: 7c94ce3076a96acab4c7e88489cd596f1aad40e0
2022-05-05 17:30:24 +02:00
Alper Rifat Ulucinar
ed7d154cc2
Bump default burst limit for discovery client to 300
...
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com >
Kubernetes-commit: 534427f5d3134189f49e6811a7642b86cf92c55a
2022-03-30 11:19:41 +03:00
astraw99
f549acf3ce
Fix duplicate code block of ListAll function
...
Kubernetes-commit: d8db1e9ba3c110012def6faa5579ad3abb71a6a6
2022-03-24 14:47:20 +08:00
Harsimran Singh Maan
fbd8e9aa52
fix failing test assertions
...
Kubernetes-commit: c8714ebd118760f8d68e9b536d0350129af12d9b
2022-02-22 16:05:40 -08:00
Harsimran Singh Maan
1f10368e31
Preserve metadata for fake dynamic client unstructured lists
...
Signed-off-by: Harsimran Singh Maan <maan.harry@gmail.com >
Kubernetes-commit: ac904454c24bebd9501ea4701d38f55f25ec9c33
2021-12-31 15:15:18 -08:00
Tim Hockin
61a7d9d6e1
Rename IPFamilyPolicyType => IPFamilyPolicy
...
Kubernetes-commit: 55232e2ef773423ed9b3321b38fc438f85cd690c
2021-11-09 23:09:35 -08:00
Kubernetes Publisher
a16e76eb69
Merge pull request #110831 from chendave/openapi
...
Bump `kube-openapi` to the latest
Kubernetes-commit: 8a7eda4f610f7003bf096d870531c7583751674e
2022-06-30 19:56:35 +00:00
Dave Chen
6a58c3a5c7
Bump kube-openapi to the latest
...
This will help us to get rid of `Ginkgo` v1 dep.
Signed-off-by: Dave Chen <dave.chen@arm.com >
Kubernetes-commit: 597071af17377f5ab4de03804b0d8b41f73fe7ce
2022-06-28 15:59:50 +08:00
Kubernetes Publisher
f5b6af4563
Merge pull request #110788 from 21kyu/change_reflect_ptr
...
Change reflect.Ptr to reflect.Pointer
Kubernetes-commit: 10810ab42bc8acde6732feae545aa34a09ecd299
2022-06-27 19:52:45 +00:00
21kyu
1b23c1577a
Change reflect.Ptr to reflect.Pointer
...
Kubernetes-commit: df168d5b5c2dab7414fc00ead1a51257ec326a98
2022-06-26 01:23:43 +09:00
Kubernetes Publisher
8dfe88aeff
Merge pull request #110724 from pohly/klog-update
...
build: update to klog v2.70.0
Kubernetes-commit: ddfbb5bdbef1febda92fdc4ee4666f5339d1f729
2022-06-23 03:53:28 +00:00
Kubernetes Publisher
899bcd7409
Merge pull request #110425 from LY-today/fake-evict-list-err
...
fix: list pod err after an pod evicted
Kubernetes-commit: 1d811065345bfe9f3be7f6757a9938c1760180c7
2022-06-22 23:52:40 +00:00
Kubernetes Publisher
0647d43372
Merge pull request #109632 from weilaaa/recorrect_byindex_input_param
...
correct input params of ByIndex
Kubernetes-commit: e2fe430da77da01aa5b4c9bd787d46062f1500a0
2022-06-22 19:53:10 +00:00
LY-today
9ac8bfecbb
fix: list pod err after an pod evicted
...
Signed-off-by: LY-today <724102053@qq.com >
Kubernetes-commit: f299494e7977a935511208eb91001508b4b629ce
2022-06-22 23:30:40 +08:00
Patrick Ohly
cb4a10df41
build: update to klog v2.70.0
...
The main practical advantage is that klog.Fatal no longer dumps the backtrace
of all goroutines.
Kubernetes-commit: f05e327ca611c23469ef41310d1d59b384cedc27
2022-06-22 16:29:51 +02:00
weilaaa
64585cf823
correct input params and add godoc
...
Kubernetes-commit: 9847b2eeb43e3fd13581dfdb4eeb288139ea7f3b
2022-06-22 11:26:07 +08:00
Kubernetes Publisher
acab036eff
Merge pull request #110436 from nicks/nicks/issue-1108
...
client-go: fix panic in ConfirmUsable validation
Kubernetes-commit: 349efaabf89cf894d3f7ef16f3936318ae96728e
2022-06-15 23:58:19 +00:00
Kubernetes Publisher
830d4c4624
Merge pull request #110378 from lucacome/bump-grpc
...
Bump grpc to v1.47.0
Kubernetes-commit: de5982637aebe17b0fa4a814ec1e6675c0132ddd
2022-06-14 19:52:33 +00:00
Luca Comellini
e0fa50410b
Bump grpc to v1.47.0
...
Signed-off-by: Luca Comellini <luca.com@gmail.com >
Kubernetes-commit: 51fafd7de3e0d71d98a1f9e10d3801f157472ae3
2022-06-13 22:08:47 -07:00
Kubernetes Publisher
2a9f955190
Merge pull request #110518 from dims/switch-to-released-version-of-v3.8.0-github.com/emicklei/go-restful/v3
...
Switch to released version of v3.8.0 - github.com/emicklei/go-restful/v3
Kubernetes-commit: 0fe0dbf3fb8cf501c24c87f4113a3819cb86a550
2022-06-13 19:52:10 +00:00
Kubernetes Publisher
d4fc9af2df
Merge pull request #110520 from dims/update-gopkg.in/yaml.v3-to-v3.0.1
...
Update gopkg.in/yaml.v3 to v3.0.1
Kubernetes-commit: 3375f5773b4371bc4975879521002b16ed8f0f56
2022-06-13 07:51:49 +00:00
Davanum Srinivas
08b4bbc4f6
Update gopkg.in/yaml.v3 to v3.0.1
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 68b414764bfa32c3232df7c7455b77e8e8c8ecd7
2022-06-11 20:39:40 -04:00
Davanum Srinivas
7e1edab3f7
Switch to released version of v3.8.0 - github.com/emicklei/go-restful/v3
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 6f2889718fb0bab46558fcd4a11b6858d5fc2149
2022-06-11 11:27:08 -04:00
Kubernetes Publisher
87a5b7b3b7
Merge pull request #110351 from dims/switch-to-v3-of-github.com/emicklei/go-restful
...
Switch to v3 of github.com/emicklei/go-restful by updating kube-openapi
Kubernetes-commit: 7e66aa3cfb6cdac3508c04017fa3b7cdcdf9238f
2022-06-10 23:51:49 +00:00
Nick Santos
5ce7078061
client-go: fix panic in ConfirmUsable validation
...
Fixes https://github.com/kubernetes/client-go/issues/1108
Kubernetes-commit: 7d2c6096c212d9c31e7cd0bccb6dc2dec9a4ef6a
2022-06-07 15:53:16 -04:00
Davanum Srinivas
cf0ba13096
Switch to v3 of github.com/emicklei/go-restful
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: ab690750df1d27409d31fd270d77b4390bac4431
2022-06-02 10:03:29 -04:00
Kubernetes Publisher
f88de91ae5
Merge pull request #96771 from soltysh/shortcut_expander
...
restmapper: re-try shortcut expander after not-found error
Kubernetes-commit: 7e3c98fd303359cb9f79dfc691da733a6ca2a6e3
2022-05-30 12:48:08 +00:00
Tim Hockin
3f162fe9e9
Copy LoadBalancerStatus from core to networking
...
This type should never have been shared between Service and Ingress.
The `ports` field is unfortunate, but it is needed to stay compatible.
Kubernetes-commit: 0153bfad16102e42d0b0dbb56742d0a6626e4180
2021-11-08 17:06:59 -08:00
Uwe Krueger
90c6a46b32
active remove/add tests for event handlers
...
Kubernetes-commit: e9cd17170b1646672796e713dee6c4fb0e6693bb
2021-10-06 12:40:46 +02:00
Uwe Krueger
de4dd3aaf3
tests for invalid registration removals
...
Kubernetes-commit: 152b6e11af4c8c50b768630bf7724e0bb3414e9c
2021-08-22 13:27:36 +02:00
Uwe Krueger
33eff64a05
apply desired changes for handler registration
...
Kubernetes-commit: 92f04baac98186673c684bba419087d6285807b1
2021-08-22 13:03:18 +02:00
Uwe Krueger
d73e40f207
rename handle to registration
...
Kubernetes-commit: 7054ac16d43a4a55d6e7b69943eb209f6495c4ce
2021-08-04 21:54:32 +02:00
Alexander Zielenski
b3a61c6731
remove informational informer methods again
...
Kubernetes-commit: f52f4a8e3045fd3eeba0315a347ed653012cd5c5
2022-06-16 00:09:20 -07:00
Alexander Zielenski
ecdc8bf729
support removal of event handlers from SharedIndexInformers
...
To be able to implement controllers that are dynamically deciding
on which resources to watch, it is required to get rid of
dedicated watches and event handlers again. This requires the
possibility to remove event handlers from SharedIndexInformers again.
Stopping an informer is not sufficient, because there might
be multiple controllers in a controller manager that independently
decide which resources to watch.
Unfortunately the ResourceEventHandler interface encourages to use
value objects for handlers (like the ResourceEventHandlerFuncs
struct, that uses value receivers to implement the interface).
Go does not support comparison of function pointers and therefore
the comparison of such structs is not possible, also. To be able
to remove all kinds of handlers and to solve the problem of
multi-registrations of handlers a registration handle is introduced.
It is returned when adding a handler and can later be used to remove
the registration again. This handle directly stores the created
listener to simplify the deletion.
Kubernetes-commit: 7436af3302088c979b431856c432b95dd230f847
2022-06-16 00:07:54 -07:00
Maciej Szulik
e2598a43a3
restmapper: re-try shortcut expander after not-found error
...
Kubernetes-commit: f7d1eb7726fa511b6439b7f8162138742ac639ab
2020-11-21 00:10:47 +01:00
Kubernetes Publisher
cf13620092
Merge pull request #84145 from bells17/fix-typo
...
Fix typo: type -> eventtype
Kubernetes-commit: f9f9e7177a328ae47bac6b823d57a99dfbfd310b
2022-05-26 12:48:14 +00:00
Kubernetes Publisher
33115b49ac
Merge pull request #110100 from tkashem/client-go-backoff-fix
...
client-go: fix backoff delay
Kubernetes-commit: 9997897f44976f8969fcc79678cddc291987fab4
2022-05-23 08:47:41 +00:00
Abu Kashem
71b8c174e4
client-go: fix backoff delay
...
Kubernetes-commit: 60e74a9ff73b206e5dd439b5df51ac9826635579
2022-05-17 17:19:26 -04:00
Kubernetes Publisher
0bc005e72f
Merge pull request #110076 from karlkfi/patch-1
...
fix: reflector to return wrapped list errors
Kubernetes-commit: f0c47dc91628978ff21d417630037e839102621e
2022-05-17 20:09:18 +00:00
Karl Isenberg
876406445a
fix: reflector to return wrapped list errors
...
This fix allows Reflector/Informer callers to detect API errors using the standard Go errors.As unwrapping methods used by the apimachinery helper methods. Combined with a custom WatchErrorHandler, this can be used to stop an informer that encounters specific errors, like resource not found or forbidden.
Kubernetes-commit: 9ace604b63045ebbb066cab5e8508b51d0900a05
2022-05-16 16:33:30 -07:00
Kubernetes Publisher
ef63e495ba
Merge pull request #110013 from enj/enj/i/remove_azure_gcp_auth_plugins
...
Remove gcp and azure auth plugins
Kubernetes-commit: 2d08104ee3beb5c13db088d40cc22ec053512cea
2022-05-12 23:35:52 +00:00
Monis Khan
1f7dc8805f
Remove gcp and azure auth plugins
...
Signed-off-by: Monis Khan <mok@vmware.com >
Kubernetes-commit: 916cf16cf14928702f3f90b655ddddab2c85fcec
2022-05-12 09:48:04 -04:00
Kubernetes Publisher
77f63643f9
Merge pull request #108080 from astoycos/issue-132
...
Fix Panic Condition
Kubernetes-commit: efb62b3538f34f304ea9c68966a053822bc23d1a
2022-05-11 12:58:10 +00:00
Kubernetes Publisher
b4b8e5e1e5
Merge pull request #108492 from kerthcet/feature/add-NodeInclustionPolicies
...
Add NodeInclusionPolicy to TopologySpreadConstraint in PodSpec
Kubernetes-commit: cc6619857027c634918a6d2cca9bab072c46f71f
2022-05-11 04:06:00 +00:00
kerthcet
5bb1a76702
feat: add NodeInclusionPolicy to TopologySpreadConstraint in PodSpec
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
Kubernetes-commit: 02f0a3ee91e43d39da80df926f552b8934a4646d
2022-05-10 12:54:49 +08:00
Kubernetes Publisher
24209264f7
Merge pull request #109891 from pohly/log-dependency-update
...
dependencies: logr and zapr v1.2.3
Kubernetes-commit: bf52c1fd46a6773b9d653ef97d94502c6e0564e5
2022-05-09 18:30:31 +00:00
Kubernetes Publisher
7c5b74295f
Merge pull request #109602 from lavalamp/remove-clustername
...
Finish clustername removal
Kubernetes-commit: 7af5a7bfc51d0455d8b2322ae9e72ed66fb1b8f9
2022-05-07 18:33:25 +00:00
Daniel Smith
5a9c3acf9d
generated files
...
Kubernetes-commit: 1dabd7be5c08d70dc1b54670de64cae2bf7c6a04
2022-04-21 18:39:21 +00:00
Kubernetes Publisher
c0ab12afa7
Merge pull request #109804 from cici37/celUpdate
...
Bump cel-go to v0.11.2
Kubernetes-commit: b7c4d243de12a30bba02e23777c8ff1627263f89
2022-05-05 10:33:16 +00:00
Kubernetes Publisher
bb66d8065b
Merge pull request #109607 from liggitt/drop-unused-third-party
...
Drop unused golang/template package and funcs
Kubernetes-commit: a685faa79822e365fd6a3efea955b82cb3b20599
2022-05-05 10:33:13 +00:00
Kubernetes Publisher
f4c553f30d
Merge pull request #109440 from liggitt/gomod-1.18
...
update go.mod files to go 1.18
Kubernetes-commit: cb7beb591216de93bef22525a6c5f0e435e21789
2022-05-05 02:33:08 +00:00
cici37
631da0c65f
Update go-control-plane, cncf/xds/go, cncf/udpa/go and remove unused versions
...
Kubernetes-commit: a3587c12da7f8c87e6676f472dba39f1acbae28f
2022-05-04 18:45:22 -07:00
cici37
28feddd66c
Update GRPC
...
Kubernetes-commit: 334d8fb7a2e85d58513c2d3fae113995c8165a4b
2022-05-04 18:41:20 -07:00
cici37
a8fbc496ab
Update genproto and antlr.
...
Kubernetes-commit: e8f6184d8682bd4510d4e18c7c04b5799367ac51
2022-05-04 18:37:30 -07:00
cici37
ac3e4baf0f
Bump cel-go to v0.11.2
...
Kubernetes-commit: a86dd2915771f280ff095409fc2ee917cee3c2e3
2022-05-04 18:32:06 -07:00
Jordan Liggitt
ccff9638f3
Regenerate vendor
...
Kubernetes-commit: 9e1064a26bfdc18b3272c3d9031d729793725392
2022-05-04 10:27:41 -04:00
Kubernetes Publisher
671a40c59f
Merge pull request #109520 from cncal/lcn_cleanup_duplicate_code_snippet
...
Remove the duplicate code snippet in client-go delaying_queue tests
Kubernetes-commit: 78dbcb4233799bf219d4983fc2b242dd7ae1be6d
2022-05-04 10:32:57 +00:00
Kubernetes Publisher
211d8a7adf
Merge pull request #109443 from kevindelgado/dynamic-apply
...
Add Apply and ApplyStatus methods to dynamic ResourceInterface
Kubernetes-commit: e8ef77514b5e2fe6a7c602f9663c2ef179387ea4
2022-05-04 10:32:55 +00:00
Kubernetes Publisher
2cf1a8ffd6
Merge pull request #105963 from zhucan/bugfix-95367
...
csi: add nodeExpandSecret support for CSI client & add unit test
Kubernetes-commit: 1aec0c81b1b283827480f9c40c5a7107b9986aa8
2022-05-04 02:33:08 +00:00
Jordan Liggitt
748150502e
Remove package variables
...
Kubernetes-commit: 87494389ac7987ed9586190dc9566669b33a9f7c
2022-04-21 21:24:49 -04:00
Jordan Liggitt
28c4a4d40f
Drop unused golang/template funcs
...
Kubernetes-commit: 7a261d9fa0edc0a8e615bd6bf81e8e3a5276f4fb
2022-04-21 21:21:16 -04:00
cncal
152e68ff13
Remove the duplicate code snippet in client-go delaying_queue tests
...
Kubernetes-commit: af438abbf332e26e2f3f729627bf9764c9b1feef
2022-04-17 15:55:33 +08:00
Kubernetes Publisher
28ccde769f
Merge pull request #109436 from JamesLaverack/revert-108290
...
Revert "Introduce APIs to support multiple ClusterCIDRs (#108290 )"
Kubernetes-commit: 4cdeab4696e86c9738d99e2650d2cdfdfb0f8d32
2022-04-13 16:44:20 +00:00
Kevin Delgado
4eab6be14c
Add Apply and ApplyStatus methods to dynamic ResourceInterface
...
Kubernetes-commit: 581ac7f4465ed97ddc5c62f04376ac427e121601
2022-04-12 20:24:15 +00:00
James Laverack
f9fdccdfc3
Revert "Introduce APIs to support multiple ClusterCIDRs ( #108290 )"
...
This reverts commit b9792a9daef4d978c5c30b6d10cbcdfa77a9b6ac.
Kubernetes-commit: 7d57d5c70d04f652b431d2b86b8af40e119cd66a
2022-04-12 16:00:35 +01:00
zhucan
1f8debfcd2
generated code and doc
...
Signed-off-by: zhucan <zhucan.k8s@gmail.com >
Kubernetes-commit: 1c1faf97ee8d3b147dbad067c5e65fab81cb92db
2022-04-02 00:17:25 +08:00
Patrick Ohly
c301d448ce
dependencies: logr and zapr v1.2.3
...
The updated zapr is more resilient against MarshalLog crashing. Not a known
problem in Kubernetes, though.
Kubernetes-commit: 3e6974e0ba67a8f598e7bc4ccedfdab928935551
2022-03-31 11:26:57 +02:00
Andrew Stoycos
f19a514ff5
Fix Panic Condition
...
Currenlty an event recorder can send an event to a
broadcaster that is already stopped, resulting
in a panic. This ensures the broadcaster holds
a lock while it is shutting down and then forces
any senders to drop queued events following
broadcaster shutdown.
It also updates the Action, ActionOrDrop, Watch,
and WatchWithPrefix functions to return an error
in the case where data is sent on the closed bradcaster
channel rather than panicing.
Lastly it updates unit tests to ensure the fix works correctly
fixes: https://github.com/kubernetes/kubernetes/issues/108518
Signed-off-by: Andrew Stoycos <astoycos@redhat.com >
Kubernetes-commit: 6aa779f4ed3d3acdad2f2bf17fb27e11e23aabe4
2022-02-11 14:50:19 -05:00
bells17
21f4308ca2
Fix typo: type -> eventtype
...
Kubernetes-commit: 53083ea6aa9817f130b15efaf8ccc2d0c59c4be3
2019-10-21 17:15:44 +09:00