mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #122776 from thockin/codegen_use_long_flag_names
codegen: Use long flag names for clarity
This commit is contained in:
commit
59f25b5c2d
@ -185,8 +185,8 @@ function codegen::deepcopy() {
|
|||||||
./hack/run-in-gopath.sh "${gen_deepcopy_bin}" \
|
./hack/run-in-gopath.sh "${gen_deepcopy_bin}" \
|
||||||
--v "${KUBE_VERBOSE}" \
|
--v "${KUBE_VERBOSE}" \
|
||||||
--logtostderr \
|
--logtostderr \
|
||||||
-h "${BOILERPLATE_FILENAME}" \
|
--go-header-file "${BOILERPLATE_FILENAME}" \
|
||||||
-O "${output_file}" \
|
--output-file-base "${output_file}" \
|
||||||
--bounding-dirs "${PRJ_SRC_PATH},k8s.io/api" \
|
--bounding-dirs "${PRJ_SRC_PATH},k8s.io/api" \
|
||||||
$(printf -- " -i %s" "${tag_pkgs[@]}") \
|
$(printf -- " -i %s" "${tag_pkgs[@]}") \
|
||||||
"$@"
|
"$@"
|
||||||
@ -318,8 +318,8 @@ function codegen::prerelease() {
|
|||||||
./hack/run-in-gopath.sh "${gen_prerelease_bin}" \
|
./hack/run-in-gopath.sh "${gen_prerelease_bin}" \
|
||||||
--v "${KUBE_VERBOSE}" \
|
--v "${KUBE_VERBOSE}" \
|
||||||
--logtostderr \
|
--logtostderr \
|
||||||
-h "${BOILERPLATE_FILENAME}" \
|
--go-header-file "${BOILERPLATE_FILENAME}" \
|
||||||
-O "${output_file}" \
|
--output-file-base "${output_file}" \
|
||||||
$(printf -- " -i %s" "${tag_pkgs[@]}") \
|
$(printf -- " -i %s" "${tag_pkgs[@]}") \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
@ -387,8 +387,8 @@ function codegen::defaults() {
|
|||||||
./hack/run-in-gopath.sh "${gen_defaulter_bin}" \
|
./hack/run-in-gopath.sh "${gen_defaulter_bin}" \
|
||||||
--v "${KUBE_VERBOSE}" \
|
--v "${KUBE_VERBOSE}" \
|
||||||
--logtostderr \
|
--logtostderr \
|
||||||
-h "${BOILERPLATE_FILENAME}" \
|
--go-header-file "${BOILERPLATE_FILENAME}" \
|
||||||
-O "${output_file}" \
|
--output-file-base "${output_file}" \
|
||||||
$(printf -- " --extra-peer-dirs %s" "${tag_pkgs[@]}") \
|
$(printf -- " --extra-peer-dirs %s" "${tag_pkgs[@]}") \
|
||||||
$(printf -- " -i %s" "${tag_pkgs[@]}") \
|
$(printf -- " -i %s" "${tag_pkgs[@]}") \
|
||||||
"$@"
|
"$@"
|
||||||
@ -468,8 +468,8 @@ function codegen::conversions() {
|
|||||||
./hack/run-in-gopath.sh "${gen_conversion_bin}" \
|
./hack/run-in-gopath.sh "${gen_conversion_bin}" \
|
||||||
--v "${KUBE_VERBOSE}" \
|
--v "${KUBE_VERBOSE}" \
|
||||||
--logtostderr \
|
--logtostderr \
|
||||||
-h "${BOILERPLATE_FILENAME}" \
|
--go-header-file "${BOILERPLATE_FILENAME}" \
|
||||||
-O "${output_file}" \
|
--output-file-base "${output_file}" \
|
||||||
$(printf -- " --extra-peer-dirs %s" "${extra_peer_pkgs[@]}") \
|
$(printf -- " --extra-peer-dirs %s" "${extra_peer_pkgs[@]}") \
|
||||||
$(printf -- " --extra-dirs %s" "${tag_pkgs[@]}") \
|
$(printf -- " --extra-dirs %s" "${tag_pkgs[@]}") \
|
||||||
$(printf -- " -i %s" "${tag_pkgs[@]}") \
|
$(printf -- " -i %s" "${tag_pkgs[@]}") \
|
||||||
@ -564,10 +564,10 @@ function codegen::openapi() {
|
|||||||
./hack/run-in-gopath.sh "${gen_openapi_bin}" \
|
./hack/run-in-gopath.sh "${gen_openapi_bin}" \
|
||||||
--v "${KUBE_VERBOSE}" \
|
--v "${KUBE_VERBOSE}" \
|
||||||
--logtostderr \
|
--logtostderr \
|
||||||
-h "${BOILERPLATE_FILENAME}" \
|
--go-header-file "${BOILERPLATE_FILENAME}" \
|
||||||
-O "${output_file}" \
|
--output-file-base "${output_file}" \
|
||||||
-p "${PRJ_SRC_PATH}/${output_dir}" \
|
--output-package "${PRJ_SRC_PATH}/${output_dir}" \
|
||||||
-r "${report_file}" \
|
--report-filename "${report_file}" \
|
||||||
$(printf -- " -i %s" "${tag_pkgs[@]}") \
|
$(printf -- " -i %s" "${tag_pkgs[@]}") \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ function kube::codegen::gen_helpers() {
|
|||||||
done
|
done
|
||||||
"${gobin}/deepcopy-gen" \
|
"${gobin}/deepcopy-gen" \
|
||||||
-v "${v}" \
|
-v "${v}" \
|
||||||
-O zz_generated.deepcopy \
|
--output-file-base zz_generated.deepcopy \
|
||||||
--go-header-file "${boilerplate}" \
|
--go-header-file "${boilerplate}" \
|
||||||
--output-base "${out_base}" \
|
--output-base "${out_base}" \
|
||||||
"${input_args[@]}"
|
"${input_args[@]}"
|
||||||
@ -177,7 +177,7 @@ function kube::codegen::gen_helpers() {
|
|||||||
done
|
done
|
||||||
"${gobin}/defaulter-gen" \
|
"${gobin}/defaulter-gen" \
|
||||||
-v "${v}" \
|
-v "${v}" \
|
||||||
-O zz_generated.defaults \
|
--output-file-base zz_generated.defaults \
|
||||||
--go-header-file "${boilerplate}" \
|
--go-header-file "${boilerplate}" \
|
||||||
--output-base "${out_base}" \
|
--output-base "${out_base}" \
|
||||||
"${input_args[@]}"
|
"${input_args[@]}"
|
||||||
@ -215,7 +215,7 @@ function kube::codegen::gen_helpers() {
|
|||||||
done
|
done
|
||||||
"${gobin}/conversion-gen" \
|
"${gobin}/conversion-gen" \
|
||||||
-v "${v}" \
|
-v "${v}" \
|
||||||
-O zz_generated.conversion \
|
--output-file-base zz_generated.conversion \
|
||||||
--go-header-file "${boilerplate}" \
|
--go-header-file "${boilerplate}" \
|
||||||
--output-base "${out_base}" \
|
--output-base "${out_base}" \
|
||||||
"${extra_peer_args[@]:+"${extra_peer_args[@]}"}" \
|
"${extra_peer_args[@]:+"${extra_peer_args[@]}"}" \
|
||||||
@ -372,7 +372,7 @@ function kube::codegen::gen_openapi() {
|
|||||||
done
|
done
|
||||||
"${gobin}/openapi-gen" \
|
"${gobin}/openapi-gen" \
|
||||||
-v "${v}" \
|
-v "${v}" \
|
||||||
-O zz_generated.openapi \
|
--output-file-base zz_generated.openapi \
|
||||||
--go-header-file "${boilerplate}" \
|
--go-header-file "${boilerplate}" \
|
||||||
--output-base "${out_base}" \
|
--output-base "${out_base}" \
|
||||||
--output-package "${out_pkg_root}/${openapi_subdir}" \
|
--output-package "${out_pkg_root}/${openapi_subdir}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user