kubernetes/hack
Kubernetes Prow Robot d4b49be81a
Merge pull request #105300 from nckturner/ccm-flags
Allow cloud controller manager flags to be set in ./hack/local-up-cluster.sh
2022-02-01 23:02:21 -08:00
..
boilerplate hack/boilerplate: Tolerate new build tag format (//go:build) 2021-08-24 15:47:49 -04:00
conformance replace ioutil with io and os for hack 2021-10-30 14:44:41 +08:00
e2e-internal hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
gen-swagger-doc
jenkins pull-kubernetes-update ci job needs etcd installed 2022-01-24 16:41:52 -05:00
lib Merge pull request #107386 from ZeusPerez/fix-kubetest-errors-when-executing-local-provider 2022-01-31 19:56:17 -08:00
make-rules Clean up logic for deprecated flag --container-runtime in scripts 2022-01-20 11:19:08 +02:00
testdata Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
tools update hack/tools to pull latest logcheck 2021-10-05 15:55:58 +05:30
verify-flags Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
.descriptions_failures Add missing comments in APF API types 2021-06-25 00:27:40 -04:00
.import-aliases move pkg/util/node to component-helpers/node/util (#105347) 2021-11-12 07:52:27 -08:00
.spelling_failures
.structured_logging migrated schedular to structured logging 2021-11-12 13:42:12 +05:30
benchmark-go.sh
build-cross.sh
build-go.sh
cherry_pick_pull.sh Add release note block to cherry-pick script 2021-07-28 14:46:05 -07:00
dev-build-and-push.sh
dev-build-and-up.sh
dev-push-conformance.sh Update references to test/conformance/image 2021-07-23 11:26:54 -04:00
e2e-node-test.sh
generate-docs.sh
get-build.sh cluster,hack: Use community infra GCS bucket for retrieving CI builds 2021-07-03 17:04:54 -04:00
ginkgo-e2e.sh Clean up logic for deprecated flag --container-runtime in scripts 2022-01-20 11:19:08 +02:00
grab-profiles.sh Fix exit code check in hack/grab-profiles.sh 2021-05-17 14:47:05 +08:00
install-etcd.sh
lint-dependencies.sh add update-unwanted-dependencies.sh to track unwanted dependencies 2021-09-17 13:21:38 +08:00
list-feature-tests.sh
local-up-cluster.sh Allow cloud controller manager flags to be set 2022-01-31 05:00:38 +00:00
module-graph.sh
OWNERS OWNERS cleanup - Jan 2021 Week 1 2022-01-10 08:14:29 -05:00
pin-dependency.sh pin-dependency.sh: enhance forking of a dependency 2021-09-14 11:30:17 +02:00
print-workspace-status.sh update print-workspace-status.sh comment 2021-03-07 12:47:37 -08:00
README.md
run-in-gopath.sh
run-prometheus-on-etcd-scrapes.sh Add serving of scrapes as Prometheus metrics 2021-11-08 15:28:05 -05:00
serve-prom-scrapes.sh Add serving of scrapes as Prometheus metrics 2021-11-08 15:28:05 -05:00
test-go.sh
test-integration.sh
unwanted-dependencies.json use reference as we cannot distinguishing direct/indirect with go mod graph 2021-09-20 22:14:34 +08:00
update-all.sh
update-codegen.sh Add extract apply function generation 2021-03-10 06:13:51 -08:00
update-conformance-yaml.sh port conformance yaml generation to hack 2021-02-28 00:54:54 -08:00
update-generated-api-compatibility-data.sh Update testdata generation command 2021-05-03 08:53:30 -04:00
update-generated-device-plugin-dockerized.sh
update-generated-device-plugin.sh
update-generated-docs.sh
update-generated-kms-dockerized.sh fixing scripts from https://github.com/google/protobuf/releases to https://github.com/protocolbuffers/protobuf/releases 2021-07-29 02:24:39 +05:30
update-generated-kms.sh
update-generated-kubelet-plugin-registration-dockerized.sh
update-generated-kubelet-plugin-registration.sh
update-generated-pod-resources-dockerized.sh
update-generated-pod-resources.sh
update-generated-protobuf-dockerized.sh fixing scripts from https://github.com/google/protobuf/releases to https://github.com/protocolbuffers/protobuf/releases 2021-07-29 02:24:39 +05:30
update-generated-protobuf.sh
update-generated-runtime-dockerized.sh fixing scripts from https://github.com/google/protobuf/releases to https://github.com/protocolbuffers/protobuf/releases 2021-07-29 02:24:39 +05:30
update-generated-runtime.sh
update-generated-stable-metrics.sh
update-generated-swagger-docs.sh
update-gofmt.sh
update-import-aliases.sh
update-internal-modules.sh
update-mocks.sh Added update and verify scripts for automated mock generation 2021-09-03 17:40:11 +00:00
update-netparse-cve.sh update and verify netparse 2021-08-20 10:42:09 +02:00
update-openapi-spec.sh support removal of files by the ./hack/update-openapi-spec.sh 2021-12-16 18:47:56 +00:00
update-translations.sh fix translations location in update-translations.sh 2021-07-07 20:01:25 +02:00
update-vendor-licenses.sh update license gathering script for forked code 2021-07-08 07:48:19 -04:00
update-vendor.sh Update golang.org/x/time/rate (#104014) 2021-07-29 16:13:38 -07:00
update-yamlfmt.sh Cleanup owners files to make parsing automatable 2021-12-09 21:31:03 -05: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 port conformance yaml generation to hack 2021-02-28 00:54:54 -08:00
verify-description.sh hack/verify-description.sh: correctly look for versioned API types 2021-03-02 21:50:40 +05:30
verify-e2e-test-ownership.sh hack/verify: add verify-e2e-test-ownership.sh 2021-03-17 16:47:17 -04:00
verify-external-dependencies-version.sh use sed to drop escape codes from zeitgeist output 2021-03-04 14:59:52 -08:00
verify-flags-underscore.py
verify-generated-device-plugin.sh
verify-generated-docs.sh
verify-generated-files-remake.sh Always pass HEAD to worktree 2021-10-27 15:43:48 -07:00
verify-generated-files.sh
verify-generated-kms.sh
verify-generated-kubelet-plugin-registration.sh
verify-generated-pod-resources.sh
verify-generated-protobuf.sh
verify-generated-runtime.sh
verify-generated-stable-metrics.sh
verify-generated-swagger-docs.sh
verify-gofmt.sh cleanup verify-gofmt.sh 2021-03-07 12:51:33 -08:00
verify-golangci-lint.sh use golangci-lint and remove legacy verify-staticcheck.sh 2021-11-17 13:58:53 +01:00
verify-govet-levee.sh
verify-govet.sh
verify-import-aliases.sh
verify-import-boss.sh
verify-imports.sh
verify-internal-modules.sh
verify-linkcheck.sh
verify-mocks.sh Added update and verify scripts for automated mock generation 2021-09-03 17:40:11 +00:00
verify-netparse-cve.sh update and verify netparse 2021-08-20 10:42:09 +02:00
verify-no-vendor-cycles.sh
verify-non-mutating-validation.sh add verify script to catch most validation mutations 2021-10-08 14:37:55 -04:00
verify-openapi-spec.sh Generate openapi v3 static files 2021-11-16 17:38:54 -08:00
verify-pkg-names.sh
verify-prerelease-lifecycle-tags.sh Fix error path in file /verify-prerelease-lifecycle-tags.sh. 2021-03-06 15:32:07 +08:00
verify-prometheus-imports.sh remove DynamicKubeletConfig logic from kubelet 2022-01-19 22:38:04 +00:00
verify-publishing-bot.py
verify-readonly-packages.sh
verify-shellcheck.sh Fix shellcheck output streams 2021-10-14 15:53:47 +03:00
verify-spelling.sh
verify-staging-meta-files.sh
verify-structured-logging.sh update hack/verify-structured-logging.sh 2021-10-05 17:50:05 +05:30
verify-test-code.sh
verify-test-featuregates.sh
verify-test-images.sh
verify-typecheck-providerless.sh providerless tag for client-go auth plugins 2021-03-28 20:07:59 -04:00
verify-typecheck.sh
verify-vendor-licenses.sh
verify-vendor.sh
verify-yamlfmt.sh Cleanup owners files to make parsing automatable 2021-12-09 21:31:03 -05: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.