kubernetes/hack
Davanum Srinivas 637bf55cbc
bump golang.org/x/vuln/cmd/govulncheck to v1.1.4
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-07-08 13:48:26 -04:00
..
boilerplate
conformance
e2e-internal
gen-swagger-doc
jenkins hack: fix KUBE_RACE in benchmark-dockerized.sh 2025-06-05 15:08:35 +02:00
kube-api-linter Add kube-api-linter plugin to golangci-lint 2025-05-16 16:04:15 +01:00
lib Merge pull request #132284 from ArkaSaha30/bump-etcd-3.6.1 2025-06-30 11:00:35 -07:00
make-rules chore: Remove vet target and associated script from Makefile and hack directory 2025-06-25 17:39:14 +00:00
testdata kubectl debug: Display a warning message that the debug container's capabilities may not work with a non-root user (#127696) 2025-03-19 00:50:30 -07:00
tools Add linter to report on unsorted feature gates 2025-06-27 11:05:13 -04:00
verify-flags
.descriptions_failures Add missing comments in k8s.io/api/core/v1 2024-11-07 18:42:33 -08:00
.import-aliases
.spelling_failures
_update-generated-proto-bindings-dockerized.sh
_update-generated-protobuf-dockerized.sh
apidiff.sh chore: Update apidiff.sh script description 2024-12-16 13:44:48 -08:00
benchmark-go.sh
build-cross.sh
build-go.sh
cherry_pick_pull.sh Add release notes to the body of the pull request on create cherry-pick. 2024-08-26 20:58:51 +03:00
dev-build-and-push.sh
dev-build-and-up.sh
dev-push-conformance.sh
e2e-node-test.sh
generate-docs.sh
get-build.sh
ginkgo-e2e.sh hack/ginkgo-e2e.sh: fix misplaced brackets 2025-03-26 12:10:23 +01:00
golangci-hints.yaml Add linter to report on unsorted feature gates 2025-06-27 11:05:13 -04:00
golangci.yaml Add linter to report on unsorted feature gates 2025-06-27 11:05:13 -04:00
golangci.yaml.in Add linter to report on unsorted feature gates 2025-06-27 11:05:13 -04:00
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 Add guard for dependencies recursively depending on kubernetes or staging modules 2024-09-04 16:58:04 -04:00
list-feature-tests.sh
local-up-cluster.sh hack/local-up-cluster.sh: remove kubelet --cloud-config 2025-05-19 09:20:54 +02:00
logcheck.conf Migrate pkg/kubelet/status to contextual logging 2025-03-20 21:58:14 +08: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 Remove gnostic-models gopkg.in/yaml.v3 unwanted dependency 2025-07-01 15:56:40 +00:00
update-all.sh
update-codegen.sh update-codegen.sh: automatically install protoc 2025-04-24 22:54:09 -07:00
update-conformance-yaml.sh
update-featuregates.sh feat: Refactors featuregate lifecycle management script 2025-03-13 21:57:21 +00:00
update-generated-api-compatibility-data.sh
update-generated-docs.sh
update-generated-stable-metrics.sh
update-gofmt.sh
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 Simplify update-vendor.sh to use go work sync 2024-10-10 17:58:54 -04:00
update-mocks.sh Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 13:01:59 -05: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-translations.sh
update-vendor-licenses.sh
update-vendor.sh Drop self-referencing replace directives 2024-10-17 15:51:15 -04:00
update-yamlfmt.sh
verify-all.sh
verify-api-groups.sh
verify-api-lint.sh Implement validation-gen lint for CI 2025-03-21 08:20:04 -07:00
verify-boilerplate.sh
verify-cli-conventions.sh
verify-codegen.sh
verify-conformance-requirements.sh
verify-conformance-yaml.sh
verify-deadcode-elimination.sh add script for verifying dead code elimination 2025-06-17 03:35:12 +00:00
verify-description.sh
verify-e2e-images.sh verify scripts: preserve exit code 2025-05-14 21:23:52 -07:00
verify-e2e-test-ownership.sh
verify-external-dependencies-version.sh update zeitgeist to v0.5.4 2024-10-21 09:57:12 +02:00
verify-featuregates.sh feat: Refactors featuregate lifecycle management script 2025-03-13 21:57:21 +00:00
verify-fieldname-docs.sh
verify-file-sizes.sh
verify-flags-underscore.py
verify-generated-docs.sh
verify-generated-stable-metrics.sh
verify-gofmt.sh
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-pr.sh
verify-golangci-lint.sh Add linter to report on unsorted feature gates 2025-06-27 11:05:13 -04:00
verify-govulncheck.sh bump golang.org/x/vuln/cmd/govulncheck to v1.1.4 2025-07-08 13:48:26 -04:00
verify-import-aliases.sh
verify-import-boss.sh
verify-imports.sh
verify-internal-modules.sh
verify-licenses.sh
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-pkg-names.sh
verify-prerelease-lifecycle-tags.sh enforce that GA apis also have lifecycle tags 2024-05-21 13:27:01 -07:00
verify-prometheus-imports.sh
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 Add linter to report on unsorted feature gates 2025-06-27 11:05:13 -04:00
verify-test-images.sh
verify-testing-import.sh hack: configure Go environments where necessary 2024-09-26 23:32:33 +02:00
verify-typecheck.sh Fix for typecheck doesn't notice compile errors in test files 2024-07-04 15:01:41 -04:00
verify-vendor-licenses.sh
verify-vendor.sh Simplify update-vendor.sh to use go work sync 2024-10-10 17:58:54 -04:00
verify-yamlfmt.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.