From b979fb46e304a959f624fbb0418280a72dcccf9c Mon Sep 17 00:00:00 2001 From: JupterHub Bot Account <105740858+jupyterhub-bot@users.noreply.github.com> Date: Wed, 24 May 2023 06:14:11 +0000 Subject: [PATCH 1/2] Updates prometheus chart to 22.6.2 --- mybinder/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mybinder/Chart.yaml b/mybinder/Chart.yaml index aaca47004..5fcacbeaa 100644 --- a/mybinder/Chart.yaml +++ b/mybinder/Chart.yaml @@ -32,7 +32,7 @@ dependencies: # chart v11.16.9 maps to app v2.21.0 - 2020-12-06 # chart v12 requires Helm 3 - name: prometheus - version: "20.2.0" + version: "22.6.2" repository: https://prometheus-community.github.io/helm-charts condition: prometheus.enabled From f52efba8b3b5db81f2579dd58b923eef1d3dab60 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 24 May 2023 10:03:35 +0200 Subject: [PATCH 2/2] Temporary addition: preparation steps to upgrade prometheus --- deploy.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deploy.py b/deploy.py index dfe9e454d..9edf87466 100755 --- a/deploy.py +++ b/deploy.py @@ -158,6 +158,18 @@ def deploy(release, name=None): setup_certmanager() + print(BOLD + GREEN + "Starting prometheus chart upgrade preparation", flush=True) + kubectl_delete = [ + "kubectl", + "delete", + f"--namespace={name}", + "deploy,sts", + "-l", + ] + subprocess.check_call(kubectl_delete + ["app=prometheus"]) + subprocess.check_call(kubectl_delete + ["app.kubernetes.io/name=prometheus"]) + print(BOLD + GREEN + "SUCCESS: prometheus chart upgrade preparation", flush=True) + print(BOLD + GREEN + f"Starting helm upgrade for {release}" + NC, flush=True) helm = [ "helm",