10488 Commits

Author SHA1 Message Date
yongruilin
088daf472b feat: Refactors featuregate lifecycle management script
- rename featuregate_linter to compatibility_lifecycle
- add feature removal verify to follow N+3 rule
- remove unversioned related operation
- rename yaml folder name to "reference"
2025-03-13 21:57:21 +00:00
Benjamin Elder
1ddfc7bdce benchmark-dockerized.sh: don't redundantly install gotestsum
this is handled centrally by make test which is called by make test-integration which this script calls

only make test's implementation actually calls gotestsum, and it also handles installing if needed
2025-03-13 11:23:53 -07:00
Benjamin Elder
8898868fea install-ectd.sh: brace PATH and suggest user export 2025-03-13 11:23:53 -07:00
Benjamin Elder
d798d86981 cleanup CI integration scripts
- stop setting ARTIFACTS from WORKSPACE, CI handles setting ARTIFACTS and WORKSPACE isn't used anymore (bazel?)
- stop cd-ing GOPATH, CI sets the working dir already and local users won't necessarily have GOPATH
- sop clobbering PATH with hardcoded assumptions, source install-etcd.sh instead (which updates PATH)
- don't redundantly set KUBE_COVER to the default
- pass logging env inline so the command can be pasted locally
- set -x so the command is visible
- add TODO about needing a wrapper script just to call install-etcd
2025-03-13 11:23:53 -07:00
Patrick Ohly
cab6045a40 hack: remove verify-e2e-suites.sh
The goal of compiling and running each suite was to check explicitly with a
clear failure message when test registration is faulty or the suite detects
some other issue. But the check is slow (> 4 minutes), probably because of the
compilation step.

This self-testing also happens when running the suites, so we can remove the
verify script. We loose some coverage for suite changes which don't run during
required presubmits (kubeadm?), but that seems acceptable.
2025-03-13 17:36:25 +01:00
Kubernetes Prow Robot
6549f52b97 Merge pull request #130757 from BenTheElder/delete-dead-script
delete hack/test-integration.sh
2025-03-12 20:13:59 -07:00
Benjamin Elder
9e42056a0d stop overriding max concurrency in CI, let automax procs handle it 2025-03-12 13:45:48 -07:00
Benjamin Elder
cb7afbccf6 delete hack/test-integration.sh
this script has exited non-zero after telling the user to call make test-integration for 5+ years now

we should just drop it
2025-03-12 13:41:45 -07:00
Kubernetes Prow Robot
c7c0c62edb Merge pull request #130737 from aaron-prindle/validation-gen-rename-extra-arg-flag-upstream
[Declarative Validation] chore(validation-gen): rename flag --extra-pkg -> --readonly-pkg in validation-gen
2025-03-11 19:48:13 -07:00
Kubernetes Prow Robot
6ef9938e4a Merge pull request #130647 from alexandear/golangci-fix-forbidigo-settings
hack: fix settings for forbidigo linter
2025-03-11 19:47:52 -07:00
Aaron Prindle
cfcf7e93a3 chore(validation-gen): rename flag --extra-pkg -> --readonly-pkg in validation-gen 2025-03-11 19:17:48 +00:00
Oleksandr Redko
ca4f785757 Update hack/verify-golangci-lint.sh
Co-authored-by: Benjamin Elder <bentheelder@google.com>
2025-03-11 11:45:45 -07:00
Oleksandr Redko
80f4f62ea8 hack: fix shellcheck 2025-03-10 15:56:30 +02:00
Oleksandr Redko
77758c185b hack: verify to verify-golangci-lint.sh 2025-03-10 14:37:13 +02:00
Oleksandr Redko
67f0e95b3a hack: fix text 2025-03-10 14:31:08 +02:00
Oleksandr Redko
a9d558de26 hack: verify golangci-lint config, update text 2025-03-10 12:40:04 +02:00
Kubernetes Prow Robot
0f2bde7745 Merge pull request #130555 from thockin/k_k_randfill
Use randfill in k/k
2025-03-09 01:47:45 -08:00
Tim Hockin
f08e640b9e Lock down gofuzz in deps 2025-03-08 15:22:01 -08:00
Joe Betz
6798e2d863 Add time to extra-pkgs for validation-gen 2025-03-08 14:21:49 -05:00
Kubernetes Prow Robot
0eaee48ecb Merge pull request #130569 from dims/update-to-latest-cadvisor-v0.52.0
Update to latest cadvisor @ v0.52.1 and new opencontainer/cgroups and drops opencontainers/runc
2025-03-07 17:09:51 -08:00
Davanum Srinivas
97a54dc4b0 update to v1.22.0-rc.0
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-07 13:45:34 -05:00
Oleksandr Redko
834a0d92cf hack: fix settings for forbidigo linter 2025-03-07 17:27:03 +02:00
Joe Betz
9765fe4abb Add all extra_pkgs needed by main API types to validation-gen 2025-03-06 19:45:17 -05:00
Jefftree
c597cc1f30 Allow OpenAPI verification to pass both with and without strict alpha
handling
2025-03-05 21:31:40 +00:00
Davanum Srinivas
5ecddb6571 update to latest cadvisor @ v0.52.0
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-05 06:36:39 -05:00
Joe Betz
3210f46b5b Add validation-gen to codegen scripts
Add validation-gen to repository wide codegen scripts and introduce
`./hack/update-codegen.sh validation` as a quick way to run validation-gen.
2025-03-03 09:49:50 -05:00
David Ashpole
29c219dceb update go.opentelemetry.io dependencies to v1.33.0/v0.58.0 2025-03-01 19:18:34 +00:00
Patrick Ohly
650db7fab9 golangci-lint: temporarily suppress known issues in the code base
These suppressions are necessary to make golangci-lint 1.64 pass with the
current code base. This change is meant to be backported to release
branches. On master, we may want to revert some of it together with fixing the
findings.
2025-02-26 16:09:28 +01:00
Jordan Liggitt
43509b63d7 Bump hack/tools to github.com/golangci/golangci-lint 1.64.5 for go 1.24 2025-02-26 11:27:14 +01:00
cpanato
88300c406b bump go.mod to set min go1.24
Signed-off-by: cpanato <ctadeu@gmail.com>
2025-02-26 11:27:07 +01:00
cpanato
597b54720e Bump images, dependencies and versions to go 1.24.0
Signed-off-by: cpanato <ctadeu@gmail.com>
2025-02-26 11:26:54 +01:00
Kubernetes Prow Robot
06d81cfc7a Merge pull request #130359 from my-git9/assertion1
fix wrong assertion on tests
2025-02-24 05:18:34 -08:00
Kubernetes Prow Robot
7bd0477a95 Merge pull request #130337 from pohly/hack-jenkins-split
hack: split up test-dockerized.sh
2025-02-24 00:26:27 -08:00
xin.li
d92c70b826 enable go-required check
Signed-off-by: xin.li <xin.li@daocloud.io>
2025-02-24 10:38:44 +08:00
Lionel Jouin
e9c47f8601 Add codegen::register to hack/update-codegen.sh
Co-authored-by: Joe Betz <jpbetz@google.com>
Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
2025-02-23 19:51:12 +01:00
Patrick Ohly
a20a959b2c hack: split up test-dockerized.sh
This enables testing command and integration tests separately in CI jobs. The
goal is to reduce pull-kubernetes-integration to testing really just the Go
test/integration tests and to add a pull-kubernetes-cmd job for command tests.

