Commit graph

10609 commits

Author SHA1 Message Date
Kubernetes Prow Robot
be49637f88
Merge pull request #135385 from PatrickLaabs/132086-denypointerpkg
chore: Denying deprecated pointer package in golangci-linters config
2025-12-17 21:42:31 -08:00
Kubernetes Prow Robot
a8b2be3f45
Merge pull request #135380 from BenTheElder/apidiffremotebranch
apidiff: autodetect remote and default branch
2025-12-17 21:42:23 -08:00
Kubernetes Prow Robot
907f9d26c7
Merge pull request #135302 from liyuerich/commentstartapidiscovery
enable commentstart check on apidiscovery API group
2025-12-17 20:00:46 -08:00
Kubernetes Prow Robot
1c0eb534ca
Merge pull request #135219 from skitt/valswap
Enforce Golang a, b = b, a swaps
2025-12-17 19:59:46 -08:00
Kubernetes Prow Robot
99b27386d9
Merge pull request #135211 from AkihiroSuda/fix-135210
hack/lib/util.sh: support uutils' `date` command
2025-12-17 19:59:32 -08:00
Kubernetes Prow Robot
3346a57834
Merge pull request #134966 from shwetha-s-poojary/enable-notimestamp-lint
Enable notimestamp rule for Kube API Linter
2025-12-17 17:37:15 -08:00
Patrick Ohly
f58f81d917 local-up-cluster.sh: support more recent containerd like 2.2
The kubekins image got updated from containerd 1.7 to 2.2, which broke
local-up-cluster.sh in the CI because more recent containerd uses single
quotation marks around strings instead of double quotation marks as before. The
search/replaced with sed no longer matched, causing containerd to fail mounting
overlayfs on the default /var/lib/containerd. We have to use the emptyDir host
mount under /docker-graph.

The fix is to relax the search term slightly so that it accepts both kinds of
quotation marks.
2025-12-10 09:17:03 +01:00
bzsuni
2c811fdd3a etcd: Update etcd to v3.6.6
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2025-12-08 05:37:15 +00:00
PatrickLaabs
7402fc23db Denying deprecated pointer package in golangci-linters config 2025-11-21 09:51:20 +01:00
Benjamin Elder
bb2899fc4a apidiff: autodetect remote and default branch 2025-11-20 16:48:02 -08:00
Akihiro Suda
0c0bc0d533
hack/lib/util.sh: support uutils' date command
`make` was printing the following warning on Ubuntu 25.10,
which switched away from GNU coreutils to uutils:

```
!!! [1107 12:46:24] Failed to find GNU date as date or gdate. If you are on Mac: brew install coreutils.
<GOPATH>/src/k8s.io/kubernetes/hack/lib/version.sh: line 166: DATE: unbound variable
```

Fix issue 135210

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2025-11-18 17:27:50 +09:00
liyuerich
a9085f7358 enable commentstart check on apidiscovery API group
Signed-off-by: liyuerich <yue.li@daocloud.io>
2025-11-14 15:10:30 +08:00
Stephen Kitt
55c337637e
Enforce Golang a, b = b, a swaps
This eliminates the last two remaining three-step value swaps (t =
a; a = b; b = t instead of a, b = b, a) and enables linting to prevent
new ones being added in future.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-11-13 06:38:23 -05:00
shwetha-s-poojary
84baa7143e Enable notimestamp rule for Kube API Linter 2025-11-07 09:09:51 +05:30
liyuerich
18967f53dd enable commentstart check on adminssion API group
Signed-off-by: liyuerich <yue.li@daocloud.io>
2025-11-05 14:12:49 +08:00
Kubernetes Prow Robot
4b2e387b8b
Merge pull request #134734 from kannon92/kal-linter-enable
Enable duplicatemarkers for Kubernetes API Linter
2025-11-04 15:32:14 -08:00
Patrick Ohly
6034321603 dependencies: ginkgo v2.27.2, gomega v1.38.2
Specifically the new AddTreeConstructionNodeArgsTransformer and SpecPriority in
Ginkgo will be useful.

Gomega gets updated to keep up-to-date.
2025-11-01 09:52:09 +01:00
Kubernetes Prow Robot
710c80f72a
Merge pull request #133503 from p0lyn0mial/upstream-disable-panic-watch-decode-err-for-integration
test-integration: set KUBE_PANIC_WATCH_DECODE_ERROR to false
2025-10-31 02:52:03 -07:00
Kevin Hannon
fda069a5d6 update kal to fix markdown table bug 2025-10-30 12:01:09 -04:00
Kevin Hannon
9cc3a06f0b enable duplicate tags for kal and add exceptions 2025-10-30 11:15:35 -04:00
Kubernetes Prow Robot
3ec2d82da5
Merge pull request #134784 from michaelasp/svm_beta2
SVM: bump the API to beta, remove unused fields
2025-10-29 13:56:02 -07:00
Michael Aspinwall
3b72759d1b Update SVM to Beta
Co-authored-by: Stanislav Láznička <stlaz.devel@proton.me>
2025-10-29 19:36:11 +00:00
Francesco Romani
816eee64e8 cpumanager: hack: add golang ci config for contextual logging
add cpumanager to contextual logging linter
regenerate with
```hack/update-golangci-lint-config.sh```

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-10-27 08:38:58 +01:00
Kubernetes Prow Robot
60e1f61a63
Merge pull request #133511 from BenTheElder/no-md5
eliminate md5 usage, block new usage
2025-10-24 10:59:35 -07:00
Tim Allclair
c247514f47 Remove year from copyright header boilerplate 2025-10-23 16:50:13 -07:00
Kubernetes Prow Robot
ee58e792cc
Merge pull request #134812 from skitt/enable-gocritic-unlambda
Avoid no-change lambdas
2025-10-23 15:43:34 -07:00
Kubernetes Prow Robot
ab34215bab
Merge pull request #134229 from yongruilin/kal-vg
Use kube-api-linter linting for declarative validation tags
2025-10-23 08:11:35 -07:00
Stephen Kitt
1e2817d589
Avoid no-change lambdas
This replaces functions that wrap another function with no change with
a direct reference to the wrapped function.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-10-23 09:46:15 +02:00
yongruilin
d764e81a66 Revert "Implement validation-gen lint for CI"
This reverts commit 252d584cb7.

