Skip to content
Snippets Groups Projects
Verified Commit 0b0ffe11 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

update prometheus and helm apply it with force as per the upgrading...

update prometheus and helm apply it with force as per the upgrading instructions from version 5 to 6
parent 911a9430
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,25 @@
dest: '{{ data_directory }}/source/repos/local-storage'
version: '{{ git_local_storage_version }}'
- name: Apply helmfiles
# Force needed for upgrading from 5 to 6: https://github.com/helm/charts/tree/master/stable/prometheus-operator#upgrading-from-5xx-to-6xx
- name: Apply monitoring helmfile with force
tags:
- helmfile
environment:
- GRAFANA_ADMIN_PASSWORD: "{{ grafana_admin_password }}"
shell: |
set -e -x -o pipefail
/usr/local/bin/helmfile -b /usr/local/bin/helm -e oas \
-f {{ data_directory }}/source/helmfiles/helmfile.d/{{ item }}.yaml \
apply --suppress-secrets --args --force \
| sed 's/\x1B\[[0-9;]*[JKmsu]//g' \
>> {{ log_directory }}/helmfile.log
args:
executable: /bin/bash
with_items: "{{ helmfiles }}"
when: item is search("monitoring")
- name: Apply remaining helmfiles
tags:
- helmfile
environment:
......@@ -47,4 +65,4 @@
args:
executable: /bin/bash
with_items: "{{ helmfiles }}"
when: item is not search("cert-manager")
when: item is not search("cert-manager") and item is not search("monitoring")
......@@ -7,7 +7,7 @@ releases:
- name: "oas-{{ .Environment.Values.releaseName }}-prometheus"
namespace: "oas"
chart: "stable/prometheus-operator"
version: 5.15.0
version: 6.21.0
values:
- "../values/prometheus.yaml.gotmpl"
- "/etc/OpenAppStack/values/apps/prometheus.yaml.gotmpl"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment