Add lint rule support to kube_codegen and wire in all usages

Kubernetes-commit: aa0327fed4de752736b546ced709524d2950ffaa
This commit is contained in:
Joe Betz
2026-05-12 12:41:58 -04:00
committed by Kubernetes Publisher
parent cb5515b8a4
commit 658d6bbd90
+3
View File
@@ -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"