diff --git a/staging/src/k8s.io/code-generator/kube_codegen.sh b/staging/src/k8s.io/code-generator/kube_codegen.sh index 1f3f83abadd..6ca83a6c5d3 100755 --- a/staging/src/k8s.io/code-generator/kube_codegen.sh +++ b/staging/src/k8s.io/code-generator/kube_codegen.sh @@ -443,6 +443,7 @@ function kube::codegen::gen_client() { local applyconfig="false" local applyconfig_subdir="applyconfiguration" local applyconfig_external="" + local applyconfig_openapi_schema="" local watchable="false" local listers_subdir="listers" local informers_subdir="informers" @@ -488,6 +489,10 @@ function kube::codegen::gen_client() { applyconfig_external="$2" shift 2 ;; + "--applyconfig-openapi-schema") + applyconfig_openapi_schema="$2" + shift 2 + ;; "--with-watch") watchable="true" shift @@ -594,6 +599,7 @@ function kube::codegen::gen_client() { --output-dir "${out_dir}/${applyconfig_subdir}" \ --output-pkg "${applyconfig_pkg}" \ --external-applyconfigurations "${applyconfig_external}" \ + --openapi-schema "${applyconfig_openapi_schema}" \ "${input_pkgs[@]}" fi