Skip to content

Commit

Permalink
debug versions in install rancher monitoring e2e ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreLamarre committed Dec 15, 2023
1 parent 2e7fd73 commit 3c9eeee
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/e2e/scripts/install-monitoring.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ set -x

source $(dirname $0)/entry

HELM_REPO="rancher-charts"

cd $(dirname $0)/../../../..

helm repo add rancher-charts https://charts.rancher.io
helm repo add ${HELM_REPO} https://charts.rancher.io
helm repo update
helm upgrade --install --create-namespace -n cattle-monitoring-system rancher-monitoring-crd rancher-charts/rancher-monitoring-crd

echo "Installing rancher monitoring crd with :\n"

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

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

if [[ "${E2E_CI}" == "true" ]]; then
e2e_args="--set grafana.resources=null --set prometheus.prometheusSpec.resources=null --set alertmanager.alertmanagerSpec.resources=null"
Expand All @@ -29,7 +36,9 @@ case "${KUBERNETES_DISTRIBUTION_TYPE}" in
exit 1
esac

echo "Installing rancher monitoring with :\n"

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

echo "PASS: Rancher Monitoring has been installed"

0 comments on commit 3c9eeee

Please sign in to comment.