Commit Graph

5550 Commits

Author SHA1 Message Date
Kubernetes Publisher
2bdf2d3bf8 Merge pull request #140063 from pohly/fix-dra-resync-after-mutation-cache-ttl
DRA resourceslice controller: fix update after quick delete

Kubernetes-commit: 67b6825a74f1485bb5246d67f9bea10cb665a827
2026-07-11 02:08:46 +00:00
Kubernetes Publisher
9236c74747 Merge pull request #140385 from dims/update-cadvisor-v0.60.4
bump github.com/google/cadvisor/lib from v0.60.3 to v0.60.4

Kubernetes-commit: 0fe889a76062e58098cb7582ee7aa91cf2649812
2026-07-10 10:09:04 +00:00
Davanum Srinivas
b546984e5e bump github.com/google/cadvisor/lib from v0.60.3 to v0.60.4
The new cadvisor version requires newer golang.org/x modules. Module
version selection raised crypto, mod, net, sync, sys, term, text, and
tools. golang.org/x/net moves from a pseudo-version to the v0.57.0
release, which includes the http2 fixes the pseudo-version pointed at.

cadvisor/lib no longer depends on github.com/gogo/protobuf. This change
removes cadvisor/lib from the gogo/protobuf dependants list in
hack/unwanted-dependencies.json.

Kubernetes-commit: c2e122037dfaa8c5e4e7951c155df282236d30f4
2026-07-10 08:24:03 +05:30
Kubernetes Publisher
93099c5042 Merge pull request #140337 from liggitt/ttrpc
Bump github.com/containerd/ttrpc to v1.2.9

Kubernetes-commit: 880ed81cdf7d8cf490f4c72ce07b529d098a9263
2026-07-09 10:06:50 +00:00
Kubernetes Publisher
22afa080cc Merge pull request #139742 from krishhna24/imagepolicy-commentstart
imagepolicy: enable commentstart kube-api-linter rule

Kubernetes-commit: 28a13bcbd0c199dd1914140a688fa1c14696c75e
2026-07-08 22:08:07 +00:00
Jordan Liggitt
a98d51b97a Bump github.com/containerd/ttrpc to v1.2.9
Kubernetes-commit: 863777a6cf007b35dc16ad81b2e0475feed2fc77
2026-07-08 16:23:51 -04:00
Patrick Ohly
ead00aa2cf DRA ResourceClaim controller: updated mutation cache based on events
The controller would recover eventually because it double-checks when seeing
the pod status update, but when reacting to events it recovers faster.

Kubernetes-commit: 03c34ede467ea16580beee3937f9997070421529
2026-06-29 11:45:25 +02:00
Patrick Ohly
f199fa2ea1 DRA resourceslice controller: fix update + delete sequence
When updating a ResourceSlice, a more recent copy than in the underlying store
gets cached by the MutationCache. Then when that ResourceSlice gets deleted on
the apiserver and then the store, the MutationCache kept the stale copy and
returned it when the controller synced again, causing the controller to
erroneously not recreate the deleted ResourceSlice.

Depending on timing, this could have happened while updating the DRA driver:
- Driver restarts, updating the existing ResourceSlices.
- kubelet deletes the slices before realizing that the driver
  is running again.

The fix is to address a long-standing TODO in the MutationCache: it needs to
react to changes in the store. This allows it to drop cached objects sooner and
let's it remove cached objects that are known to be deleted. Users of a
MutationCache must inform the cache in their own informer event
handlers *before* triggering sync operations.

The integration test demonstrates the problem when run against master:

    core.go:560: I0629 09:43:22.656382] Deleting slice...
    resourceslicecontroller.go:610: I0629 09:43:22.659446] ResourceSlice delete slice="00000-ga-publishresourceslices-5s47j-slice"
    resourceslicecontroller.go:612: I0629 09:43:22.659496] Scheduled sync poolName="global" at="2026-06-29 09:43:25.659481942 +0200 CEST m=+5.886096424"
    resourceslicecontroller.go:755: I0629 09:43:24.639116] Matched existing slice by index poolName="global" slice="00000-ga-publishresourceslices-5s47j-slice" matchIndex=0
    resourceslicecontroller.go:788: I0629 09:43:24.639317] Completed comparison poolName="global" numObsolete=0 numMatchedSlices=1 numChangedMatchedSlices=0 numNewSlices=0
    resourceslicecontroller.go:804: I0629 09:43:24.639391] Kept generation because at most one update API call is necessary poolName="global" generation=1
    core.go:566: FATAL ERROR: I0629 09:43:30.661588]
        	Timed out after 8.002s.
        	Expected
        	    <resourceslice.Stats>: {NumCreates: 0, NumUpdates: 1, NumDeletes: 0}
        	to equal
        	    <resourceslice.Stats>: {NumCreates: 1, NumUpdates: 1, NumDeletes: 0}

