Skip to content

Commit

Permalink
kube_codegen: expose applyconfig-openapi-schema flag for client gener…
Browse files Browse the repository at this point in the history
…ation

Kubernetes-commit: 933272d3333c0fff1c5fd3e01cf5383332fcca37
  • Loading branch information
soltysh authored and k8s-publishing-bot committed Mar 12, 2024
1 parent e1372fd commit 64318e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kube_codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 64318e9

Please sign in to comment.