Commit Graph

130318 Commits

Author SHA1 Message Date
zhangzhifei16
0a86ca4061 Add healthChecker to the kubeDeps 2025-06-10 21:14:17 +08:00
zhangzhifei16
4a7e68a355 fix: Fix the issue where kubelet's slow startup causes it to be mistakenly killed by the watchdog.
Add a lock for checkers and improve the unit test.

format code.

fix unit test
2025-06-09 21:27:57 +08:00
Kubernetes Prow Robot
43bb11b5c1 Merge pull request #131534 from aroradaman/kube-proxy-ipt-init-error-2
kube-proxy: log iptables errors in platformCheckSupported
2025-06-06 21:08:38 -07:00
Kubernetes Prow Robot
92de708958 Merge pull request #132139 from hoskeri/kubeletlog
kuberuntime_manager: don't log entire container spec.
2025-06-06 15:04:38 -07:00
Kubernetes Prow Robot
b5504bc2ae Merge pull request #132148 from soltysh/drop_poddisruptionconditions
KEP-3329: drop PodDisruptionConditions feature gate
2025-06-06 13:38:45 -07:00
Kubernetes Prow Robot
a26f3fd5c6 Merge pull request #132109 from linxiulei/jobdelay
Clean backoff record earlier
2025-06-06 13:38:38 -07:00
Abhijit Hoskeri
0d468f58c0 kuberuntime_manager: don't log entire container spec.
We shouldn't log all of spec.container because some fields
like args, env may contain sensitive data.

Most log lines involving containers log just the container.Name.
Fix the rest to match.

Change-Id: I3ca23d1f8338bdc7807ff84702222ee266730af1
2025-06-06 20:37:50 +00:00
Daman Arora
858b88bcee kube-proxy: log ipt errors during platformCheckSupported
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-06-07 01:14:33 +05:30
Kubernetes Prow Robot
827c36254f Merge pull request #132111 from jenshu/update-pr-template2
Update PR template with more guidance around issue links
2025-06-06 12:00:51 -07:00
Kubernetes Prow Robot
513e188697 Merge pull request #129460 from sohankunkerkar/add-test
kubelet: add coverage for identical kubelet config and drop-in config content
2025-06-06 12:00:44 -07:00
Eric Lin
1f46b3fdbf Clean backoff record earlier
Once received job deletion event, it cleans the backoff records for that
job before enqueueing this job so that we can avoid a race condition
that the syncJob() may incorrect use stale backoff records for a newly created
job with same key.

Co-authored-by: Michal Wozniak <michalwozniak@google.com>
2025-06-06 18:31:38 +00:00
Kubernetes Prow Robot
5090812df4 Merge pull request #132103 from nojnhuh/typed-ring-buffer
Replace queue.FIFOs with k8s.io/utils/buffer.Ring
2025-06-06 10:26:39 -07:00
Kubernetes Prow Robot
9c4cebb199 Merge pull request #132147 from soltysh/drop_elasticindexedjob
KEP-3715: drop ElasticIndexedJob feature gate
2025-06-06 08:16:39 -07:00
Jenny Shu
5b0f0d2efa update pr template issue links section
incorporate review comments

