Skip to content

Commit 580cb86

Browse files
authored
store kots versions in s3 bucket with a 'v' prefix (#699)
1 parent 3ed87ba commit 580cb86

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

e2e/scripts/check-airgap-installation-state.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ main() {
8181
fi
8282

8383
echo "ensure that the admin console branding is available and has the DR label"
84-
if ! kubectl get cm -n kotsadm -l replicated.com/disaster-recovery=infra | grep -q kotsadm-application-metadata; then
84+
if ! kubectl get cm -n kotsadm kotsadm-application-metadata --show-labels | grep -q 'replicated.com/disaster-recovery=infra'; then
8585
echo "kotsadm-application-metadata configmap not found with the DR label"
8686
kubectl get cm -n kotsadm --show-labels
8787
kubectl get cm -n kotsadm kotsadm-application-metadata -o yaml

e2e/scripts/check-airgap-post-ha-state.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ main() {
106106
fi
107107

108108
echo "ensure that the admin console branding is available and has the DR label"
109-
if ! kubectl get cm -n kotsadm -l replicated.com/disaster-recovery=infra | grep -q kotsadm-application-metadata; then
109+
if ! kubectl get cm -n kotsadm kotsadm-application-metadata --show-labels | grep -q 'replicated.com/disaster-recovery=infra'; then
110110
echo "kotsadm-application-metadata configmap not found with the DR label"
111111
kubectl get cm -n kotsadm --show-labels
112112
kubectl get cm -n kotsadm kotsadm-application-metadata -o yaml

e2e/scripts/check-installation-state.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ main() {
9191
fi
9292

9393
echo "ensure that the admin console branding is available and has the DR label"
94-
if ! kubectl get cm -n kotsadm -l replicated.com/disaster-recovery=infra | grep -q kotsadm-application-metadata; then
94+
if ! kubectl get cm -n kotsadm kotsadm-application-metadata --show-labels | grep -q 'replicated.com/disaster-recovery=infra'; then
9595
echo "kotsadm-application-metadata configmap not found with the DR label"
9696
kubectl get cm -n kotsadm --show-labels
9797
kubectl get cm -n kotsadm kotsadm-application-metadata -o yaml

e2e/scripts/check-post-ha-state.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ main() {
7777
fi
7878

7979
echo "ensure that the admin console branding is available and has the DR label"
80-
if ! kubectl get cm -n kotsadm -l replicated.com/disaster-recovery=infra | grep -q kotsadm-application-metadata; then
80+
if ! kubectl get cm -n kotsadm kotsadm-application-metadata --show-labels | grep -q 'replicated.com/disaster-recovery=infra'; then
8181
echo "kotsadm-application-metadata configmap not found with the DR label"
8282
kubectl get cm -n kotsadm --show-labels
8383
kubectl get cm -n kotsadm kotsadm-application-metadata -o yaml

scripts/cache-files.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ function kotsbin() {
9393
local kots_version=
9494
kots_version=$(awk '/^ADMIN_CONSOLE_CHART_VERSION/{print $3}' Makefile)
9595
kots_version=$(echo "${kots_version}" | sed 's/\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/')
96+
kots_version=$(echo "v${kots_version}") #reinclude 'v' in kots version string
9697

9798
local kots_override=
9899
kots_override=$(awk '/^KOTS_BINARY_URL_OVERRIDE/{gsub("\"", "", $3); print $3}' Makefile)
@@ -112,8 +113,8 @@ function kotsbin() {
112113
curl --fail-with-body -L -o "kots_linux_amd64.tar.gz" "${kots_override}"
113114
else
114115
# download the kots binary from github
115-
echo "downloading kots binary from https://github.com/replicatedhq/kots/releases/download/v${kots_version}/kots_linux_amd64.tar.gz"
116-
curl --fail-with-body -L -o "kots_linux_amd64.tar.gz" "https://github.com/replicatedhq/kots/releases/download/v${kots_version}/kots_linux_amd64.tar.gz"
116+
echo "downloading kots binary from https://github.com/replicatedhq/kots/releases/download/${kots_version}/kots_linux_amd64.tar.gz"
117+
curl --fail-with-body -L -o "kots_linux_amd64.tar.gz" "https://github.com/replicatedhq/kots/releases/download/${kots_version}/kots_linux_amd64.tar.gz"
117118
fi
118119

119120
# decompress the bundle, as we only care about the binary and not the sbom/license/readme

0 commit comments

Comments
 (0)