diff --git a/pkg/k8s/tools/k8s-code-gen.sh b/pkg/k8s/tools/k8s-code-gen.sh index 06b44650e32..c10a32dc4aa 100755 --- a/pkg/k8s/tools/k8s-code-gen.sh +++ b/pkg/k8s/tools/k8s-code-gen.sh @@ -9,7 +9,7 @@ CODEGEN_PKG=$K8S_PKG/vendor/k8s.io/code-generator source "${CODEGEN_PKG}/kube_codegen.sh" -PLURAL_EXCEPTIONS="TracingPolicyNamespaced:TracingPoliciesNamespaced,PodInfo:PodInfo" +PLURAL_EXCEPTIONS=${1:-"TracingPolicyNamespaced:TracingPoliciesNamespaced,PodInfo:PodInfo"} kube::codegen::gen_client \ --with-watch \