Kubernetes Publisher
07d68c820b
Update dependencies to v0.30.5 tag
2024-09-12 03:55:40 +00:00
Kubernetes Publisher
8a9438e118
Merge pull request #126797 from BenTheElder/automated-cherry-pick-of-#126449-upstream-release-1.30
...
cherry pick of #126449 : kube-up.sh: bump coreDNS to 1.11.3
Kubernetes-commit: 772e3df468681f8327f00425829a60311d8b14e9
2024-08-26 07:39:09 +00:00
Benjamin Elder
cdafd6eb86
update coredns/corefile-migration to v1.0.24 to support coredns v1.11.3
...
Kubernetes-commit: 2414588ff4d236265c999452159c320797d65b97
2024-08-22 11:21:54 -07:00
Kubernetes Publisher
8981a9a956
Merge pull request #126666 from thockin/automated-cherry-pick-of-#126057-upstream-release-1.30
...
Automated cherry pick of #126057 : make PodIP.IP and HostIP.IP required.
Kubernetes-commit: ad8a5f5994c0949b5da4240006d938e533834987
2024-08-22 11:45:42 +00:00
Lan Liang
f2cf545be1
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: 3ba8e9e80ee3123d5936fdfb95095418008a8756
2024-05-16 08:36:27 +00:00
Kubernetes Publisher
274256ef2e
Merge pull request #126253 from seans3/automated-cherry-pick-of-#126231-origin-release-1.30
...
Automated cherry pick of #126231 : Falls back to SPDY for gorilla/websocket https proxy
Kubernetes-commit: 42adf451fb20cce68a3de9f170455ba57b409b62
2024-07-29 13:44:03 +00:00
Sean Sullivan
c594704d12
moving for easier cherry-pick
...
Kubernetes-commit: ae8e580d3a32385797934b4b4d9f190b43f73c40
2024-07-20 05:29:57 -07:00
Sean Sullivan
b6e8438bf5
Falls back to SPDY for gorilla/websocket https proxy error
...
Kubernetes-commit: 6450174ac9a07f15aecfa5f05d58755efc2192b7
2024-07-19 12:04:41 -07:00
Kubernetes Publisher
4e1652b143
Merge pull request #124694 from pmalek/backport-124553-to-release-1.30
...
[backport release-1.30]: fix(api): make LocalObjectReference.Name and HostAlias.IP required (#124553 )
Kubernetes-commit: 80932fe95b4f0781b8267f93ee258b707181f93d
2024-05-10 08:51:55 +00:00
Patryk Małek
2daa31e071
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: 37e7cbdd3a6e9dd1044408b157226c53c76fdf71
2024-05-04 00:21:14 +02:00
Kubernetes Publisher
2df4de16d4
Merge remote-tracking branch 'origin/master' into release-1.30
...
Kubernetes-commit: 255e7919bcb340043b0d235f883fe070017ce18f
2024-04-05 20:12:05 +00:00
Davanum Srinivas
ade2ae2228
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
Kubernetes Publisher
b4632b75ff
Merge pull request #123932 from pohly/dra-api-resource-model-rename
...
dra api: NodeResourceModel -> ResourceModel
Kubernetes-commit: d194e6d06c4f1004cebe00f2c539a564f77276ec
2024-03-27 16:27:28 +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
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
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
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
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
Kubernetes Publisher
af4295f501
Merge pull request #109114 from tkashem/client-go-retry-thread-safe
...
client-go: make retry in Request thread safe
Kubernetes-commit: 0424c7c74d926b4fe3193059e003e9056b429d28
2022-04-04 16:49:36 -07: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
Abu Kashem
d8531f5ff0
client-go: make retry in Request thread safe
...
Kubernetes-commit: 6618b8ef7c0b552839555d4578b64427d20524ef
2022-03-29 13:09:26 -04:00
Kubernetes Publisher
33011f1487
Merge pull request #109050 from MadhavJivrajani/client-go-retry
...
rest: Ensure response body is fully read and closed before retry
Kubernetes-commit: 97bf2986cdeae0e7da70659d70375e0770b14a5e
2022-04-04 21:13:37 +00:00
Kubernetes Publisher
8a672f0fd2
Merge pull request #109151 from Argh4k/r-101566
...
Revert "Field `status.hostIPs` added for Pod (#101566 )"
Kubernetes-commit: 691d4c3989f18e0be22c4499d22eff95d516d32b
2022-03-31 17:13:25 +00:00
Maciej Wyrzuc
f699049d30
Revert "Field status.hostIPs added for Pod ( #101566 )"
...
This reverts commit 61b3c028ba618a939559c39befb546ae5e5fd0b9.
Kubernetes-commit: 1108bed7631f545d43530aa697175d243b99610b
2022-03-30 12:50:48 +00:00
Sarvesh Rangnekar
092a109b2b
Introduce APIs to support multiple ClusterCIDRs ( #108290 )
...
* Introduce networking/v1alpha1 api, ClusterCIDRConfig type
Introduce networking/v1alpha1 api group.
Add `ClusterCIDRConfig` type to networking/v1alpha1 api group, this type
will enable the NodeIPAM controller to support multiple ClusterCIDRs.
* Change ClusterCIDRConfig.NodeSelector type in api
* Fix review comments for API
* Update ClusterCIDRConfig API Spec
Introduce PerNodeHostBits field, remove PerNodeMaskSize
Kubernetes-commit: b9792a9daef4d978c5c30b6d10cbcdfa77a9b6ac
2022-03-31 05:16:43 +00:00
Kubernetes Publisher
488e9bb051
Merge pull request #109137 from wojtek-t/fix_multiple_values_indexer
...
Fix issues in indexer caused by object changing the number of index values
Kubernetes-commit: 2e55595d3baeedcab09745355824f38a60cf6d08
2022-03-30 13:13:25 +00:00
Michael Bolot
e540ebe994
Addresses the issue which caused #109115
...
Kubernetes-commit: cbbb5f70a47644f9830073d9d0329bf247a328a1
2022-03-29 12:35:13 -05:00
Wojciech Tyczyński
1cab68940f
Add test for indexer with multiple values
...
Kubernetes-commit: 56159f258ca380600b0bc08b2e99cbc745db3560
2022-03-30 08:52:10 +02:00
Kubernetes Publisher
b1e85f6f00
Merge pull request #109031 from Jefftree/openapiv3beta
...
OpenAPI V3 Enable Beta
Kubernetes-commit: 904c30562a9a34d26ff3e76db29d00daea2e0f60
2022-03-30 05:13:30 +00:00
Abu Kashem
01ab7fb211
client-go: reset request body after response is read and closed
...
This commit refactors the retry logic to include resetting the
request body. The reset logic will be called iff it is not the
first attempt. This refactor is nescessary mainly because now
as per the retry logic, we always ensure that the request body
is reset *after* the response body is *fully* read and closed
in order to reuse the same TCP connection.
Previously, the reset of the request body and the call to read
and close the response body were not in the right order, which
leads to race conditions.
This commit also adds a test that verifies the order in which
the function calls are made to ensure that we seek only after
the response body is closed.
Co-authored-by: Madhav Jivrajani <madhav.jiv@gmail.com >
Kubernetes-commit: 68c8c458ee8f6629eef806c48c1a776dedad3ec4
2022-03-28 20:40:49 -04:00
Jefftree
4fdf361910
generated: Update kube-openapi and vendor
...
Kubernetes-commit: 550d6383b5219ac43b8c86cf57807c47b82919aa
2022-03-28 13:20:46 -07:00
Kubernetes Publisher
9cfda74c80
Merge pull request #108032 from deejross/kep3140-cronjob-timezone
...
KEP 3140: TimeZone support for CronJob
Kubernetes-commit: 0f2300575c805bb70ba181957684361bcd25f86a
2022-03-30 01:13:24 +00:00
Shiming Zhang
0c14d0c485
Field status.hostIPs added for Pod ( #101566 )
...
* Add FeatureGate PodHostIPs
* Add HostIPs field and update PodIPs field
* Types conversion
* Add dropDisabledStatusFields
* Add HostIPs for kubelet
* Add fuzzer for PodStatus
* Add status.hostIPs in ConvertDownwardAPIFieldLabel
* Add status.hostIPs in validEnvDownwardAPIFieldPathExpressions
* Downward API support for status.hostIPs
* Add DownwardAPI validation for status.hostIPs
* Add e2e to check that hostIPs works
* Add e2e to check that Downward API works
* Regenerate
Kubernetes-commit: 61b3c028ba618a939559c39befb546ae5e5fd0b9
2022-03-29 21:13:35 +00:00
Ricardo Katz
94a1081faf
Implementation on Network Policy Status ( #107963 )
...
* Implement status subresource in NetworkPolicy
* add NetworkPolicyStatus generated files
* Fix comments in netpol status review
Kubernetes-commit: 42a12010829962c6e87cee8e4bc217d39d7a8043
2022-03-29 09:13:14 +00:00
Kubernetes Publisher
11ca265357
Merge pull request #108992 from alexzielenski/cache-busting-client-go
...
client-go: OpenAPI v3 support
Kubernetes-commit: 656dc213ce43f1ecfa7f54eb1f01864468f8f0e2
2022-03-29 05:12:59 +00:00
Alexander Zielenski
fa08fc21f5
adjust comments
...
Kubernetes-commit: e9fc6c28a202ded0228e8505f5e14f5ec2049a3d
2022-03-28 18:40:34 -07:00
Kubernetes Publisher
92adc4de69
Merge pull request #82162 from krmayankk/maxun
...
API: maxUnavailable for StatefulSet
Kubernetes-commit: f85ff4b5743d501381c76b94a5bc6197b7766190
2022-03-29 01:13:02 +00:00
Ross Peoples
400b1becd3
make update after timeZone support for CronJob
...
Kubernetes-commit: d26e6cca7255c2c96ba28e8e5550bbc87a7577b9
2022-03-28 14:59:03 -05:00
Alexander Zielenski
27f72fc0bc
update vendor
...
client-go depends on more of kube-openapi v3 now
Kubernetes-commit: bb799d97066bbae4eaacd2ecc2a57f7fd42fa142
2022-03-28 10:07:56 -07:00
Alexander Zielenski
018cf8ace6
add fetching into discovery client for OpenAPI v3
...
reflect latest struct changes
use correct discovery openapi test data layout
make the OpenAPIv3 interface less blue
field grouping
add copyrights
implement cached discovery client
add cached discovery tests
address review feedback
Kubernetes-commit: 075866b3e3ea029c243d82d8d6eb99e96d9c49d3
2022-03-22 10:40:56 -07: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
Mayank Kumar
1a9591bb97
API: maxUnavailable for StatefulSet
...
Kubernetes-commit: 357203d992bb9b0cf9685f878d8635cf3277bef9
2019-08-30 00:05:18 -07:00
Kubernetes Publisher
402aa66c5c
Merge pull request #108996 from cici37/errUpdate
...
Bump kube-openapi and update err handling
Kubernetes-commit: 898443f40583cd0fd864e9b11c8156faf64b680a
2022-03-27 01:12:39 +00:00
cici37
ef44f112db
Bump kube-openapi
...
Kubernetes-commit: 383eb99bebdd5746732b7f6789907ea3598ee98e
2022-03-24 15:11:08 -07:00
Kubernetes Publisher
1933a66cdc
Merge pull request #108505 from rikatz/kubectl-debug-not-showing-response
...
Reintroduce response status and header on kubectl verbose debug
Kubernetes-commit: bb3800f0225dcc025b9bb01f8525f99e5c36d5ce
2022-03-26 21:12:52 +00:00
Kubernetes Publisher
e0aaa37e5a
Merge pull request #107180 from ardaguclu/remove-deprecated-serverresource
...
Remove deprecated discovery/ServerResources function
Kubernetes-commit: 0b79a791eda116199c40b13b21121274c56df374
2022-03-26 09:12:46 +00:00
Kubernetes Publisher
23ab4aec8e
Merge pull request #108698 from tkashem/last-error
...
client-go: wrap previous error to provide more context to caller
Kubernetes-commit: 5af9afe201000ecc30251c3d9683016353b12e82
2022-03-26 01:12:38 +00:00
Kubernetes Publisher
ed2838156a
Merge pull request #108531 from tallclair/redirects
...
Don't follow redirects with spdy
Kubernetes-commit: ea006f5246dded2db606dac7c642041cfbe1ccb1
2022-03-26 01:12:37 +00:00
Kubernetes Publisher
b307538aa1
Merge pull request #108159 from pohly/logcheck
...
logcheck update and golangci-lint integration
Kubernetes-commit: d60df5ba044fdb1cf20e4fc6d2ba45337d322052
2022-03-25 05:12:38 +00:00
Alex Zielenski
af0252eed9
Update kube-openapi ( #108895 )
...
* upgrade k8s.io/kube-openapi
* fix open-api v3 blank aggregator output
* use keys as API group
in ./hack/update-openapi-spec.sh
* fix import grouping
* update openapiv3 integration tests
Kubernetes-commit: 11b3a18cca745485e1033be8d62a1d0cde5a1d1d
2022-03-24 21:12:21 +00:00
Kubernetes Publisher
f4f092dbe0
Merge pull request #108981 from liggitt/skip-race
...
Temporarily disable TestCheckRetryClosesBody
Kubernetes-commit: 221b60fb82fc0a6de3034e342de99223a04585bb
2022-03-24 17:12:29 +00:00
Kubernetes Publisher
97bcbe7548
sync: initially remove files BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml */.gitattributes
2022-03-24 17:12:27 +00:00
Jordan Liggitt
83029168cc
Temporarily disable TestCheckRetryClosesBody
...
Kubernetes-commit: 9c13a27d182c36296b7f2e381970b82c69d5c405
2022-03-24 10:11:06 -04:00
Kubernetes Publisher
cf06297a89
Merge pull request #108725 from pohly/klog-flush-and-exit
...
klog v2.60.1
Kubernetes-commit: 56f45c5c811ba23934915b1a1330d87c58bddf07
2022-03-24 09:12:44 +00:00
Kubernetes Publisher
d82e1fd884
Merge pull request #108717 from lavalamp/remove-clustername
...
Remove ClusterName
Kubernetes-commit: bb67b5e9e830fba239c1e7957e5dcbefdce92a37
2022-03-24 09:12:41 +00:00
Kubernetes Publisher
c012194d06
Merge pull request #108342 from tkashem/rate-limit-error
...
client-go: chain the error returned by rate limiter
Kubernetes-commit: 7dde0b4bb56d04240f75eff01034a2c5a7abab77
2022-03-24 01:21:59 +00:00
Kubernetes Publisher
a1a133ba90
Merge pull request #108445 from pohly/storage-capacity-ga
...
storage capacity GA
Kubernetes-commit: 24a71990e02edbfd0a05f4abfdedcab991525874
2022-03-23 17:07:24 +00:00
Kubernetes Publisher
c55e66b5a8
Merge pull request #108680 from kidlj/fix_cache_index_comments
...
make comments of `(c *threadSafeMap) updateIndices` optimization code more accurate
Kubernetes-commit: 29528a266a42bb34768db6944367946df5b0dcf6
2022-03-22 05:07:43 +00:00
Kubernetes Publisher
dedf7ce61c
Merge pull request #108852 from mikedanese/auth-plugin-doc
...
add better link for gcp auth plugin doc
Kubernetes-commit: afb0136d6235201a89a426f071b8957a5a1b79ef
2022-03-21 14:20:44 -07:00
Mike Danese
f624f8e770
add better link for gcp auth plugin doc
...
Kubernetes-commit: 6a8579d1cd3ddeea6c012a4c0fdb7e32687a83f1
2022-03-21 09:48:27 -07:00
Kubernetes Publisher
3ac142e26b
Merge pull request #108616 from margocrawf/delete-execcredential-v1alpha1
...
Remove v1alpha1 of the execcredential
Kubernetes-commit: b9817c801bcbf9efbea8da1a5b68c83b3ee4ace6
2022-03-19 17:14:34 +00:00
Kubernetes Publisher
c47b802895
Merge pull request #108772 from aojea/user_agent
...
client-go: default user agent if empty
Kubernetes-commit: b0c435c8c48587edaeade94937525e03ccff9167
2022-03-19 17:14:33 +00:00
Margo Crawford
70889063d2
Generated code for deleting exec credential v1alpha1 api
...
Signed-off-by: Margo Crawford <margaretc@vmware.com >
Kubernetes-commit: 38cbe6d7fe0f2536883485a1c36f345a4eafcc79
2022-03-18 10:16:58 -07:00
Margo Crawford
28b9e26d5f
Remove v1alpha1 of the execcredential
...
Signed-off-by: Margo Crawford <margaretc@vmware.com >
Kubernetes-commit: 5b690b44d08807c6434a421b0041ef685482d337
2022-03-18 10:16:11 -07:00
Daniel Smith
a34beeba71
generated files
...
Kubernetes-commit: fad4ba2a34525c4831f89483e696509a88c45ce6
2022-03-17 18:27:49 +00:00
Daniel Smith
14e253c7f8
remove unneeded references
...
Kubernetes-commit: 2831f9a343ec405efce60d09da482a654971018e
2022-03-17 18:35:00 +00:00
Antonio Ojea
0f3c7919bf
client-go: update generated
...
Kubernetes-commit: 1d5ad2264cbebe2ce33e288451c2757fa16a1956
2022-03-17 16:03:10 +01:00
Antonio Ojea
7390aacfeb
default kubernetes agent for generated clients
...
Set default kubernetes agent if empty
Kubernetes-commit: c732bb8348b6ef4acc3ac7d006d56e6956141dd5
2022-03-17 13:19:43 +01:00
Kubernetes Publisher
6889a6b513
Merge pull request #108644 from Jefftree/googleapis-gnostic
...
googleapis/gnostic -> google/gnostic and update kube-openapi
Kubernetes-commit: b195a64d45e1880878a22d178055f1b4220dcb43
2022-03-17 02:24:26 +00:00
Patrick Ohly
2bba973d33
klog v2.60.1
...
The new release supports FlushAndExit and contextual logging.
Kubernetes-commit: 09aa1071cdde5ebc2c931c994fbb1e974c2a1515
2022-03-16 09:03:45 +01:00
Jefftree
186c332c7b
googleapis/gnostic -> google/gnostic
...
Kubernetes-commit: 8a1d5947ad34ba275192341baa4e5fef8e6c7f24
2022-03-15 20:36:21 -07:00
Abu Kashem
7c9347d386
client-go: wrap error from previous attempt to provide more context
...
Kubernetes-commit: 868b5a31d382b325f49e1b831e6b094282d50cc7
2022-03-14 18:57:56 -04:00
Kubernetes Publisher
ab732f5dd6
Merge pull request #107674 from sanposhiho/api-min-domains
...
Add MinDomains API to TopologySpreadConstraints field
Kubernetes-commit: 5b52c4d12772c65ff5896f9268b4a4ca58a66995
2022-03-14 18:12:18 +00:00
Jian Li
6b59aa0b4a
make comments of updateIndices optimization code more accurate
...
Kubernetes-commit: 0eae1f3addbd044793dac89f9e097e5f4c6fb2aa
2022-03-14 13:56:17 +08:00
Tim Allclair
8c38cf359a
Don't follow redirects with spdy
...
Kubernetes-commit: e1069c64956a43f628d8ae2fcd9107959747c1c6
2022-03-04 16:08:58 -08:00
Ricardo Katz
9c049623c2
Reintroduce response status and header on kubectl verbose debug
...
Kubernetes-commit: 04b240ac0d16f0d5c8cc0c06ebd8ff1433ca8469
2022-03-04 11:39:53 -03:00
Patrick Ohly
6ece0de2d5
storage capacity: generated files
...
Kubernetes-commit: b1aefb9b90094ec4625ef2eefab7185fe4db9368
2022-03-02 07:43:19 +01:00
Abu Kashem
147848c452
client-go: chain the error returned by rate limiter
...
Kubernetes-commit: 6acbe7e6452a44057768c61909da2d5b7c878159
2022-02-24 17:28:01 -05:00
sanposhiho
b32b6a7d22
Add MinDomains API to TopologySpreadConstraints field
...
Kubernetes-commit: 3b13e9445a3bf86c94781c898f224e6690399178
2022-02-23 21:11:59 +09:00
Kubernetes Publisher
2f52a105e6
Merge pull request #107410 from margocrawf/master
...
Ensure static certs in kubeconfig override exec plugin
Kubernetes-commit: 19935de5a9a4196f23f9a90cd9b7acb79091e3c2
2022-03-08 22:11:44 +00:00
Kubernetes Publisher
0a04e978b0
Merge pull request #108426 from deads2k/e2e-check
...
add resource enablement check for e2e tests of beta APIs
Kubernetes-commit: f93be6584ea57d1d01a0ca1d2c5e96782713d311
2022-03-07 22:11:59 +00:00
Kubernetes Publisher
eb103e0abf
Merge pull request #108347 from tkashem/refactor
...
client-go: refactor retry logic for backoff, rate limiter and metric to be reused by Watch, Stream, and Do
Kubernetes-commit: 52cd4d53ac8ac33cacd3d2c618cf22f1e3fd6a7e
2022-03-03 04:25:47 -08:00
David Eads
7d7fd497a0
add resource enablement check for e2e tests of beta APIs
...
Kubernetes-commit: 8ab8d05cc40c391f8ac650f50f23500666bfc943
2022-03-01 11:51:16 -05:00
Abu Kashem
34f3aff43e
client-go: refactor retry logic for backoff, rate limiter and metric
...
Kubernetes-commit: cecc563d3b9a9438cd3e6ae1576baa0a36f2d843
2022-02-17 16:57:45 -05:00
Kubernetes Publisher
8e46da3fd1
Merge pull request #108296 from aojea/client_go_size_metrics
...
client-go: add request and response size metrics
Kubernetes-commit: 5ee80dee042d9b83a20031469606af0d2fb8d815
2022-03-01 02:06:30 +00:00
Patrick Ohly
9175c47d17
enhance and fix log calls
...
Some of these changes are cosmetic (repeatedly calling klog.V instead of
reusing the result), others address real issues:
- Logging a message only above a certain verbosity threshold without
recording that verbosity level (if klog.V().Enabled() { klog.Info... }):
this matters when using a logging backend which records the verbosity
level.
- Passing a format string with parameters to a logging function that
doesn't do string formatting.
All of these locations where found by the enhanced logcheck tool from
https://github.com/kubernetes/klog/pull/297 .
In some cases it reports false positives, but those can be suppressed with
source code comments.
Kubernetes-commit: edffc700a43e610f641907290a5152ca593bad79
2022-02-16 12:17:47 +01:00
Arda Güçlü
7e062f8fa4
Remove deprecated discovery/ServerResources function
...
ServerResources function was deprecated and instead ServerGroupsAndResources
function is suggested.
This PR removes ServerResources function and move every place to use ServerGroupsAndResources.
Kubernetes-commit: ef39a8914291ba200bd5486c88a7575ffd4b7d1d
2021-12-22 11:14:09 +03:00
Antonio Ojea
e2c62ff0c0
client-go: add request and response size metrics
...
Get metrics for the request and response size, so we can correlate latency
and size on a request, otherwise we could get confused because we don't know if the
network is slow or just the request size huge.
Kubernetes-commit: 64d9d0585f6dbc9266f31b6d0f795d6c0421495e
2021-12-09 12:11:01 +01:00
Kubernetes Publisher
cc43a708a0
Merge pull request #108262 from tkashem/retry-unit-test
...
client-go: add unit test to verify order of calls with retry
Kubernetes-commit: 08d32851fec349175f1e7bb84e5690cad39ec5e1
2022-02-23 22:09:19 +00:00
Kubernetes Publisher
5463dac0a9
Merge pull request #106911 from aojea/client_go_metrics
...
Update client-go latency metrics bucket
Kubernetes-commit: 25ccc48c606f99d4d142093a84764fda9588ce1e
2022-02-23 22:09:18 +00:00
Abu Kashem
e4ecde2cf0
client-go: add unit test to verify order of calls
...
Kubernetes-commit: f6a66bbe051d2c7d537cf9033cc800babbb1a74b
2022-02-21 13:53:23 -05:00
Antonio Ojea
83bb1e3ff2
client-go: remove no longer used finalURLTemplate
...
The restclient metrics were updated to track only the host field of the
url, the finalURLTemplate is not longer needed, its only goal was to
replace name and namespace in the path to avoid cardinality.
Kubernetes-commit: bebf5a608f68523fc430a44f6db26b16022dc862
2022-02-17 16:51:55 +01:00
Kubernetes Publisher
41e0447e77
Merge pull request #107105 from justaugustus/go118
...
golang: Update to go1.18rc1
Kubernetes-commit: bda996e6a7cd115d76ebf1e0c127bee68e06269a
2022-02-21 18:05:47 +00:00
Stephen Augustus
dade88bed7
generated: Run hack/lint-dependencies.sh and hack/update-vendor.sh
...
Also runs:
hack/pin-dependency.sh golang.org/x/mod \
v0.6.0-dev.0.20220106191415-9b9b3d81d5e3
Signed-off-by: Stephen Augustus <foo@auggie.dev >
Kubernetes-commit: 4b1bd548bbe4d71609c65b050b69f63af1ca81d1
2021-12-18 15:55:39 -05:00
Stephen Augustus
50aa9bbadb
[go1.18] Bump golang.org/x/... dependencies
...
hack/pin-dependency.sh golang.org/x/crypto master
hack/pin-dependency.sh golang.org/x/net master
hack/pin-dependency.sh golang.org/x/oauth2 master
hack/pin-dependency.sh golang.org/x/sync master
hack/pin-dependency.sh golang.org/x/sys master
hack/pin-dependency.sh golang.org/x/term master
hack/pin-dependency.sh golang.org/x/time master
hack/pin-dependency.sh golang.org/x/tools master
Signed-off-by: Stephen Augustus <foo@auggie.dev >
Kubernetes-commit: e6e7a42480f235949a11e0f14a3b8a60ba43bcb0
2021-12-18 15:41:57 -05:00
Kubernetes Publisher
a7d2e01180
Merge pull request #107527 from wojtek-t/remove_selflink_ga
...
Graduate RemoveSelfLink to Stable
Kubernetes-commit: e42e2e877f01d28d886ebe5b855ff0f16ffca680
2022-02-15 06:05:21 +00:00
Wojciech Tyczyński
dd71ff2e39
Autogenerated
...
Kubernetes-commit: d63b79ec47171a1b83fea162e26f7ba521e3c20e
2022-01-19 17:55:39 +01:00
Kubernetes Publisher
b74c541cff
Merge pull request #108059 from RaghavRoy145/k8s-utils-update
...
Vendor in k8s.io/utils Changes
Kubernetes-commit: 8bae9bea45de30cc8eb3a3da604abd01376ffbd8
2022-02-11 18:05:21 +00:00
Raghav Roy
6f7b0ae69e
Updated k8s.io/utils dependency
...
Signed-off-by: Raghav Roy <raghavroy145@gmail.com >
Kubernetes-commit: e167d44a173991422b748afe1b9ed9a82bf6efa4
2022-02-11 13:03:54 +05:30
Kubernetes Publisher
6964e37acf
Merge pull request #107834 from SataQiu/fix-applyconfiguration
...
code-generator: fix the bug that ApplyConfiguration constructor missing WithKind/WithAPIVersion methods
Kubernetes-commit: 20a2a4c1af861be8581d63284a68d2dd9454b484
2022-02-08 21:56:16 +00:00
Kubernetes Publisher
4c892f8a5d
Merge pull request #107812 from diyi0926/add-field-path-back-to-event-logs
...
add fieldPath back to event logs
Kubernetes-commit: 834349ed1979073b4f6ed3e16393d31c19008701
2022-02-08 17:54:48 +00:00
Kubernetes Publisher
8f44946f6c
Merge pull request #107876 from jlsong01/fix-concurrent-scheme-usage
...
Fix concurrent usage issue of the same scheme
Kubernetes-commit: cf9b5ab95a21e5b32b6aff72492a18ede37b785b
2022-02-02 09:20:21 -08:00
jlsong01
470c93d04c
allocate a unique scheme for each test to fix concurrent usage issue
...
Kubernetes-commit: d66b3edd65efba0760eb0a5668aac733f294903b
2022-01-31 15:23:42 +08:00
Kubernetes Publisher
af150e1667
Merge pull request #107904 from sabbey37/update_azure_auth
...
Update azure auth plugin deprecation to warning
Kubernetes-commit: a4f559bfe10532bee534fefcaf4e6cc21c1e466c
2022-02-03 06:02:30 +00:00
sabbey37
f4bf7599b4
Update azure auth plugin deprecation to warning
...
Kubernetes-commit: c94b4bb2acd11bc0677eb867e6eff5b36bd205b4
2022-02-01 15:31:10 -05:00
SataQiu
1f90b31573
code-generator: fix the bug that ApplyConfiguration constructor missing WithKind/WithAPIVersion methods
...
Kubernetes-commit: ce50eed94122b780c8e438c3cb30a76fd2012464
2022-01-28 17:01:32 +08:00
Di Yi
5b56e4a504
resolve casing issue
...
Kubernetes-commit: 9996c154cba000346db940c90e234265d67dd8a9
2022-01-28 15:50:43 +08:00
Di Yi
93a63158d4
add fieldPath back to event logs
...
Kubernetes-commit: 94245af8f4a144e0aceb5a4be0d3ae4993e19be7
2022-01-27 14:28:26 +08:00
Kubernetes Publisher
7f04550960
Merge pull request #107507 from alexzielenski/client-preprocess-handler
...
Add configuration point to SharedInformer to transform objects before storing
Kubernetes-commit: f4046f9e6d0bb2fc4fa2d84af64cc9c6db44270a
2022-01-25 01:21:53 +00:00
Kubernetes Publisher
3255cdcd9c
Merge pull request #105632 from xens/fix/kubectl-socks5-proxy2
...
Add SOCKS5 proxy support for kubectl exec
Kubernetes-commit: d10161b45b751df45701e343599476e27d533d58
2022-01-22 01:21:55 +00:00
Alexander Zielenski
54928eef9f
modify SharedIndexInformer to use newInformer constructor which supports transformers
...
avoids code duplication, allows transformer to be used with SharedIndexInformer
Kubernetes-commit: 754bf3b3d02c66d1dd030460b03dddd3d6c7196d
2022-01-19 11:40:42 -08:00
Romain Aviolat
f157a09b37
feat: add missing SOCKS5 features
...
Goal of this commit is to add some missing features when the
Kubernetes API is accessed through a SOCKS5 proxy. That's for
example the case when port-forwarding is used (`kubectl port-forward`)
or when exec'ing inside a container (`kubectl exec`), with this
commit it'll now be possible to use both.
Signed-off-by: Romain Aviolat <romain.aviolat@kudelskisecurity.com >
Signed-off-by: Romain Jufer <romain.jufer@kudelskisecurity.com >
Kubernetes-commit: 0a98875e9572d998fbdf3bcdaef4961715b8bc06
2022-01-17 15:28:44 +01:00
Kubernetes Publisher
b70ee0aa9a
Merge pull request #105142 from pacoxu/cespare-2.1.2
...
upgrade github.com/cespare/xxhash/v2 to v2.1.2
Kubernetes-commit: 8d0d428ddd1cdc5f7ec9ead400921fb697aced95
2022-01-21 01:22:16 +00:00
Kubernetes Publisher
909a4591e8
Merge pull request #107559 from liggitt/invalid-selectors
...
Handle invalid selectors properly
Kubernetes-commit: 184daed0dbb6b9adac82b7b8b58f5cee0935d152
2022-01-20 01:21:48 +00:00
-e
ae5b2b8fbf
upgrade prometheus/client_golang to v1.12.0(common to v0.32.1)
...
Kubernetes-commit: 8a4e66049edd6ade4e9107b4ea092580b626545a
2022-01-19 22:30:33 +08:00
Ismayil Mirzali
664b1a6c8c
client-go: refactor: Fix styling issues ( #107248 )
...
* client-go: Remove unreachable return
Due to the way the switch statement is done,
the return at the end of the function will neverbe reached.
Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com >
* client-go: Refactor for clarity
Fixed one instance where the error message should be lowercase.
Made the fields in the struct literal more explicit
Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com >
Kubernetes-commit: 75c0987de3cb9a0380873745f68dea2f0835a7a2
2022-01-18 12:03:08 +02:00
Kubernetes Publisher
3618ec55f4
Merge pull request #107551 from wojtek-t/remove_unused_selflink_test_references
...
Remove unused selflink references in different testing-related files
Kubernetes-commit: a4931cc411002f2e992caadb8e128e807dc2d672
2022-01-15 01:21:43 +00:00
Kubernetes Publisher
092b54e6e5
Merge pull request #107565 from jiahuif-forks/deps/structured-merged-diff
...
upgrade sigs.k8s.io/structured-merge-diff/v4 to v4.2.1
Kubernetes-commit: cf18d80d035780739575b8cc889e8f26bf36779f
2022-01-14 21:25:08 +00:00
Jiahui Feng
61ce20e08d
generated: ./hack/update-vendor.sh
...
Kubernetes-commit: 31205dc7d9b271ede68ef90d09f416588ea3afdd
2022-01-14 10:31:44 -08:00
Jiahui Feng
3c9082ae5b
upgrade sigs.k8s.io/structured-merge-diff/v4 to v4.2.1
...
Kubernetes-commit: 821912a75198f0d516fc2744bed335afac8034e9
2022-01-14 10:30:23 -08:00
Jordan Liggitt
aab0bb899e
Handle invalid selectors properly
...
Kubernetes-commit: c0af728f43025bb47b209ebbb45604f9c0424354
2022-01-14 11:41:07 -05:00
Kubernetes Publisher
07be351f6b
Merge pull request #105387 from howardjohn/metadata-client/tracker
...
Make metadata fake client implement testing.FakeClient
Kubernetes-commit: 35c8975710e9cc50a0fc14383d1004dde86c854e
2022-01-14 05:25:34 +00:00
Kubernetes Publisher
23e2d9e87e
Merge pull request #107293 from dims/jan-1-owners-cleanup
...
Cleanup OWNERS files - Jan 2021 Week 1
Kubernetes-commit: 3bd422dc76559c1e03e8aea894c6143d32ebd644
2022-01-13 21:21:38 +00:00
Wojciech Tyczyński
a806c6e4fd
Remove selflink references in different testing-related files
...
Kubernetes-commit: 551790729f1d26d75c1d3fa1411e341eb367f9f3
2022-01-13 11:33:26 +01:00
Davanum Srinivas
3bf0eac274
OWNERS cleanup - Jan 2021 Week 1
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 9682b7248fb69733c2a0ee53618856e87b067f16
2022-01-03 10:59:47 -05:00
Kubernetes Publisher
b025abaeaa
Merge pull request #107420 from 21kyu/fix-typos
...
fix typos in comment
Kubernetes-commit: ba82add41a06d1fceeaf01fc71d3d5da910c41d9
2022-01-10 09:20:52 +00:00
wq
3480737c9e
fix typos in comment
...
Kubernetes-commit: 3e2932179084fa322ba1bc53997d44e1d383db00
2022-01-08 23:39:23 +09:00
Kubernetes Publisher
255c796513
Merge pull request #93709 from ash2k/ash2k/interruptible-sleep
...
Make RetryWatcher sleep interruptible
Kubernetes-commit: 04f2beea8abfb8ece2fb4fdd4e3ecc694caf2494
2022-01-05 17:20:55 +00:00
Kubernetes Publisher
6524542499
Merge pull request #106547 from astraw99/fix-log-typo
...
Fix log blank typo to avoid en/decode issues
Kubernetes-commit: 6d6ebfbe2473e405e6cf2607f38b1b72a38024cc
2022-01-05 09:20:46 +00:00
Kubernetes Publisher
8344b1c856
Merge pull request #107311 from fasaxc/fix-resource-ver-match
...
client-go: Clear the ResourceVersionMatch on paged list calls
Kubernetes-commit: b0f0aad2cedc1168bc44387e5a3d6d7745ae580b
2022-01-04 21:21:10 +00:00
Shaun Crampton
5754d8fddf
client-go: Clear the ResourceVersionMatch on paged list calls
...
API server rejects continuations with ResourceVersionMatch set.
Kubernetes-commit: 8ac5e9b065cd9aef1543080cce1cf99cc8bb4ce9
2022-01-04 16:05:32 +00:00
Kubernetes Publisher
782ff783b6
Merge pull request #107103 from pohly/log-klog-update
...
dependencies: update klog to v2.40.1
Kubernetes-commit: 38ec822b46853acfb3c3dc7e386a8d4636c67e03
2021-12-22 01:20:41 +00:00
Arda Güçlü
a6257fdee4
Enable setting proxyurl in kubeconfig via kubectl config ( #105566 )
...
* Enable setting proxyurl in kubeconfig via kubectl config
This PR enables setting `proxy-url` in kubeconfig via kubectl config.
* Add godoc for proxy-url unit tests
Kubernetes-commit: afdde383210294c3da573decc44b5ce55cffcb94
2021-12-20 21:21:02 +00:00
Patrick Ohly
416ac20107
dependencies: update klog to v2.40.1
...
The new release adds support for multi-line string output (required for
contextual logging) and Verbose.InfoSDepth (required to properly attach
verbosity to some log messages in helper code).
Kubernetes-commit: cb17b76d4d0a1c8021b427cd15b5d504bb468ee6
2021-12-17 14:23:59 +01:00
Kubernetes Publisher
d7ed9408c8
Merge pull request #106436 from dims/cleanup-owners-files-no-activity-in-a-year
...
Cleanup OWNERS files (No Activity in the last year)
Kubernetes-commit: 1426587e0874cbbddee4dc6a13bb5213b0a7609b
2021-12-15 21:27:35 +00:00
Kubernetes Publisher
6096096391
Merge pull request #106934 from spencer-p/spencer-master
...
Document when workqueue metrics are dropped
Kubernetes-commit: a88462e901710ab5df1fa6e99a046aa921dcdd55
2021-12-15 01:20:40 +00:00
Kubernetes Publisher
056a9de353
Merge pull request #106568 from liggitt/json-fieldpath
...
include field paths in unknown/duplicate errors
Kubernetes-commit: 66ca4b0a70a3d43c45603ba441b2a368dcb38722
2021-12-13 17:19:58 +00:00
Jordan Liggitt
df7985199b
bump sigs.k8s.io/json
...
Kubernetes-commit: 0c5ed62c792826a547dd5a55639de150080c355b
2021-12-13 09:38:11 -05:00
Davanum Srinivas
73f2731e23
Cleanup OWNERS files (No Activity in the last year)
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 497e9c1971c9e7d0193bc6d11503ec4ad527f1d5
2021-12-10 15:18:50 -05:00
Kubernetes Publisher
80a3c86bdd
Merge pull request #106949 from cpanato/update-golang-xnet
...
dependencies: Update golang.org/x/net to v0.0.0-20211209124913-491a49abca63
Kubernetes-commit: b0eb3e1ec2d4268604d9a2c3403f0580a3bda2ec
2021-12-10 17:24:25 +00:00
Kubernetes Publisher
6919fc571d
Merge pull request #106458 from dims/lint-yaml-in-owners-files
...
Lint/Beautify yaml in OWNERS files
Kubernetes-commit: 1d66302c42eb2ecf53b29cafb0c9f751bfbd1cd3
2021-12-10 17:24:22 +00:00
Carlos Panato
b63089930a
dependencies: Update golang.org/x/net to v0.0.0-20211209124913-491a49abca63
...
Signed-off-by: Carlos Panato <ctadeu@gmail.com >
Kubernetes-commit: 37dda91186924fc29acc16c1c0743ed747cf6d6c
2021-12-10 12:54:55 +01:00
Kubernetes Publisher
b945f6e77e
Merge pull request #106921 from dims/update-x/tools-to-v0.1.8
...
Update golang.org/x/tools to a specific tag (v0.1.8) and avoid SHA
Kubernetes-commit: cc6f12583f2b611e9469a6b2e0247f028aae246b
2021-12-10 09:31:31 +00:00
Davanum Srinivas
70f09c4943
Check in OWNERS modified by update-yamlfmt.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 9405e9b55ebcd461f161859a698b949ea3bde31d
2021-12-09 21:31:26 -05:00
Spencer Peterson
5a537879c2
Document when workqueue metrics are dropped
...
Two simple choices for workqueues do not document that they do not emit
metrics. Using their named variants fixes this, but was undocumented.
Change-Id: I100ad08a4859513987941ed35d12abb4cbb39873
Kubernetes-commit: f468bee672b0ccf9b97a85f17ec1f5645aced926
2021-12-09 16:59:54 -08:00
Kubernetes Publisher
096f1fdd87
Merge pull request #106852 from wojtek-t/remove_legacy_leader_election
...
Remove support for Endpoints and ConfigMaps lock from leader election
Kubernetes-commit: 12b4bef7bd7ccd6cecd01d3b0b5b8fd31dba9535
2021-12-09 21:10:38 +00:00
Davanum Srinivas
464c8e2c41
Update golang.org/x/tools to a specific tag and avoid SHA
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Kubernetes-commit: 627c50661e988ad8ac0708b1d94fdfc385e88449
2021-12-09 14:20:03 -05:00
Kubernetes Publisher
cbd965eeb4
Merge pull request #106850 from MadhavJivrajani/deprecate-clock-pkg
...
Deprecate types in k8s.io/apimachinery/util/clock
Kubernetes-commit: c16b2afc1d3c32462f068ea08cdc4791bd97b947
2021-12-09 17:09:23 +00:00
Madhav Jivrajani
110639035d
Bump k8s.io/utils
...
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com >
Kubernetes-commit: 4ca13e6f0ee3ee66d863203cb2d042842dc88cd7
2021-12-09 16:16:27 +05:30
Kubernetes Publisher
8bffd27f0a
Merge pull request #106473 from Dingshujie/fix_inotify_memory_leak
...
update k/utils to v0.0.0-20211116205334-6203023598ed to fix inotify memory leak
Kubernetes-commit: a8e06cf2bfd2ecdde0f2f49af4df29f70e07f20e
2021-12-09 05:10:34 +00:00
Kubernetes Publisher
c713f38723
Merge pull request #106153 from hyschumi/refactor_thread_safe_store
...
refactor: remove dup code
Kubernetes-commit: e9fc46750f6da84d9434a8066d7d2ba1531c5d67
2021-12-08 05:04:35 +00:00
Margo Crawford
2b59dabd4c
Check whether static cert is already configured in UpdateTransportConfig
...
- Also update test-cmd.sh to pass a signing ca to the kube controller
manager, so CSRs work properly in integration tests.
Signed-off-by: Margo Crawford <margaretc@vmware.com >
Kubernetes-commit: f015fd66ce95d02cd66efc263eb9e5441b42a17d
2021-12-07 15:58:46 -08:00
Wojciech Tyczyński
276ea3ed97
Remove support for Endpoints and ConfigMaps lock from leader election
...
Kubernetes-commit: 29d9683cd0fb3cc81810a8b39715e5eb4c68b00e
2021-12-07 16:38:32 +01:00
Kubernetes Publisher
d85d0d914a
Merge pull request #106774 from SergeyKanzhelev/grpcFieldRename
...
Grpc field rename
Kubernetes-commit: 0fe049cb93683e488b9829316ac889bc4c2e42fc
2021-12-03 09:07:26 +00:00
Sergey Kanzhelev
2f5ae78650
generated files for the grpc field rename
...
Kubernetes-commit: 4c9d77d724069ec56140b686d3e8e280f5ab0274
2021-12-01 18:25:37 +00:00
Kubernetes Publisher
91177d7e4d
Merge pull request #106716 from aojea/http1_flake_timeout
...
bump TestHTTP1DoNotReuseRequestAfterTimeout timeout
Kubernetes-commit: c1153d3353bd4f4b68d85245d53d2745586be474
2021-11-29 13:23:22 -08:00
Antonio Ojea
115ee0e475
bump TestHTTP1DoNotReuseRequestAfterTimeout timeout
...
the test TestHTTP1DoNotReuseRequestAfterTimeout has to wait for
request to time out to assert that subsequent requests does not
reuse the TCP connection.
It seems that current value of 100ms causes issues on some CI
environments and bumping the timeout seems to solve this flakiness,
We can bump the timeout value because is really low compared to real
scenarios and the bump still keeps it in the millisecond order.
Kubernetes-commit: 85797eba7075d83b116b5c91ff3b17c2d5118d01
2021-11-29 15:37:31 +01:00
Kubernetes Publisher
1218545a5b
Merge pull request #106660 from liggitt/smd-merge
...
Revert sigs.k8s.io/structured-merge-diff/v4 to v4.1.2
Kubernetes-commit: aff056d8a197f6a404ad5e02210ca662d16c3dbe
2021-12-03 09:07:23 +00:00
DingShujie
c8a8ad54a6
update k/utils to v0.0.0-20211116205334-6203023598ed
...
Kubernetes-commit: 25cf49770c8a91a837aa7e791eb2b177305d9610
2021-11-25 09:29:03 +08:00
Jordan Liggitt
38ad836227
Revert sigs.k8s.io/structured-merge-diff/v4 to v4.1.2
...
Kubernetes-commit: ed68909177eca588731bc153d2f69dd235e8fe10
2021-11-24 10:32:24 -05:00
Kubernetes Publisher
0e6a989bc4
Merge pull request #99728 from mattcary/control
...
StatefulSet PVC auto-delete implementation
Kubernetes-commit: b8af116327cd5d8e5411cbac04e7d4d11d22485d
2021-12-03 09:07:22 +00:00
astraw99
a8ff96d887
fix log typo
...
Kubernetes-commit: abce7ab534d0c667dd1438ff24bb3130d17d3f6e
2021-11-19 11:06:14 +08:00
hyschumi
547d6c809a
refactor: remove dup code
...
Signed-off-by: hyschumi<msliudongsheng@gmail.com >
Kubernetes-commit: da5d0a72d9d2a0948e21b746a8c6951dc40c0ce9
2021-11-04 21:11:53 +08:00
John Howard
f582d43dbd
Make metadata fake client implement testing.FakeClient
...
This mirrors most (maybe all?) other fake clients. Example of a real
world use case this would have been useful:
https://github.com/istio/istio/pull/35434
Kubernetes-commit: 86c9fef160b37ce834b680e49cf237917d2e5c6c
2021-09-30 16:32:23 -07:00
Mikhail Mazurskiy
7a08020ed2
Make sleep interruptible
...
Kubernetes-commit: b705a521d8814b38faabea218097cac65d6ab5c5
2021-08-21 12:20:30 +10:00