kubernetes/hack
Kubernetes Prow Robot 8150afd025
Merge pull request #130171 from liggitt/bump-go-tools-129
[release-1.29][go1.23] hack: bump go-tools and exclude SA1006 / Honor KUBE_HACK_TOOLS_GOTOOLCHAIN
2025-02-14 17:26:21 -08:00
..
boilerplate Cleanup boilerpate.py 2023-05-30 00:58:32 +03:00
conformance e2e: remove redundant spaces in test names 2023-09-29 08:30:57 +02:00
e2e-internal
gen-swagger-doc
jenkins Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 12:46:32 -05:00
lib Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 12:46:32 -05:00
make-rules Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 12:46:32 -05:00
testdata Move cri/streaming to k8s.io/kubelet staging repository 2023-06-05 08:08:18 +02:00
tools Update tools to go1.22 min 2025-02-14 12:03:21 -05:00
verify-flags kubelet: create top-level traces for pod sync and GC 2023-03-11 10:42:14 +01:00
.descriptions_failures
.import-aliases scheduler: remove deprecated v1beta2 KubeSchedulerConfiguration 2023-08-17 13:27:21 +08:00
.spelling_failures Add gimme 2023-02-01 16:34:23 -05:00
benchmark-go.sh
build-cross.sh
build-go.sh
cherry_pick_pull.sh Update cherry_pick_pull.sh 2022-06-26 09:21:05 +05:30
dev-build-and-push.sh
dev-build-and-up.sh
dev-push-conformance.sh Build Ginkgo binary 2022-07-08 10:46:11 +08:00
e2e-node-test.sh
generate-docs.sh
get-build.sh fix: use dl.k8s.io, not kubernetes-release bucket 2023-05-13 10:57:41 +00:00
ginkgo-e2e.sh Fix ginkgo deprecation warning 2023-05-31 12:53:11 +03:00
golangci-hints.yaml golangci-lint: tone down comment checking 2023-11-01 14:59:28 +01:00
golangci-strict.yaml golangci-lint: tone down comment checking 2023-11-01 14:59:28 +01:00
golangci.yaml hack: disable SA1006 check 2025-01-02 11:31:39 -08:00
golangci.yaml.in hack: disable SA1006 check 2025-01-02 11:31:39 -08:00
grab-profiles.sh
install-etcd.sh
install-protoc.sh Add helper script to install protoc 2023-01-26 18:00:08 -05:00
lint-dependencies.sh exit 1 if status are not as expected(order) 2023-06-18 14:09:50 +08:00
list-feature-tests.sh
local-up-cluster.sh Add support for authorization-config to local-up-cluster 2023-11-08 14:36:05 -06:00
logcheck.conf hack/logcheck.conf: enable contextual logging in kube-scheduler 2023-10-24 17:56:59 +08:00
module-graph.sh
OWNERS lavalamp is taking a long break 2023-05-11 16:43:38 +00:00
pin-dependency.sh Stop adding explicit replace directives for all requires 2022-10-28 15:15:18 -04:00
print-workspace-status.sh Remove invalid comments in hack/lib/version.sh 2022-07-06 19:19:29 +08:00
README.md
run-in-gopath.sh
run-prometheus-on-etcd-scrapes.sh
serve-prom-scrapes.sh
test-go.sh
test-integration.sh
unwanted-dependencies.json bump to newest etcd: v3.5.10 2023-11-01 11:59:31 +08:00
update-all.sh
update-codegen.sh Use the same report files as before 2023-05-09 19:33:21 -07:00
update-conformance-yaml.sh
update-generated-api-compatibility-data.sh Add CRD compatibility objects 2023-02-27 14:12:59 -05:00
update-generated-docs.sh
update-generated-proto-bindings-dockerized.sh Check protoc version strictly 2023-01-26 18:00:06 -05:00
update-generated-protobuf-dockerized.sh Check protoc version strictly 2023-01-26 18:00:06 -05:00
update-generated-stable-metrics.sh
update-gofmt.sh Make update-gofmt use ls-files 2023-01-22 15:16:23 -08:00
update-golangci-lint-config.sh golangci-lint: suppress one issue, demote others to "hints" 2023-08-22 20:39:23 +02:00
update-import-aliases.sh
update-internal-modules.sh [KMSv2] pkcs11 reference implementation using SoftHSM 2023-09-29 16:57:26 +00:00
update-kustomize.sh Update kubectl kustomize to kyaml/v0.14.1, cmd/config/v0.11.1, api/v0.13.2, kustomize/v5.0.1 2023-03-14 11:40:28 -05:00
update-mocks.sh Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 12:46:32 -05:00
update-netparse-cve.sh Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 12:46:32 -05:00
update-openapi-spec.sh Capture discovery API output in test fixtures 2023-05-15 14:18:18 -04:00
update-translations.sh i18n: Fix bug where package-level variables are not translated. 2022-11-21 22:48:42 -05:00
update-vendor-licenses.sh Licensing: skip modules with fewer subdirs than mods 2023-01-03 16:48:35 +01:00
update-vendor.sh prep for go1.21: use -e in go list 2023-08-17 17:46:30 +05:30
update-yamlfmt.sh call kube::golang::setup_env before setting up worktree 2023-04-21 16:15:21 -07:00
verify-all.sh
verify-api-groups.sh Add discovery types 2022-10-19 17:27:25 +00:00
verify-boilerplate.sh
verify-cli-conventions.sh
verify-codegen.sh hack: move common "verify generated" shell code into function 2023-08-22 20:39:23 +02:00
verify-conformance-requirements.sh fix make verify (#115871) 2023-02-22 07:17:56 -08:00
verify-conformance-yaml.sh
verify-description.sh
verify-e2e-suites.sh e2e framework: track and report internal bugs 2023-10-10 18:15:46 +02:00
verify-e2e-test-ownership.sh declare and assign seperately in hack/verify-e2e-test-ownership.sh 2022-10-19 23:46:18 -07:00
verify-external-dependencies-version.sh Drop zeitgeist from tools go.mod 2023-05-17 08:37:53 -04:00
verify-fieldname-docs.sh Fix the name violation in apiextensions.k8s.io/v1,CustomResourceConversion, remove the failures file 2023-01-19 22:08:29 +08:00
verify-file-sizes.sh verify-file-sizes.sh: ensure that no large binary files get added 2023-10-26 20:08:09 +02:00
verify-flags-underscore.py use python3 in hack 2023-01-12 11:20:41 +08:00
verify-generated-docs.sh
verify-generated-stable-metrics.sh
verify-gofmt.sh
verify-golangci-lint-config.sh golangci-lint: suppress one issue, demote others to "hints" 2023-08-22 20:39:23 +02:00
verify-golangci-lint-pr-hints.sh hack: update golangci-lint verify scripts 2023-10-09 20:14:47 +02:00
verify-golangci-lint-pr.sh hack: update golangci-lint verify scripts 2023-10-09 20:14:47 +02:00
verify-golangci-lint.sh Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 12:46:32 -05:00
verify-govet-levee.sh Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 12:46:32 -05:00
verify-govulncheck.sh Bump govulncheck to 1.1.2 2024-07-03 17:06:44 +05:30
verify-import-aliases.sh
verify-import-boss.sh Restrict what imports get into code within test/e2e_node 2023-08-21 15:04:23 -04:00
verify-imports.sh
verify-internal-modules.sh hack: move common "verify generated" shell code into function 2023-08-22 20:39:23 +02:00
verify-licenses.sh call kube::golang::setup_env before setting up worktree 2023-04-21 16:15:21 -07:00
verify-mocks.sh hack: move common "verify generated" shell code into function 2023-08-22 20:39:23 +02:00
verify-netparse-cve.sh
verify-no-vendor-cycles.sh
verify-non-mutating-validation.sh
verify-openapi-docs-urls.sh Add a script to verify that URLs in API documentation are valid 2023-03-13 11:37:59 -07:00
verify-openapi-spec.sh Capture discovery API output in test fixtures 2023-05-15 14:18:18 -04:00
verify-pkg-names.sh remove unnecessary kube::golang::verify_go_version calls 2023-09-11 14:06:28 -07:00
verify-prerelease-lifecycle-tags.sh remove unnecessary kube::golang::verify_go_version calls 2023-09-11 14:06:28 -07:00
verify-prometheus-imports.sh kubelet: Force deleted pods can fail to move out of terminating 2023-03-08 22:03:51 -06:00
verify-publishing-bot.py update verify script to check deprecated fields 2023-09-25 21:37:40 +05:30
verify-readonly-packages.sh remove clearly unnecessary lingering BUILD file references 2022-10-04 16:47:25 -07:00
verify-shellcheck.sh Update shellcheck version (0.7.2 -> 0.8.0) and fix findings 2022-11-08 11:53:57 +01:00
verify-spelling.sh Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 12:46:32 -05:00
verify-staging-meta-files.sh
verify-test-code.sh e2e framework: deprecate gomega wrappers 2023-02-23 09:51:42 +01:00
verify-test-featuregates.sh Handle AllAlpha and AllBeta in SetFeatureGateDuringTest 2023-03-02 22:24:19 -05:00
verify-test-images.sh
verify-typecheck-providerless.sh
verify-typecheck.sh Remove generated file rules in make 2022-10-04 08:50:30 -07:00
verify-vendor-licenses.sh
verify-vendor.sh Improve vendor verification works for each staging repo 2023-01-10 09:30:47 -05:00
verify-yamlfmt.sh hack: move common "verify generated" shell code into function 2023-08-22 20:39:23 +02:00

Kubernetes hack GuideLines

This document describes how you can use the scripts from hack directory and gives a brief introduction and explanation of these scripts.

Overview

The hack directory contains many scripts that ensure continuous development of kubernetes, enhance the robustness of the code, improve development efficiency, etc. The explanations and descriptions of these scripts are helpful for contributors. For details, refer to the following guidelines.

Key scripts

  • verify-all.sh: This script is a vestigial redirection, Please do not add "real" logic. It is equivalent to make verify.
  • update-all.sh: This script is a vestigial redirection, Please do not add "real" logic. The true target of this makerule is hack/make-rules/update.sh.It is equivalent to make update.

Attention

Note that all scripts must be run from the Kubernetes root directory. We should run hack/verify-all.sh before submitting a PR and if anything fails run hack/update-all.sh.