kubernetes/hack
2023-03-27 19:07:43 +02:00
..
boilerplate
conformance
e2e-internal
gen-swagger-doc
jenkins Defer builds to test-cmd and test-integration targets 2023-02-01 15:35:14 -05:00
lib Drop development dependencies from test targets 2023-03-22 10:38:42 -04:00
make-rules Add a script to verify that URLs in API documentation are valid 2023-03-13 11:37:59 -07:00
testdata
tools hack/tools: bump golangci-lint to v1.51.2 2023-02-22 07:54:20 +01: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 hack import aliases 2023-03-14 22:58:11 +00: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
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 e2e: revise complete report creation 2023-02-10 10:20:20 +01:00
golangci-strict.yaml golangci-lint: synchronize configs and add verification for that 2023-03-08 15:23:27 +01:00
golangci.yaml golangci-lint: synchronize configs and add verification for that 2023-03-08 15:23:27 +01: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
list-feature-tests.sh
local-up-cluster.sh Merge pull request #108838 from nckturner/webhook-framework 2023-03-14 20:28:14 -07:00
logcheck.conf hack/logcheck.conf: enforce contextual logging in kube-controller-manager 2023-03-14 19:17:31 +01:00
module-graph.sh
OWNERS
pin-dependency.sh
print-workspace-status.sh
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 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-all.sh
update-codegen.sh Skip vendor directory when removing generated files 2023-03-27 19:07:43 +02: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
update-import-aliases.sh
update-internal-modules.sh Add k8s.io/kms/internal/plugins/mock to internal modules 2023-03-14 16:31:54 -04: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 Fix update-mocks to use better globs 2023-01-23 09:20:12 -08:00
update-netparse-cve.sh
update-openapi-spec.sh
update-translations.sh
update-vendor-licenses.sh
update-vendor.sh
update-yamlfmt.sh
verify-all.sh
verify-api-groups.sh
verify-boilerplate.sh
verify-cli-conventions.sh
verify-codegen.sh
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-test-ownership.sh
verify-external-dependencies-version.sh
verify-fieldname-docs.sh
verify-flags-underscore.py
verify-generated-docs.sh
verify-generated-stable-metrics.sh
verify-gofmt.sh
verify-golangci-lint-config.sh golangci-lint: synchronize configs and add verification for that 2023-03-08 15:23:27 +01:00
verify-golangci-lint-pr.sh hack: prepare for strict golangci-lint in pull-verify-kubernetes 2023-03-07 19:38:32 +01:00
verify-golangci-lint.sh hack: prepare for strict golangci-lint in pull-verify-kubernetes 2023-03-07 19:38:32 +01:00
verify-govet-levee.sh verify-govet-levee.sh: optimize "go list" 2023-03-03 07:51:04 +01: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 Add a script to verify that URLs in API documentation are valid 2023-03-13 11:37:59 -07:00
verify-openapi-spec.sh
verify-pkg-names.sh
verify-prerelease-lifecycle-tags.sh
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
verify-readonly-packages.sh
verify-shellcheck.sh
verify-spelling.sh
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
verify-vendor-licenses.sh
verify-vendor.sh
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.