Merge pull request #123893 from soltysh/openapi_schema_applygen

kube_codegen: expose applyconfig-openapi-schema flag for client generatio
This commit is contained in:
Kubernetes Prow Robot 2024-04-18 01:04:30 -07:00 committed by GitHub
commit 17e427148b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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