Skip to content

Commit 96ffc2d

Browse files
authored
Merge pull request #2850 from k8s-infra-cherrypick-robot/cherry-pick-2849-to-release-1.6
[release-1.6] print k8s build env vars during CI
2 parents d451e0b + 50b5f45 commit 96ffc2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/ci-build-kubernetes.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,22 @@ setup() {
5757
pushd "${KUBE_ROOT}" && kube::version::get_version_vars && popd
5858
: "${KUBE_GIT_VERSION:?Environment variable empty or not defined.}"
5959
export KUBE_GIT_VERSION
60+
echo "using KUBE_GIT_VERSION=${KUBE_GIT_VERSION}"
6061

6162
# get the latest ci version for a particular release so that kubeadm is
6263
# able to pull existing images before being replaced by custom images
6364
major="$(echo "${KUBE_GIT_VERSION}" | ${GREP_BINARY} -Po "(?<=v)[0-9]+")"
6465
minor="$(echo "${KUBE_GIT_VERSION}" | ${GREP_BINARY} -Po "(?<=v${major}.)[0-9]+")"
6566
CI_VERSION="$(capz::util::get_latest_ci_version "${major}.${minor}")"
6667
export CI_VERSION
68+
echo "using CI_VERSION=${CI_VERSION}"
6769
export KUBERNETES_VERSION="${CI_VERSION}"
70+
echo "using KUBERNETES_VERSION=${KUBERNETES_VERSION}"
6871

6972
# Docker tags cannot contain '+'
7073
# ref: https://github.com/kubernetes/kubernetes/blob/5491484aa91fd09a01a68042e7674bc24d42687a/build/lib/release.sh#L345-L346
7174
export IMAGE_TAG="${KUBE_GIT_VERSION/+/_}"
75+
echo "using IMAGE_TAG=${IMAGE_TAG}"
7276
}
7377

7478
main() {

0 commit comments

Comments
 (0)