mirror of
https://github.com/kubernetes/sample-controller.git
synced 2026-05-19 00:00:14 +08:00
Add lint rule support to kube_codegen and wire in all usages
Kubernetes-commit: aa0327fed4de752736b546ced709524d2950ffaa
This commit is contained in:
committed by
Kubernetes Publisher
parent
cb5515b8a4
commit
658d6bbd90
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user