Lint logic is implemented through golanci-lint&kube-api-linter
2025-10-22 18:02:06 +00:00
yongruilin
7d1500bb1e feat: Add exceptions for conflicting markers in kube-api-linter 2025-10-22 18:02:06 +00:00
yongruilin
12b5106809 bump kube-api-linter tool to latest and go mod tidy 2025-10-22 18:02:06 +00:00
yongruilin
5fc2f3e5a9 feat: Enable conflicting markers linter to detect mutually exclusive field markers 2025-10-22 17:06:11 +00:00
Stephen Kitt
5bfc9aba9f
Disable unwanted gocritic checks instead of filtering them
The golangci-lint docs indicate that, for gocritic, disabled-checks
and enabled-checks can't be combined. That is however not accurate;
enabled-checks adds checks, disabled-checks disables them, in that
order. If disable-all isn't set, then the setup starts with the checks
enabled by default, adds any additional checks specified in
enabled-checks, and removes checks specified in disabled-checks.

This means that instead of filtering unwanted checks, we can disable
them entirely. This makes the set of disabled checks easier to read,
and perhaps easier to clean up in future.

For singleCaseSwitch and wrapperFunc, we only want to ignore specific
instances, so this is still done by filtering.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-10-22 15:00:53 +02:00
Benjamin Elder
886fdeefae forbid new use of md5 2025-10-21 15:25:11 -07:00
Tim Hockin
b1c85ef2fe
golangci-lint: no need to enable deprecatedComment 2025-10-21 12:47:38 -07:00
Kubernetes Prow Robot
cf991024a2
Merge pull request #134656 from BenTheElder/cleanup-rsync
additional build simplification, drop rsync requirement
2025-10-16 14:32:47 -07:00
Kubernetes Prow Robot
e066b3850f
Merge pull request #133912 from tallclair/kube-feature-deps
Mark all Kube feature dependencies, and require dependencies to be declared for all features
2025-10-16 11:14:43 -07:00
Benjamin Elder
1877809f59 cleanup unused rsync related env vars 2025-10-16 10:26:13 -07:00
Benjamin Elder
feeeb4aa19 switch from rsync to cp, drop rsync requirement 2025-10-16 10:26:13 -07:00
Benjamin Elder
30c3c990d0 prevent shellcheck warning
https://www.shellcheck.net/wiki/SC2153

this is not a mispelling of KUBE_OUTPUT_SUBPATH, the unprefixed version is an optional override which sets _KUBE_OUTPUT_SUBPATH, which is handled in hack/lib/init.sh where golang.sh is sourced
2025-10-15 20:18:31 -07:00
Benjamin Elder
563919c685 don't update _output/bin symlink in dockerized builds 2025-10-15 20:18:31 -07:00
Benjamin Elder
605f402d44 use relative symlink for output path
resolves issues with creating symlinks inside the build container via bind mount instead of rsync-ing them out
2025-10-15 13:12:38 -07:00
Tim Allclair
36e3a8f269 Record and require all kube-feature dependencies 2025-10-15 10:29:15 -07:00
Kubernetes Prow Robot
48453a6eec
Merge pull request #134174 from phuhung273/topologymanager-contextual-logging
kubelet: Migrate pkg/kubelet/cm/topologymanager to contextual logging
2025-10-15 01:53:34 -07:00
Kubernetes Prow Robot
9630ab9581
Merge pull request #134510 from BenTheElder/no-rsync
build by running kube-cross directly
2025-10-14 11:37:40 -07:00
phuhung273
7ed61cfde1 chore(kubelet): migrate topologymanager to contextual logging 2025-10-14 18:32:20 +07:00
Jordan Liggitt
39d37a1e92 Remove invalid SAN certificate construction 2025-10-13 10:27:22 -07:00
Benjamin Elder
7ed65b466d remove defunct comments about updating copy_output 2025-10-13 09:47:24 -07:00
Benjamin Elder
eaeed1a534 remove calls to kube::build::build_image and kube::build::copy_output 2025-10-13 09:47:24 -07:00
Kubernetes Prow Robot
260ea59ff5
Merge pull request #134293 from bart0sh/PR203-migrate-devicemanager-to-contextual-logging
Migrate device manager to contextual logging
2025-10-13 07:23:44 -07:00