hack/jenkins/test-dockerized.sh does the same as before because some jobs will
probably continue to use it.
2025-02-22 09:39:54 +01:00
Jefftree
4cc32f817a Remove cloud-provider arg for kube-apiserver in local-up-cluster.sh 2025-02-19 22:09:16 +00:00
Kubernetes Prow Robot
d93583654c Merge pull request #130176 from liggitt/go-tools
Honor KUBE_HACK_TOOLS_GOTOOLCHAIN
2025-02-14 12:22:21 -08:00
Jordan Liggitt
0ce48b5636 Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 13:01:59 -05:00
Sascha Grunert
36c6c7778b Use sudo for dmesg in hack/local-up-cluster.sh
Kernels may have `kernel.dmesg_restrict = 1` set which requires root
access to see dmesg. We're now using `sudo` to mitigate that.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-02-13 16:38:51 +01:00
Kubernetes Prow Robot
ea50baedcd Merge pull request #129875 from pohly/golangci-lint-strict-removal
golangci-lint: remove "strict" checking
2025-02-12 20:26:20 -08:00
Jefftree
819bf72b0c Remove feature disablement ConsistentListFromCache in update openapi script 2025-02-10 16:34:49 +00:00
Patrick Ohly
949385731f golangci-lint: remove "strict" checking
The corresponding "pull-kubernetes-verify-lint" job was already removed
earlier. Manual strict checking was still possible, but doesn't really make
sense for the same reasons why the job was removed (e.g. the decisions which
checks should be "strict" were too arbitrary).

The explanations for "hints" no longer end with "In general please prefer to
fix the error, ..." because that was misleading and only really applied to the
checks for existing code. For those checks we prefer to fix errors instead of
suppressing them, but not for hints.
2025-02-02 18:50:27 +01:00
Ed Bartosh
71b9114840 kubelet: Migrate pkg/kubelet/sysctl to contextual logging 2025-01-30 10:31:58 +02:00
Kubernetes Prow Robot
547654a8a1 Merge pull request #129813 from yongruilin/golangci-featuregate-add
feat: add a lint rule to prevent Add unversioned featuregate
2025-01-29 16:41:22 -08:00
Kubernetes Prow Robot
8294abc599 Merge pull request #128998 from bart0sh/PR165-migrate-oom-to-contextual-logging
kubelet: Migrate pkg/kubelet/oom to contextual logging
2025-01-28 13:33:22 -08:00
yongruilin
8a0937c034 feat: add a lint rule to prevent Add unversioned featuregate 2025-01-28 09:37:43 -08:00
Kubernetes Prow Robot
48dce2e9b3 Merge pull request #129776 from saschagrunert/cni-plugins-1.6.2
Update CNI plugins to v1.6.2 and avoid using k8s-artifacts-cni bucket
2025-01-28 07:29:26 -08:00
Sascha Grunert
5742f3deeb Cleanup running dmesg process in local-up-cluster.sh
We have to cleanup the background job after the script otherwise we will
end up having them hanging around.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-01-27 17:44:24 +01:00
Davanum Srinivas
4e05bc20db Linter to ensure go-cmp/cmp is used ONLY in tests
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-01-24 20:49:14 -05:00