The "matched existing slice" doesn't actually exist anymore, so the controller
does nothing and the test fails.

Kubernetes-commit: 495f81169d8b2fe9e6e5dafd6b31fca1ae0483fa
2026-06-29 08:55:40 +02:00
krishhna_dev
2c5639b754 imagepolicy: update generated files
Regenerated by hack/update-golangci-lint-config.sh and
hack/update-codegen.sh after the commentstart changes.

Kubernetes-commit: 0062a2bc681f62cca7dd206cd098f14e1d346ba0
2026-06-15 07:23:19 +00:00
Kubernetes Publisher
6317a9d7c7 Merge pull request #139988 from krishhna24/events-commentstart
events: enable commentstart kube-api-linter rule

Kubernetes-commit: 16e45f3b5e6a76a1ac741550e3a65980eea783c2
2026-07-08 18:07:51 +00:00
krishhna24
7627ac214b events: regenerate API docs for commentstart rule
Regenerated swagger docs, openapi spec, protobuf definitions, and apply
configurations to reflect the updated metadata field godoc.

Kubernetes-commit: fb3cf74c50ec5d117a7d17f1115c9413fd492c3d
2026-06-24 11:39:20 +00:00
Kubernetes Publisher
e41ce8170c Merge pull request #139948 from krishhna24/node-commentstart
node: enable commentstart kube-api-linter rule

Kubernetes-commit: 32120168ff8135d9ad1a50dfadefd0003dea5d04
2026-07-08 14:06:56 +00:00
krishhna_dev
db215702d8 node: regenerate generated files
Regenerated after the commentstart change: golangci config via
hack/update-golangci-lint-config.sh, API artifacts via
hack/update-codegen.sh, and the OpenAPI spec via
hack/update-openapi-spec.sh.

Kubernetes-commit: 1097026dbe89757d4063ffd0ec21c24ab662035a
2026-06-23 10:29:30 +00:00
Kubernetes Publisher
d0137c399e Merge pull request #139822 from krishhna24/policy-commentstart
policy: enable commentstart kube-api-linter rule

Kubernetes-commit: 186aaf5b43784c39791eda3497f9092af12e5e87
2026-07-08 14:06:52 +00:00
krishhna_dev
a70cef2393 policy: update generated files
Regenerated protobuf, OpenAPI (v2 swagger + v3), swagger docs, client-go
applyconfigurations, and the golangci-lint config after enabling the
commentstart rule for the policy API group.

Kubernetes-commit: bf648a7afbb5a7efc72cc6fe907607665845370a
2026-06-17 12:45:06 +00:00
Kubernetes Publisher
d88c848254 Merge pull request #140034 from krishhna24/rbac-commentstart
rbac: enable commentstart kube-api-linter rule

Kubernetes-commit: 1ef08364a754caec0b6706ff61e08cfb39fd53e6
2026-07-08 10:06:24 +00:00
Kubernetes Publisher
819ef2ecfd Merge pull request #138560 from michaelasp/svmGA
Promote SVM to GA

Kubernetes-commit: 6e8a59751db53d71701c6610ebe98043fed4ced7
2026-07-08 02:06:27 +00:00
Kubernetes Publisher
fd85b06595 Merge pull request #140294 from jpbetz/revert-smd-306
Bump SMD to v6.4.2 to revert #306 to fix regression in SSA for nullable container types

Kubernetes-commit: 63373922a5b5ade70edbf12bee45b2b00d93230a
2026-07-08 02:06:24 +00:00
Joe Betz
72321564f8 Bump sigs.k8s.io/structured-merge-diff/v6 to v6.4.2
Kubernetes-commit: 51033909f53c62483cff47a1a4e73b7f50fd9af1
2026-07-07 18:41:07 -04:00
Kubernetes Publisher
2ba9460ce4 Merge pull request #139242 from liyuerich/commentstartcoordination
enable commentstart check on coordination API group

Kubernetes-commit: 126bbe7c9b36e6db9287a2e1bd1fbc79d6b27007
2026-07-07 22:06:31 +00:00
Kubernetes Publisher
c0f38c0636 Merge pull request #138676 from pohly/dra-device-taints-1.37
DRA: Device Taints and Tolerations GA graduation

