Skip to content

Commit 64318e9

Browse files
soltyshk8s-publishing-bot
authored andcommitted
kube_codegen: expose applyconfig-openapi-schema flag for client generation
Kubernetes-commit: 933272d3333c0fff1c5fd3e01cf5383332fcca37
1 parent e1372fd commit 64318e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

kube_codegen.sh

+6
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ function kube::codegen::gen_client() {
443443
local applyconfig="false"
444444
local applyconfig_subdir="applyconfiguration"
445445
local applyconfig_external=""
446+
local applyconfig_openapi_schema=""
446447
local watchable="false"
447448
local listers_subdir="listers"
448449
local informers_subdir="informers"
@@ -488,6 +489,10 @@ function kube::codegen::gen_client() {
488489
applyconfig_external="$2"
489490
shift 2
490491
;;
492+
"--applyconfig-openapi-schema")
493+
applyconfig_openapi_schema="$2"
494+
shift 2
495+
;;
491496
"--with-watch")
492497
watchable="true"
493498
shift
@@ -594,6 +599,7 @@ function kube::codegen::gen_client() {
594599
--output-dir "${out_dir}/${applyconfig_subdir}" \
595600
--output-pkg "${applyconfig_pkg}" \
596601
--external-applyconfigurations "${applyconfig_external}" \
602+
--openapi-schema "${applyconfig_openapi_schema}" \
597603
"${input_pkgs[@]}"
598604
fi
599605

0 commit comments

Comments
 (0)