kube_codegen: expose applyconfig-openapi-schema flag for client generation

This commit is contained in:
Maciej Szulik 2024-03-12 11:31:47 +01:00
parent 502d9434a4
commit 933272d333
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

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