Commit Graph

125092 Commits

Author SHA1 Message Date
googs1025
754ad2001f fix(kubelet): register ImageGarbageCollectedTotal metrics 2024-08-30 22:45:07 +08:00
Stephen Kitt
68bad250b6
applyconfiguration-gen: handle conflicting members
With embedded structs, objects can end up with conflicting members.
These aren't ambiguous in Go, but applyconfiguration-gen's generated
functions ignore this possibility and produce ambiguous member
accesses and duplicate methods.

This resolves the problem by qualifying embedded member accesses with
their types when appropriate, and by memoizing generated function
names to avoid duplicates. When conflicting members are encountered,
functions are generated for the first one; this is assumed to produce
correct results.

For applyconfiguration-gen, a more correct approach would be to only
generate With... and Get... functions for the specific members the
generator is interested in; but that would be a breaking change for
any client code relying on the other With... functions.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-08-30 16:12:46 +02:00
Stephen Kitt
63439abb40
Add an example of conflicting members in apply configurations
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-08-30 16:12:46 +02:00
Kubernetes Prow Robot
fd58143ed2
Merge pull request #126265 from tnqn/fix-watch-error
Enrich the error returned from Request.Watch method
2024-08-30 14:47:31 +01:00
aimuz
3d2f498aa3 leaderelection: replace deprecated wait.PollImmediateUntil with wait.PollUntilContextTimeout
This commit refactors the `renew` function in the leader election package to replace
the deprecated `wait.PollImmediateUntil` with `wait.PollUntilContextTimeout`.
This change simplifies the context handling by removing the need for an additional
timeout context and its cancellation.

The previous implementation created a timeout context for each retry period,
which added unnecessary complexity. The new implementation directly passes the parent
context to the retry function, ensuring that the timeout is handled within `PollUntilContextTimeout`.

