diff --git a/staging/src/k8s.io/code-generator/kube_codegen.sh b/staging/src/k8s.io/code-generator/kube_codegen.sh index 82bef0dcd3d..48e0a0c63ab 100755 --- a/staging/src/k8s.io/code-generator/kube_codegen.sh +++ b/staging/src/k8s.io/code-generator/kube_codegen.sh @@ -451,6 +451,10 @@ function kube::codegen::gen_openapi() { # --applyconfig-name # An optional override for the leaf name of the generated "applyconfiguration" directory. # +# --applyconfig-externals +# An optional list of comma separated external apply configurations locations +# in .: form. +# # --with-watch # Enables generation of listers and informers for APIs which support WATCH. # @@ -461,7 +465,7 @@ function kube::codegen::gen_openapi() { # An optional override for the leaf name of the generated "informers" directory. # # --plural-exceptions -# An optional list of comma separated plural exception definitions in Type:PluralizedType form. +# An optional list of comma separated plural exception definitions in Type:PluralizedType form. # function kube::codegen::gen_client() { local in_pkg_root="" @@ -472,6 +476,7 @@ function kube::codegen::gen_client() { local clientset_versioned_name="versioned" local applyconfig="false" local applyconfig_subdir="applyconfiguration" + local applyconfig_external="" local watchable="false" local listers_subdir="listers" local informers_subdir="informers" @@ -517,6 +522,10 @@ function kube::codegen::gen_client() { applyconfig_subdir="$2" shift 2 ;; + "--applyconfig-externals") + applyconfig_external="$2" + shift 2 + ;; "--with-watch") watchable="true" shift @@ -624,6 +633,7 @@ function kube::codegen::gen_client() { --go-header-file "${boilerplate}" \ --output-base "${out_base}" \ --output-package "${out_pkg_root}/${applyconfig_subdir}" \ + --external-applyconfigurations "${applyconfig_external}" \ "${inputs[@]}" fi