mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07: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_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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user