This change also ensures that the context passed to `tryAcquireOrRenew` and
`tryCoordinatedRenew` is consistent, improving the readability and maintainability of the code.
2024-08-30 19:25:45 +08:00
Sascha Grunert
6bd3bb5881
Allow using SELinux on image volume e2e test
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-08-30 10:43:15 +02:00
alegueri
ab01874a06
Update logs.go 2024-08-29 23:52:36 -07:00
Kubernetes Prow Robot
de6db3ffb0
Merge pull request #126758 from my-git9/dryrun-ut
kubeadm: increase ut coverage for util/dryrun
2024-08-30 06:33:30 +01:00
xin.li
6f7f49c3df kubeadm: increase ut coverage for util/dryrun
Signed-off-by: xin.li <xin.li@daocloud.io>
2024-08-30 10:53:04 +08:00
Kubernetes Prow Robot
c93f93c714
Merge pull request #127006 from deads2k/clarify-local-ref
clarify that new usages of generic *ObjectReference structs are discouraged
2024-08-30 00:25:31 +01:00
David Eads
39c6f57b54 generated 2024-08-29 15:27:30 -04:00
Kubernetes Prow Robot
baf11b01c5
Merge pull request #126989 from cpanato/update-rules
Update publishing-bot rules to Go 1.22.6
2024-08-29 19:33:31 +01:00
Jefftree
8dd2c7de47 Remove v2beta1 aggregated discovery from being generated 2024-08-29 18:08:11 +00:00
David Eads
06628afc99 clarify that new usages of generic *Reference structs are discouraged 2024-08-29 13:54:08 -04:00
cpanato
dec204d49f
drop rules for release-1.27 as this branch is EOL
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-08-29 17:59:00 +02:00
Kubernetes Prow Robot
45804907d2
Merge pull request #126727 from jpbetz/fix-fake-apply-name
Stamp fake client apply reuqests with name from action
2024-08-29 16:49:45 +01:00
Kubernetes Prow Robot
dc8c42752a
Merge pull request #126574 from tkashem/apf-data-race
Fix data race in APF tests
2024-08-29 16:49:38 +01:00
Kubernetes Prow Robot
a4ec0c039a
Merge pull request #126435 from bart0sh/PR151-Kubelet-devicemanager-stop-using-CDI-annotations
Kubelet: stop using CDI annotations
2024-08-29 16:49:30 +01:00
Kubernetes Prow Robot
0ce7f7e25e
Merge pull request #126994 from dgoodwin/apply-fieldmanager
Add required FieldManager for validatingadmissionpolicy e2e
2024-08-29 15:31:46 +01:00
Joe Betz
0a2dfba067 Add equality cost checking 2024-08-29 10:02:29 -04:00
Ed Bartosh
d3b5cb6f41 DRA: test checkpoint structure and version upgrades
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2024-08-29 15:25:58 +03:00
Devan Goodwin
98114a9fdf Add required FieldManager for validatingadmissionpolicy e2e
This line would fail if the code path happened to execute, which may not
happen in upstream, but does trigger occasionally in OpenShift testing.
2024-08-29 09:10:47 -03:00
cpanato
8e1ba3b94e
Update publishing-bot rules to Go 1.22.6
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-08-29 12:59:04 +02:00
Kubernetes Prow Robot
6de748d97b
Merge pull request #126968 from serathius/watchache-refactor-store
Watch cache refactor watch cache store and add tests
2024-08-29 10:24:29 +01:00
Patrick Ohly
861ed2d2fe dependencies: logr v1.4.2, zap v1.27.0
No particular reason for updating besides staying up-to-date.
2024-08-29 10:50:23 +02:00
Marek Siarkowicz
c93d2e8fb1 Extract watch cache store to separate file and cover with tests 2024-08-29 10:14:51 +02:00
Marek Siarkowicz
7400d57943 Refactor WaitUntilFreshAndList to split out filtering to separate function 2024-08-29 10:14:51 +02:00
Kubernetes Prow Robot
eebc897e4f
Merge pull request #126980 from dims/fix-for-GenericPersistentVolume-disruptive-test-failures
Fix for GenericPersistentVolume/Disruptive test failures
2024-08-29 01:38:28 +01:00
TommyStarK
2414cfdff5
kubelet/eviction: improve unit test coverage
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2024-08-29 00:59:47 +02:00
Kubernetes Prow Robot
4aca09bc0c
Merge pull request #126966 from saschagrunert/cni-plugins
Update cni-plugins to v1.5.1
2024-08-28 21:58:19 +01:00
Kubernetes Prow Robot
aa45153447
Merge pull request #126954 from deads2k/retry-http2
automatically retry GET requests when http2 connection lost
2024-08-28 21:58:10 +01:00
Kubernetes Prow Robot
59051eb003
Merge pull request #126029 from sanposhiho/backoff-preenqueue
scheduler: impose a backoff penalty on gated Pods
2024-08-28 21:58:01 +01:00
Davanum Srinivas
8dc84eda9d
Fix for GenericPersistentVolume/Disruptive test failures
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-08-28 16:18:43 -04:00
Kubernetes Prow Robot
e74205b08a
Merge pull request #126961 from carlory/fix-124398
kubelet: csi plugin stop watching the volumeattachment object
2024-08-28 20:41:40 +01:00
Kubernetes Prow Robot
3d65369f34
Merge pull request #126957 from dashpole/fix_tracing_leak
Fix memory leak from global OpenTelemetry MeterProvider
2024-08-28 19:29:17 +01:00
Kubernetes Prow Robot
71389d5082
Merge pull request #126920 from atiratree/statefulset-autodelete-pvc-rbac
add missing RBAC to statefulset-controller for StatefulSetAutoDeletePVC feature
2024-08-28 19:29:10 +01:00
Kubernetes Prow Robot
fee426fabc
Merge pull request #126910 from carlory/vac
migrate kube feature VolumeAttributesClass to new versioned kube feature file and syntax
2024-08-28 19:29:03 +01:00
Kubernetes Prow Robot
26f399921f
Merge pull request #126627 from fusida/fix-reduce-etcd-conn
fix short circuit if the compaction request from apiserver is disabled
2024-08-28 19:28:57 +01:00
James Sturtevant
3ca610757e
Revert "fix: handle socket file detection on Windows"
This reverts commit 4060ee60c1.
2024-08-28 10:31:58 -07:00
Kubernetes Prow Robot
bbd83d8644
Merge pull request #125634 from ahmedtd/x509credentialID
Define credential IDs for X.509 certificates
2024-08-28 16:02:56 +01:00
David Ashpole
4aa655c2d7
update-vendor 2024-08-28 14:27:36 +00:00
David Ashpole
b86cab8c4c
fix memory leak from global MeterProvider 2024-08-28 14:20:46 +00:00
Kubernetes Prow Robot
f164b47ae7
Merge pull request #126964 from my-git9/addon-metricsserver
addons: update metrics-server to v0.7.2
2024-08-28 13:20:56 +01:00
Sascha Grunert
931b9b3a70
Update cni-plugins to v1.5.1
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-08-28 12:58:36 +02:00
xin.li
c280a6837b addons: update metrics-server to v0.7.2
Signed-off-by: xin.li <xin.li@daocloud.io>
2024-08-28 17:57:52 +08:00
Kubernetes Prow Robot
95b3fe9f15
Merge pull request #126930 from Ruddickmg/patch-1
kmsv2: set authority to localhost
2024-08-28 07:49:04 +01:00
Kubernetes Prow Robot
ad87920548
Merge pull request #124747 from l-technicore/update_event_spam_key
Enhance Event Spam Key to Preserve Important Events During Reconciliations
2024-08-28 07:48:58 +01:00
carlory
e1228754f6 csi volume plugin stop watching the volumeattachment object if the object is not found or volume is not attached when kubelet wait for volume attached 2024-08-28 12:47:27 +08:00
Kubernetes Prow Robot
8486ed0620
Merge pull request #126759 from mcluseau/fix-err-fg-linter
feategates_linter: take versioned into account in the error message
2024-08-28 03:16:56 +01:00
Marcus Ruddick
618ca85bc9 kmsv2: fixed issue with an invalid authority header being sent by the KMSv2 service 2024-08-27 14:28:06 -10:00