remove newline
2025-06-06 10:40:00 -04:00
Maciej Szulik
beb86a8391 KEP-3329: drop PodDisruptionConditions feature gate
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-06-06 16:15:30 +02:00
Maciej Szulik
b5a8f5d0a5 KEP-3715: drop ElasticIndexedJob feature gate
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-06-06 16:08:21 +02:00
Kubernetes Prow Robot
ebd25a55e3 Merge pull request #132142 from carlory/fix-unit-test-TestNodeAffinityPriority
fix TestNodeAffinityPriority
2025-06-06 02:38:52 -07:00
carlory
0896693693 fix TestNodeAffinityPriority: calculate the priorities correctly even if PreScore is not called 2025-06-06 16:03:46 +08:00
Kubernetes Prow Robot
230b9f470a Merge pull request #131258 from ArkaSaha30/fix-pause-windows-tag
Fix `windows-pause-image-base:<tag>@<digest>` invalid reference format
2025-06-06 00:26:40 -07:00
Kubernetes Prow Robot
2d3ca18f64 Merge pull request #132034 from ChosenFoam/dev-fix
Fix the IsDNS1123SubdomainWithUnderscore function to return the correct error message
2025-06-05 19:16:38 -07:00
Kubernetes Prow Robot
ce1d883e60 Merge pull request #132130 from jpbetz/codtags-master
Use named params and structured tags in declarative validation
2025-06-05 16:32:38 -07:00
Kubernetes Prow Robot
bbb4291153 Merge pull request #132119 from soltysh/drop_statefulsetordinal
KEP-3335: drop StatefulSetStartOrdinal feature gate
2025-06-05 15:28:45 -07:00
Kubernetes Prow Robot
3eebe671ea Merge pull request #131632 from DerekFrank/custom-lease-metadata
feat: Allow leases to have custom labels set when a new holder takes the lease
2025-06-05 15:28:38 -07:00
Joe Betz
28e99ef2ee Add type information to tag Docs() and use it to typecheck tags 2025-06-05 16:51:11 -04:00
Kubernetes Prow Robot
d96cfeb7de Merge pull request #132125 from neolit123/1.34-replace-pkg-errors
kubeadm: fix one missed pkg/errors location; drop pkg/errors from go.mod
2025-06-05 13:02:38 -07:00
Joe Betz
31aa3c2029 Switch to using named args in output_tests 2025-06-05 15:29:12 -04:00
Joe Betz
7892fd95f2 Use codetags in validation-gen 2025-06-05 15:29:12 -04:00
ArkaSaha30
249801b7cc Fix windows-pause-image-base:<tag>@<digest> invalid reference format
This commit will fix the windows pause image build logic to be able to build from `windows-pause-image-base:<tag>@<digest>`,
which currently only accepts `windows-pause-image-base:<tag>` due to which build is failing with `invalid reference format`.

Ref: https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/post-kubernetes-push-image-pause/1889748429312102400
Discussion: https://kubernetes.slack.com/archives/CCK68P2Q2/p1742839354591189?thread_ts=1742832454.449449&cid=CCK68P2Q2

Updates the pause windows build logic to remove hardcoded values:
OSVERSION ?= 1809 ltsc2022
And dynamically resolve the OSVERSIONS from `windows-pause-image-base`
which separate manifests per os.version and corresponding digests.

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2025-06-06 00:42:58 +05:30
Kubernetes Prow Robot
4fff091ce7 Merge pull request #132110 from jpbetz/gengo-bump
Bump gengo/v2 to latest, pick up related validation-gen fixes
2025-06-05 11:58:45 -07:00
Kubernetes Prow Robot
8bcc78c7bf Merge pull request #132067 from bzsuni/bz/npd/update/0.8.21
Update npd from v0.8.20 to v0.8.21
2025-06-05 11:58:38 -07:00
Kubernetes Prow Robot
074b21e76c Merge pull request #132123 from pohly/hack-fix-scheduler-perf
hack: fix KUBE_RACE in benchmark-dockerized.sh
2025-06-05 09:54:45 -07:00
Kubernetes Prow Robot
8a95bb6833 Merge pull request #132117 from yashsingh74/promote-agnhost
promote agnhost to v2.56
2025-06-05 09:54:38 -07:00
Tim Hockin
2c4c3037b6 Fix field path for embedded fields in root types
Given the following:

```
type Struct type {
    TypeMeta int

    // +k8s:validateFalse="embedded"
    OtherStruct
}
```

What should the field-path be for the error?

or:

```
type Struct type {
    TypeMeta int

    OtherStruct // embedded
}

// +k8s:validateFalse="otherstruct"
type OtherStruct {
  I int
}
```

Conclusion: If we find an embedded field, we look for a nil fldPath, and
if so we set it to the type name.  Embedded values in root types (e.g.
above `spec`) should not be a things we actually do.