Kubernetes-commit: 431b4ebbb4c0450ce2242b4a8995341ebdbe13b5
2026-07-07 02:05:43 +00:00
krishhna24
0a04a027d8 rbac: regenerate API docs for commentstart rule
Regenerate the protobuf definitions, swagger docs, apply
configurations, and OpenAPI specs to reflect the updated field godoc
for the rbac API group.

Part of #134671.

Kubernetes-commit: 9e1597ac5b77a3cb4c1fe2b58b0b1e3df0421d37
2026-06-26 03:12:35 +00:00
liyuerich
9b7b30fa39 enable commentstart check on coordination API group
Signed-off-by: liyuerich <yue.li@daocloud.io>

Kubernetes-commit: b93c4b1af246fed0270a1819dbc6e909a3b31d1c
2026-05-22 13:43:16 +08:00
Patrick Ohly
d707735b4a DRA: add DeviceTaintRule to v1 API (generated files)
Kubernetes-commit: be5d632997f65af5c9f426a84d97779a74a4afe5
2026-04-29 11:59:19 +02:00
Kubernetes Publisher
f16383b964 Merge pull request #138351 from pohly/apidiff-changelog
optional tracking and documentation of breaking Go API changes in client-go

Kubernetes-commit: b82bfba4efce18d0d5b6a345995f12aa4ff6edea
2026-07-02 21:06:37 +00:00
kubernetes-prow[bot]
2e09c9b378 Merge pull request #1428 from pohly/changelog-removal
remove obsolete CHANGELOG.md
2026-07-02 18:30:18 +00:00
Patrick Ohly
1ec3d2a2a2 remove obsolete CHANGELOG.md
The CHANGELOG.md in the kubernetes/client-go repo hasn't been updated for seven
years. In the future, a CHANGELOG.md for client-go is meant to be maintained
together with the commits in k/k which change
client-go (https://github.com/kubernetes/kubernetes/pull/138351).
2026-07-02 20:07:09 +02:00
Kubernetes Publisher
1478a6809c Merge pull request #140080 from dom4ha/api-workload-ref
rename PodGroupTemplateRef to WorkloadRef

Kubernetes-commit: bbdae911b89953eb7a229c1b70c660a525a502b2
2026-07-01 17:02:51 +00:00
Kubernetes Publisher
b6f904a863 Merge pull request #140033 from adityajoshi12/master
fix: correct description for ClusterTrustBundle

Kubernetes-commit: 8c30efab69d71f500814d93bdaf9e846542e4f7d
2026-07-01 17:02:47 +00:00
Kubernetes Publisher
0f26f3dd91 Merge pull request #139974 from jpbetz/conversion-gen-struct-cast
Use unsafe pointer casts for memory-identical struct conversions in conversion-gen

Kubernetes-commit: dde51bfc48b109a0f311055843d4d81a1966e9da
2026-07-01 17:02:42 +00:00
dom4ha
5417c42c24 api: regenerate files for WorkloadRef changes
Kubernetes-commit: af1d59c80452abc5bea33e05f460842cd39d5eee
2026-07-01 13:16:05 +00:00
Aditya Joshi
2c1faec5cb fix: correct description for ClusterTrustBundle
Signed-off-by: Aditya Joshi <adityaprakashjoshi1@gmail.com>

Kubernetes-commit: d78ae8c15c2ae22f1074bb565b61febc0b96af56
2026-06-26 09:18:06 +05:30
Joe Betz
d440b2867f generate
Kubernetes-commit: e89ecc6af06f3b7e86ab388e14685e7691c8fbd2
2026-06-23 22:43:40 -04:00
Kubernetes Publisher
36c7439017 Merge pull request #139240 from ania-borowiec/preemption_policy
KEP-5710: Add PreemptionPolicy field to PodGroup [WAS]

Kubernetes-commit: 78dfb4d656035fc22597e4eb1e374a07be2b58c7
2026-07-01 09:11:41 +00:00
Kubernetes Publisher
6059079a91 Merge pull request #129109 from pohly/log-client-go-restmapper-discovery
restmapper + discovery: add context-aware APIs

Kubernetes-commit: b308e6c5067486765de78de1dc809fb30b0b68c3
2026-07-01 09:11:36 +00:00
Ania Borowiec
b557eb197f Add PreemptionPolicy field to PodGroup
Kubernetes-commit: d2842d8f03bf0c1568efdf19aeee1c505954d42b
2026-06-30 11:10:59 +00:00
Brian Pursley
48ec1022ee Migrate: use source file permission when writing destination file (#138142)
* Migrate: use source file permission when writing destination file

* Mask migrated config file with 0666 to ensure the created file is never executable.

Kubernetes-commit: d7091ac255734d59a494ed8c93209a467156f238
2026-06-29 12:05:05 +00:00
Kubernetes Publisher
ab0d3bd81d Merge pull request #140021 from dims/conntrack-cpuset
kube-proxy: detect host CPU count via cpuset.NumCPU instead of cadvisor

Kubernetes-commit: 04d5d2647dc7fd1e8f0cd6a61244d18642af9522
2026-06-26 17:37:53 +00:00
Kubernetes Publisher
17fd58d111 Merge pull request #139956 from jsafrane/selinuxmount-ga
Graduate SELinuxMount to GA

Kubernetes-commit: d23b43180872faf7ceefd0e57effe44ce90f058b
2026-06-25 21:07:14 +00:00
Davanum Srinivas
5dcb5a1682 kube-proxy: detect host CPU count via cpuset.NumCPU instead of cadvisor
detectNumCPU sized nf_conntrack_max using github.com/google/cadvisor/lib
machine topology. nf_conntrack_max is host-wide, so it must be sized from the
node's CPU count, not runtime.NumCPU(): the latter honors the process cpuset
and undercounts when kube-proxy runs under a static CPU policy, which is the
behavior cadvisor worked around (kubernetes/kubernetes#99225).

Use cpuset.NumCPU() from k8s.io/utils, which reads the node's online CPU count
from /sys/devices/system/cpu/online, with a runtime.NumCPU() fallback. This
drops the cadvisor dependency from pkg/proxy/conntrack and bumps k8s.io/utils
to pick up cpuset.NumCPU.

Kubernetes-commit: 92ce184653f03c312915993d7fde93d8e65602c1
2026-06-25 14:04:01 -04:00
Kubernetes Publisher
c6c26a06ef Merge pull request #138914 from richabanker/metrics-constructor-pattern
Defer client-go metrics registration to runtime entry point via constructors

Kubernetes-commit: 402799de26580c612ea46951a74c72e9f0e1b310
2026-06-25 05:06:19 +00:00
Jan Safranek
fa1fbb56d8 Graduate SELinuxMount to GA
Kubernetes-commit: 8ad339756cdb0a130ff9b60427785d6b09906ccd
2026-06-23 16:10:19 +02:00
Patrick Ohly
04f8952eec hack: optional Go API documentation
Let's introduce this new functionality incrementally: at first the check will
run, but won't fail "make verify". Once we have gained more confidence and
experience with it, this commit can be reverted to make documentation
mandatory again.

Kubernetes-commit: 8af3e85e9ebab272af2db66449ee74d287c0e95a
2026-06-02 15:50:32 +02:00
Richa Banker
1d2651da7d defer metric registration to runtime entry point via constructors
Signed-off-by: Richa Banker <richabanker@google.com>

Kubernetes-commit: 8721c830cf013a92a805b46eb163736f97aba2aa
2026-05-08 13:37:32 -07:00
Kubernetes Publisher
68262a1cf9 Merge pull request #139907 from ania-borowiec/remove_misleading_comments
Remove mentions about admission controllers from doc comments for  PodGroupTemplate.Priority and  PodGroupTemplate.PriorityClassName

Kubernetes-commit: 2a419be78ae256ef719071c6ae3bd46cb39b5b81
2026-06-23 17:05:47 +00:00
Ania Borowiec
fc42561c17 Remove mentions about admission controllers in PodGroupTemplate doc comments for Priority and PriorityClassName fields
Kubernetes-commit: f6fabaeb1e4c8607846402b52b6f6f4ba60c074b
2026-06-22 12:19:27 +00:00
Kubernetes Publisher
d04ac3067f Merge pull request #139867 from liggitt/json-v2-kube-openapi
Update kube-openapi to isolate from stdlib json/v2 prerelease

Kubernetes-commit: 2a799b273281aa952f457553e865050aba08bfe3
2026-06-19 01:04:47 +00:00
Jordan Liggitt
f04563ced1 Update kube-openapi to isolate from stdlib json/v2 prerelease
Kubernetes-commit: f45bf7803fa2fa86ea924a5cfe3503cb224fcbd1
2026-06-18 18:54:52 -04:00
Kubernetes Publisher
848305dfba Merge pull request #139825 from michaelasp/fixMutationTest
Fix dangling goroutine in mutation detector edge case

Kubernetes-commit: 55ac7c75fc03e69cff68075da901540c0f22b90e
2026-06-19 01:04:43 +00:00
Kubernetes Publisher
c18a3de8a3 Merge pull request #139755 from michaelasp/shutdownWait
Expose a way to wait for a controller listener to be fully shutdown

Kubernetes-commit: 7bdae3ff06a86acdf2b3cf9407b75b93c505e51f
2026-06-18 01:04:04 +00:00