Skip to content

Commit 021222c

Browse files
committed
Use revision numbers from environment variables
1 parent ed22c64 commit 021222c

File tree

4 files changed

+63
-43
lines changed

4 files changed

+63
-43
lines changed

templates/test/ci/cluster-template-prow-dalec-custom-builds.yaml

Lines changed: 56 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/test/ci/prow-dalec-custom-builds/patches/azl3-machine-deployment.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858
# Install ca-certificates packages for Azure Linux
5959
tdnf install -y ca-certificates ca-certificates-legacy
6060
update-ca-trust
61-
61+
6262
# Follow Azure Linux 3 docs exactly - completely permissive for debugging
6363
# Change default policy to ACCEPT (as recommended by AZL3 docs)
6464
iptables -P INPUT ACCEPT
@@ -105,8 +105,9 @@ spec:
105105
106106
for BINARY in "$${BINARIES[@]}"; do
107107
echo "* downloading and extracting binary: $${BINARY} $${VERSION}"
108-
RPM_FILE="/tmp/$${BINARY}-$${VERSION}-1.$${OS_VERSION}.$${ARCH}.rpm"
109-
RPM_URL="$${BASE_URL}/$${BINARY}/$${VERSION}/$${OS_VERSION}/$${ARCH}/$${BINARY}-$${VERSION}-1.$${OS_VERSION}.$${ARCH}.rpm"
108+
REVISION=$${$${BINARY^^}_REVISION}
109+
RPM_FILE="/tmp/$${BINARY}-$${VERSION}-$${REVISION}.$${OS_VERSION}.$${ARCH}.rpm"
110+
RPM_URL="$${BASE_URL}/$${BINARY}/$${VERSION}/$${OS_VERSION}/$${ARCH}/$${BINARY}-$${VERSION}-$${REVISION}.$${OS_VERSION}.$${ARCH}.rpm"
110111
111112
echo "Downloading from: $${RPM_URL}"
112113
curl -L --retry 10 --retry-delay 5 "$${RPM_URL}" --output "$${RPM_FILE}"
@@ -117,7 +118,7 @@ spec:
117118
mkdir -p "$${TEMP_DIR}"
118119
cd "$${TEMP_DIR}"
119120
rpm2cpio "$${RPM_FILE}" | cpio -idmv
120-
121+
121122
# Move the binary to the correct location
122123
if [ -f "./usr/bin/$${BINARY}" ]; then
123124
mv "./usr/bin/$${BINARY}" "/usr/bin/$${BINARY}"

templates/test/ci/prow-dalec-custom-builds/patches/control-plane-custom-builds.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
OS_VERSION="ubuntu24.04"
1616
ARCH="amd64"
1717
for BINARY in "$${BINARIES[@]}"; do
18-
if [[ "$${BINARY}" == "kubelet" ]]; then
19-
DEB_VERSION="ubuntu24.04u1"
20-
else
21-
DEB_VERSION="ubuntu24.04u2"
22-
fi
18+
DEB_VERSION=$${$${BINARY^^}_REVISION}
2319
echo "* downloading and extracting binary: $${BINARY} $${VERSION} with deb version $${DEB_VERSION}"
2420
DEB_FILE="/tmp/$${BINARY}_$${VERSION}-$${DEB_VERSION}_$${ARCH}.deb"
2521
DEB_URL="$${BASE_URL}/$${BINARY}/$${VERSION}/$${OS_VERSION}/$${ARCH}/$${BINARY}_$${VERSION}-$${DEB_VERSION}_$${ARCH}.deb"

templates/test/ci/prow-dalec-custom-builds/patches/kubeadm-bootstrap-custom-builds.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
OS_VERSION="ubuntu24.04"
1616
ARCH="amd64"
1717
for BINARY in "$${BINARIES[@]}"; do
18-
if [[ "$${BINARY}" == "kubelet" ]]; then
19-
DEB_VERSION="ubuntu24.04u1"
20-
else
21-
DEB_VERSION="ubuntu24.04u2"
22-
fi
18+
DEB_VERSION=$${$${BINARY^^}_REVISION}
2319
echo "* downloading and extracting binary: $${BINARY} $${VERSION} with deb version $${DEB_VERSION}"
2420
DEB_FILE="/tmp/$${BINARY}_$${VERSION}-$${DEB_VERSION}_$${ARCH}.deb"
2521
DEB_URL="$${BASE_URL}/$${BINARY}/$${VERSION}/$${OS_VERSION}/$${ARCH}/$${BINARY}_$${VERSION}-$${DEB_VERSION}_$${ARCH}.deb"

0 commit comments

Comments
 (0)