Implementation: Add `safe.Value(*T, func() *T)`
2025-06-05 11:17:47 -04:00
Stephen Kitt
d1bddfd779 Forbid github.com/pkg/errors in k/k
kubeadm has replaced pkg/errors with an internal implementation, which
means that pkg/errors can be marked as unwanted (once a final
straggler is replaced).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-06-05 18:03:56 +03:00
Lubomir I. Ivanov
efaaece0fb go.mod: drop pkg/errors as a direct dep 2025-06-05 17:58:09 +03:00
Tim Hockin
cbbfabe7fe Support embedded fields properly 2025-06-05 10:50:14 -04:00
Lubomir I. Ivanov
d1a858ca9f kubeadm: fix one missed pkg/errors location
Missed in PR 132080.
2025-06-05 17:48:13 +03:00
Kubernetes Prow Robot
08ee8bde59 Merge pull request #132080 from neolit123/1.34-replace-pkg-errors
kubeadm: switch to a local implementation of wrapped errors
2025-06-05 07:30:39 -07:00
Patrick Ohly
036f4bfe28 hack: fix KUBE_RACE in benchmark-dockerized.sh
This fixes the following issue in ci-benchmark-scheduler-perf-master:

    malformed import path " ": invalid char ' '

    FAIL	  [setup failed]

Setting the non-empty string with just a space was broken, the right way to
disable the race detector is with an empty KUBE_RACE variable. This worked
before when test-integration.sh unconditionally overwrote the KUBE_RACE
variable and stopped working when 6cb1488 started to keep whatever was
set by the caller.

This then caused an empty string to be passed as additional parameter to "go
test".
2025-06-05 15:08:35 +02:00
Lubomir I. Ivanov
5be254650f kubeadm: start using util/errors
- Replace usage of pkg/errors with the local util/errors.
- Run kinder/hack/orderimports tool from kubeadm repo to
order the imports in the source tree.
2025-06-05 16:05:02 +03:00
Lubomir I. Ivanov
f522d7cb85 kubeadm: add a local implementation of wrapped errors
pkg/errors is archived and while there is go-errors/errors as
an alternative, it lacks wraping methods. kubeadm has
specific neends and it's better to implement something
minimal locally instead of introducing another depedency.

- Implement basic wrapped errors and stack trace support.
cmd/kubeadm/app/util/errors.
- Remove unused error codes >1. At some point it seems we broke
these and 1 was returned for all error types.
- Remove the Error type in preflight and separate the printing
of '[preflight]' message and the error return from preflight
checks.
- Print an 'error:' prefix for all errors.
2025-06-05 16:04:52 +03:00
Maciej Szulik
2bf3d8b733 KEP-3335: drop StatefulSetStartOrdinal feature gate
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-06-05 14:02:44 +02:00
Kubernetes Prow Robot
7f50c56b1a Merge pull request #131979 from serathius/watchcache-initialization-ga
Gradute ResilientWatchCacheInitialization to GA
2025-06-05 03:02:38 -07:00
yashsingh74
1d1d0c154c promote agnhost to v2.56
Signed-off-by: yashsingh74 <yashsingh1774@gmail.com>
2025-06-05 14:45:00 +05:30
Joe Betz
ac5cb23000 Bump gengo/v2 to latest 2025-06-04 22:39:08 -04:00
Kubernetes Prow Robot
544e7a63e2 Merge pull request #132105 from tallclair/ippr-preemption
Preempt based based on allocated resources rather than desired
2025-06-04 18:26:37 -07:00
Kubernetes Prow Robot
f9ad9d2b16 Merge pull request #132102 from tallclair/allocation-failure
Only set pod allocation if admission succeeds
2025-06-04 14:46:45 -07:00
Kubernetes Prow Robot
19d110af4a Merge pull request #132063 from yongruilin/metric_fix-race
fix(metric): prevent data race in metric LabelValueAllowList initialization
2025-06-04 14:46:38 -07:00
Kubernetes Prow Robot
6188e5cb7b Merge pull request #132101 from haircommander/restart-flake
e2e_node: verify restart looping container correctly
2025-06-04 13:40:50 -07:00
Kubernetes Prow Robot
5b248e1579 Merge pull request #132095 from esotsal/podResizeMutex-cleanup
Remove unecessary comment since podResizeMutex no longer exist.
2025-06-04 13:40:44 -07:00