Skip to content

Commit 7a4b8d4

Browse files
committed
More fixes for versions
Signed-off-by: Pete Wall <pete.wall@grafana.com>
1 parent fb30520 commit 7a4b8d4

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

.github/workflows/test-v1.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,15 @@ jobs:
176176
helm install alloy grafana/alloy -f "${GRAFANA_ALLOY_VALUES}" -n alloy --create-namespace --wait
177177
178178
# This prometheus instance is used pod annotation testing with https
179-
helm install prometheus-workload prometheus-community/prometheus --version ^2 -f "${PROMETHEUS_WORKLOAD_VALUES}" -n prometheus --create-namespace --timeout 10m --wait
179+
helm install prometheus-workload prometheus-community/prometheus --version ^25 -f "${PROMETHEUS_WORKLOAD_VALUES}" -n prometheus --create-namespace --timeout 10m --wait
180180
181181
# Deploy the Prometheus Operator CRDs, since we want to deploy Loki with a ServiceMonitor later
182182
helm install prom-crds prometheus-community/prometheus-operator-crds --wait
183183
184184
- name: Deploy Prometheus
185185
if: (steps.list-changed.outputs.changed == 'true') || (contains(github.event.pull_request.labels.*.name, 'full_test_required'))
186186
run: |
187-
helm install prometheus prometheus-community/prometheus --version ^2 -f "${PROMETHEUS_VALUES}" -n prometheus --create-namespace --timeout 10m --wait
187+
helm install prometheus prometheus-community/prometheus --version ^25 -f "${PROMETHEUS_VALUES}" -n prometheus --create-namespace --timeout 10m --wait
188188
189189
- name: Deploy Loki
190190
if: (steps.list-changed.outputs.changed == 'true') || (contains(github.event.pull_request.labels.*.name, 'full_test_required'))

charts/k8s-monitoring/tests/integration/auth/test-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ deployments:
66
type: helm
77
repo: https://prometheus-community.github.io/helm-charts
88
chart: prometheus
9-
version: ^2
9+
version: ^25
1010
namespace: prometheus
1111
valuesFile: configs/prometheus.yaml
1212
- name: passwords

charts/k8s-monitoring/tests/integration/auto-instrumentation/test-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ deployments:
66
type: helm
77
repo: https://prometheus-community.github.io/helm-charts
88
chart: prometheus
9-
version: ^2
9+
version: ^25
1010
namespace: prometheus
1111
valuesFile: configs/prometheus.yaml
1212
- name: loki

charts/k8s-monitoring/tests/integration/cluster-monitoring/test-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ deployments:
1414
type: helm
1515
repo: https://prometheus-community.github.io/helm-charts
1616
chart: prometheus
17-
version: ^2
17+
version: ^25
1818
namespace: prometheus
1919
valuesFile: configs/prometheus.yaml
2020
- name: loki

charts/k8s-monitoring/tests/integration/control-plane-monitoring/test-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ deployments:
88
type: helm
99
repo: https://prometheus-community.github.io/helm-charts
1010
chart: prometheus
11-
version: ^2
11+
version: ^25
1212
namespace: prometheus
1313
valuesFile: configs/prometheus.yaml
1414
- name: loki

charts/k8s-monitoring/tests/integration/integration-cert-manager/test-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ deployments:
66
type: helm
77
repo: https://prometheus-community.github.io/helm-charts
88
chart: prometheus
9-
version: ^2
9+
version: ^25
1010
namespace: prometheus
1111
valuesFile: configs/prometheus.yaml
1212
- name: cert-manager

charts/k8s-monitoring/tests/integration/integration-mysql/test-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ deployments:
66
type: helm
77
repo: https://prometheus-community.github.io/helm-charts
88
chart: prometheus
9-
version: ^2
9+
version: ^25
1010
namespace: prometheus
1111
valuesFile: configs/prometheus.yaml
1212

scripts/run-integration-test.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ for ((i=0; i<deploymentCount; i++)); do
7979
elif [ -n "${manifestFile}" ]; then
8080
envsubst < "${TEST_DIRECTORY}/${manifestFile}" | kubectl apply ${namespaceArg} -f -
8181
else
82-
echo "No URL or file specified for manifest prerequisite \"${name}\""
82+
echo "No URL or file specified for manifest deployment \"${name}\""
8383
exit 1
8484
fi
8585

@@ -89,9 +89,9 @@ for ((i=0; i<deploymentCount; i++)); do
8989
if [ -n "${helmRepo}" ]; then helmRepoArg="--repo ${helmRepo}"; else helmRepoArg=""; fi
9090
helmChart=$(yq -r ".deployments[$i].chart // \"\"" "${testManifest}")
9191
helmChartPath=$(yq -r ".deployments[$i].chartPath // \"\"" "${testManifest}")
92-
prereqVersion=$(yq -r ".prerequisites[$i].version // \"\"" "${testManifest}")
93-
prereqVersionArg=""
94-
if [ -n "${prereqVersion}" ]; then prereqVersionArg="--version ${prereqVersion}"; else prereqVersionArg=""; fi
92+
version=$(yq -r ".deployments[$i].version // \"\"" "${testManifest}")
93+
versionArg=""
94+
if [ -n "${version}" ]; then versionArg="--version ${version}"; else versionArg=""; fi
9595
helmValues="$(yq -r ".deployments[$i].values // \"\"" "${testManifest}")"
9696
helmValuesFile="$(yq -r ".deployments[$i].valuesFile // \"\"" "${testManifest}")"
9797
helmTest="$(yq -r ".deployments[$i].test // \"false\"" "${testManifest}")"
@@ -101,13 +101,13 @@ for ((i=0; i<deploymentCount; i++)); do
101101
fi
102102

103103
if [ -n "${helmValuesFile}" ]; then
104-
helm upgrade --install "${name}" ${namespaceArg} --create-namespace ${helmRepoArg} "${helmChart}" ${prereqVersionArg} -f "${TEST_DIRECTORY}/${helmValuesFile}" --hide-notes --wait
104+
helm upgrade --install "${name}" ${namespaceArg} --create-namespace ${helmRepoArg} "${helmChart}" ${versionArg} -f "${TEST_DIRECTORY}/${helmValuesFile}" --hide-notes --wait
105105
elif [ -n "${helmChart}" ]; then
106106
echo "${helmValues}" > temp-values.yaml
107-
helm upgrade --install "${name}" ${namespaceArg} --create-namespace ${helmRepoArg} "${helmChart}" ${prereqVersionArg} -f temp-values.yaml --hide-notes --wait
107+
helm upgrade --install "${name}" ${namespaceArg} --create-namespace ${helmRepoArg} "${helmChart}" ${versionArg} -f temp-values.yaml --hide-notes --wait
108108
rm temp-values.yaml
109109
else
110-
helm upgrade --install "${name}" ${namespaceArg} --create-namespace --repo "${helmRepo}" "${helmChart}" ${prereqVersionArg} --hide-notes --wait
110+
helm upgrade --install "${name}" ${namespaceArg} --create-namespace --repo "${helmRepo}" "${helmChart}" ${versionArg} --hide-notes --wait
111111
fi
112112

113113
if [ "${helmTest}" == "true" ]; then

0 commit comments

Comments
 (0)