Skip to content

Commit 8ab98b8

Browse files
alexandreLamarremallardduck
authored andcommitted
e2e(ci): add helm debug logs for monitoring install
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
1 parent e6849f3 commit 8ab98b8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/e2e/scripts/install-monitoring.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ helm repo add ${HELM_REPO} $HELM_REPO_URL
2121
helm repo update
2222

2323
echo "Create required \`cattle-fleet-system\` namespace"
24-
kubectl create namespace cattle-fleet-system
24+
kubectl create namespace cattle-fleet-system 2>/dev/null || true
2525

26-
echo "Installing rancher monitoring crd with :\n"
26+
echo "Installing rancher monitoring crd with :"
2727

2828
helm search repo ${HELM_REPO}/rancher-monitoring-crd --versions --max-col-width=0 | head -n 2
2929

3030
helm upgrade --install --create-namespace -n cattle-monitoring-system ${RANCHER_MONITORING_VERSION_HELM_ARGS} rancher-monitoring-crd ${HELM_REPO}/rancher-monitoring-crd
3131

32+
echo "Checking installed crd version info:"
33+
helm list -n cattle-monitoring-system
34+
3235
if [[ "${E2E_CI}" == "true" ]]; then
3336
e2e_args="--set grafana.resources=null --set prometheus.prometheusSpec.resources=null --set alertmanager.alertmanagerSpec.resources=null"
3437
fi
@@ -48,9 +51,12 @@ case "${KUBERNETES_DISTRIBUTION_TYPE}" in
4851
exit 1
4952
esac
5053

51-
echo "Installing rancher monitoring with :\n"
54+
echo "Installing rancher monitoring with :"
5255

5356
helm search repo ${HELM_REPO}/rancher-monitoring --versions --max-col-width=0 | head -n 2
5457
helm upgrade --install --create-namespace -n cattle-monitoring-system rancher-monitoring ${cluster_args} ${e2e_args} ${RANCHER_HELM_ARGS} ${HELM_REPO}/rancher-monitoring
5558

59+
echo "Checking installed rancher monitoring versions :"
60+
helm list -n cattle-monitoring-system
61+
5662
echo "PASS: Rancher Monitoring has been installed"

0 commit comments

Comments
 (0)