mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 14:23:37 +00:00
Codegen: easier to read logs for subproject output
This commit is contained in:
parent
bbbb695060
commit
73eb7c0930
@ -881,6 +881,12 @@ function codegen::informers() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function indent() {
|
||||||
|
while read -r X; do
|
||||||
|
echo " ${X}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
function codegen::subprojects() {
|
function codegen::subprojects() {
|
||||||
# Call generation on sub-projects.
|
# Call generation on sub-projects.
|
||||||
local subs=(
|
local subs=(
|
||||||
@ -896,8 +902,9 @@ function codegen::subprojects() {
|
|||||||
local codegen
|
local codegen
|
||||||
codegen="$(pwd)/vendor/k8s.io/code-generator"
|
codegen="$(pwd)/vendor/k8s.io/code-generator"
|
||||||
for sub in "${subs[@]}"; do
|
for sub in "${subs[@]}"; do
|
||||||
|
kube::log::status "Generating code for subproject ${sub}"
|
||||||
pushd "${sub}" >/dev/null
|
pushd "${sub}" >/dev/null
|
||||||
CODEGEN_PKG="${codegen}" ./hack/update-codegen.sh
|
CODEGEN_PKG="${codegen}" ./hack/update-codegen.sh > >(indent) 2> >(indent >&2)
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user