mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Merge pull request #123893 from soltysh/openapi_schema_applygen
kube_codegen: expose applyconfig-openapi-schema flag for client generatio
This commit is contained in:
commit
17e427148b
@ -443,6 +443,7 @@ function kube::codegen::gen_client() {
|
|||||||
local applyconfig="false"
|
local applyconfig="false"
|
||||||
local applyconfig_subdir="applyconfiguration"
|
local applyconfig_subdir="applyconfiguration"
|
||||||
local applyconfig_external=""
|
local applyconfig_external=""
|
||||||
|
local applyconfig_openapi_schema=""
|
||||||
local watchable="false"
|
local watchable="false"
|
||||||
local listers_subdir="listers"
|
local listers_subdir="listers"
|
||||||
local informers_subdir="informers"
|
local informers_subdir="informers"
|
||||||
@ -488,6 +489,10 @@ function kube::codegen::gen_client() {
|
|||||||
applyconfig_external="$2"
|
applyconfig_external="$2"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
|
"--applyconfig-openapi-schema")
|
||||||
|
applyconfig_openapi_schema="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
"--with-watch")
|
"--with-watch")
|
||||||
watchable="true"
|
watchable="true"
|
||||||
shift
|
shift
|
||||||
@ -594,6 +599,7 @@ function kube::codegen::gen_client() {
|
|||||||
--output-dir "${out_dir}/${applyconfig_subdir}" \
|
--output-dir "${out_dir}/${applyconfig_subdir}" \
|
||||||
--output-pkg "${applyconfig_pkg}" \
|
--output-pkg "${applyconfig_pkg}" \
|
||||||
--external-applyconfigurations "${applyconfig_external}" \
|
--external-applyconfigurations "${applyconfig_external}" \
|
||||||
|
--openapi-schema "${applyconfig_openapi_schema}" \
|
||||||
"${input_pkgs[@]}"
|
"${input_pkgs[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user