kubernetes/hack
Kubernetes Prow Robot 0dcbebb27a
Merge pull request #139303 from tetianakh/gofmt
hack: use toolchain-specific gofmt for formatting checks
2026-06-13 01:44:56 +05:30
..
boilerplate Remove year from copyright header boilerplate 2025-10-23 16:50:13 -07:00
conformance
e2e-internal
gen-swagger-doc
jenkins Merge pull request #133759 from BenTheElder/integrationprocs 2026-02-06 11:06:36 +05:30
kube-api-linter Remove v1alpha2 API definitions 2026-05-22 12:50:19 +00:00
lib etcd: update etcd image to v3.7.0-rc.0 2026-06-01 20:29:57 -04:00
make-rules make-rules/test-cmd.sh: remove testing of cmd/kubeadm/test 2026-05-28 20:59:31 +02:00
testdata Promote agnhost e2e test image to 2.64.0 2026-06-10 14:18:35 +05:30
tools Add Prometheus metrics for KubeProxy failed loadbalancer operations 2026-06-09 20:30:36 +00:00
verify-flags
.descriptions_failures Add missing comments in k8s.io/api/core/v1 2024-11-07 18:42:33 -08:00
.import-aliases Remove v1alpha2 API definitions 2026-05-22 12:50:19 +00:00
.spelling_failures
_update-generated-proto-bindings-dockerized.sh Update protobindings scripts to drop gogo paths 2025-09-01 09:35:20 +02:00
_update-generated-protobuf-dockerized.sh
apidiff.sh apidiff: autodetect remote and default branch 2025-11-20 16:48:02 -08:00
benchmark-go.sh
build-cross.sh
build-go.sh
cherry_pick_pull.sh hack/cherry_pick_pull.sh: use 'gh' to download patches 2026-05-08 19:16:21 +02:00
dependency-unit-tests.conf test: move list of extra tests into separate file 2026-04-27 09:18:11 +02:00
dev-build-and-push.sh
dev-build-and-up.sh
dev-push-conformance.sh remove calls to kube::build::build_image and kube::build::copy_output 2025-10-13 09:47:24 -07:00
diff-protobuf.sh Add helper command for comparing protobuf files 2025-07-30 14:21:24 -04:00
e2e-node-test.sh
generate-docs.sh
get-build.sh
ginkgo-e2e.sh ginkgo-e2e.sh: support arguments in KUBE_E2E_TEST_ARGS env variable 2026-01-12 17:30:47 +01:00
golangci-hints.yaml Merge pull request #139560 from yongruilin/dv-custom-validation 2026-06-11 05:54:46 +05:30
golangci.yaml Merge pull request #139560 from yongruilin/dv-custom-validation 2026-06-11 05:54:46 +05:30
golangci.yaml.in Merge pull request #139560 from yongruilin/dv-custom-validation 2026-06-11 05:54:46 +05:30
grab-profiles.sh
install-etcd.sh install-ectd.sh: brace PATH and suggest user export 2025-03-13 11:23:53 -07:00
install-protoc.sh
lint-dependencies.sh
local-up-cluster.sh Merge pull request #138717 from pohly/dra-upgrade-downgrade-etcd 2026-05-04 17:19:40 +05:30
logcheck.conf chore: remove redundant comments 2026-05-06 09:35:48 +02:00
module-graph.sh
OWNERS emeritus spiffxp 2025-06-10 20:05:40 -07:00
pin-dependency.sh
print-workspace-status.sh
README.md
run-prometheus-on-etcd-scrapes.sh
serve-prom-scrapes.sh
test-go.sh
unwanted-dependencies.json Removing konnectivity-client from exception list. 2026-06-11 16:21:49 +00:00
update-all.sh
update-codegen.sh Wire DV for metav1.Condition 2026-05-29 02:52:30 +00:00
update-conformance-yaml.sh
update-featuregates.sh add utility for generating markdown for feature gates 2025-12-18 22:53:56 -05:00
update-generated-api-compatibility-data.sh
update-generated-docs.sh
update-generated-stable-metrics.sh add presubmit for metric naming 2026-04-21 01:03:31 +00:00
update-gofmt.sh Output error message to stderr 2026-06-08 15:37:50 +02:00
update-golangci-lint-config.sh golangci-lint: remove "strict" checking 2025-02-02 18:50:27 +01:00
update-import-aliases.sh
update-internal-modules.sh
update-kustomize.sh
update-metrics-documentation-list.sh add CI verification for metrics documentation list 2026-05-18 13:24:09 -07:00
update-mocks.sh Bump to mockery v3 2025-08-29 13:43:54 +02:00
update-netparse-cve.sh Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 13:01:59 -05:00
update-openapi-spec.sh Allow OpenAPI verification to pass both with and without strict alpha 2025-03-05 21:31:40 +00:00
update-owners-fmt.sh Rename hack/*-yamlfmt to -owners-fmt 2025-07-24 12:12:59 -07:00
update-tools.sh Add a tool bumping script 2026-05-12 11:55:37 +02:00
update-translations.sh
update-vendor-licenses.sh
update-vendor.sh Replace cmd/yamlfmt with k-sigs/yaml/yamlfmt 2025-07-24 12:11:04 -07:00
verify-all.sh
verify-api-groups.sh
verify-boilerplate.sh
verify-cli-conventions.sh
verify-codegen.sh
verify-conformance-requirements.sh
verify-conformance-yaml.sh
verify-deadcode-elimination.sh Re-enable deadcode-elimination check 2026-03-05 16:57:02 -05:00
verify-description.sh
verify-e2e-images.sh e2e: suppress or ignore init log output 2026-01-07 14:11:33 +01:00
verify-e2e-test-ownership.sh
verify-external-dependencies-version.sh
verify-featuregates.sh hack/verify-featuregates.sh: print failure information to stderr 2025-12-26 10:37:10 +01:00
verify-fieldname-docs.sh
verify-file-sizes.sh
verify-flags-underscore.py
verify-generated-docs.sh
verify-generated-stable-metrics.sh add presubmit for metric naming 2026-04-21 01:03:31 +00:00
verify-gofmt.sh Update hack/verify-gofmt.sh 2026-06-08 15:31:48 +02:00
verify-golangci-lint-config.sh hack: verify to verify-golangci-lint.sh 2025-03-10 14:37:13 +02:00
verify-golangci-lint-pr-hints.sh
verify-golangci-lint.sh Remove some unused bits of verify-golangci-lint.sh 2025-09-23 08:39:49 -04:00
verify-govulncheck.sh Merge pull request #132820 from dims/update-to-v1.1.4-for-golang.org/x/vuln/cmd/govulncheck 2025-07-08 20:01:33 -07:00
verify-import-aliases.sh
verify-import-boss.sh
verify-imports.sh
verify-internal-modules.sh
verify-licenses.sh Update allowed-thir-party-license-policy.md link 2025-12-11 17:10:35 +01:00
verify-metrics-documentation-list.sh add CI verification for metrics documentation list 2026-05-18 13:24:09 -07:00
verify-metrics-naming.sh add presubmit for metric naming 2026-04-21 01:03:31 +00:00
verify-mocks.sh
verify-netparse-cve.sh
verify-no-vendor-cycles.sh
verify-non-mutating-validation.sh
verify-openapi-docs-urls.sh
verify-openapi-spec.sh Allow OpenAPI verification to pass both with and without strict alpha 2025-03-05 21:31:40 +00:00
verify-owners-fmt.sh Rename hack/*-yamlfmt to -owners-fmt 2025-07-24 12:12:59 -07:00
verify-pkg-names.sh
verify-prerelease-lifecycle-tags.sh
verify-prometheus-imports.sh add presubmit for metric naming 2026-04-21 01:03:31 +00:00
verify-publishing-bot.sh Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 13:01:59 -05:00
verify-readonly-packages.sh
verify-shellcheck.sh disable selinux relabeling when mounting sourcedir to shellcheck 2025-06-11 15:35:56 -07:00
verify-spelling.sh dependencies: github.com/client9/misspell -> github.com/golangci/misspell 2025-04-28 15:44:04 +02:00
verify-staging-meta-files.sh
verify-test-code.sh Provide link with e2e guidelines when verity-test-code.sh fails 2024-10-29 13:07:05 +01:00
verify-test-featuregates.sh Record and require all kube-feature dependencies 2025-10-15 10:29:15 -07:00
verify-test-images.sh
verify-testing-import.sh
verify-typecheck.sh Fix flaky typecheck: enforce serial execution to prevent OOM 2026-01-09 10:40:43 +05:30
verify-vendor-licenses.sh
verify-vendor.sh

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.