From 658d6bbd909b1ce14747b0ac0da8d587dae985d9 Mon Sep 17 00:00:00 2001 From: Joe Betz Date: Tue, 12 May 2026 12:41:58 -0400 Subject: [PATCH] Add lint rule support to kube_codegen and wire in all usages Kubernetes-commit: aa0327fed4de752736b546ced709524d2950ffaa --- hack/update-codegen.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 40abaf4e..ccbf8766 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -27,6 +27,7 @@ THIS_PKG="k8s.io/sample-controller" kube::codegen::gen_helpers \ --boilerplate "${SCRIPT_ROOT}/hack/boilerplate.go.txt" \ + --lint-rules known-tags-only,require-explicit-disablement \ "${SCRIPT_ROOT}/pkg/apis" if [[ -n "${API_KNOWN_VIOLATIONS_DIR:-}" ]]; then @@ -52,8 +53,10 @@ kube::codegen::gen_client \ --output-dir "${SCRIPT_ROOT}/pkg/generated" \ --output-pkg "${THIS_PKG}/pkg/generated" \ --boilerplate "${SCRIPT_ROOT}/hack/boilerplate.go.txt" \ + --lint-rules known-tags-only,require-explicit-disablement \ "${SCRIPT_ROOT}/pkg/apis" kube::codegen::gen_register \ --boilerplate "${SCRIPT_ROOT}/hack/boilerplate.go.txt" \ + --lint-rules known-tags-only,require-explicit-disablement \ "${SCRIPT_ROOT}/pkg/apis"