chore(helm): Adding opereplay config map for
Installation agnostic version access. This is useful for db migration, especially when we install using argo, or other means Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
40b7aa1c78
commit
4df65c70ac
2 changed files with 34 additions and 0 deletions
10
scripts/helmcharts/openreplay/templates/configmap.yaml
Normal file
10
scripts/helmcharts/openreplay/templates/configmap.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: openreplay-version
|
||||
namespace: "{{ .Release.Namespace }}"
|
||||
annotations:
|
||||
"helm.sh/hook": post-install, post-upgrade
|
||||
"helm.sh/hook-weight": "-6" # Higher precidence, so the first the config map will get created.
|
||||
data:
|
||||
version: {{ .Chart.AppVersion }}
|
||||
|
|
@ -246,6 +246,12 @@ spec:
|
|||
containers:
|
||||
- name: postgres
|
||||
env:
|
||||
- name: OPENREPLAY_VERSION
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: openreplay-version
|
||||
key: version
|
||||
optional: true
|
||||
- name: FORCE_MIGRATION
|
||||
value: "{{ .Values.forceMigration }}"
|
||||
- name: PREVIOUS_APP_VERSION
|
||||
|
|
@ -292,6 +298,12 @@ spec:
|
|||
- name: minio
|
||||
image: bitnami/minio:2023.11.20
|
||||
env:
|
||||
- name: OPENREPLAY_VERSION
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: openreplay-version
|
||||
key: version
|
||||
optional: true
|
||||
{{- range $key, $val := .Values.global.env }}
|
||||
- name: {{ $key }}
|
||||
value: '{{ $val }}'
|
||||
|
|
@ -415,6 +427,12 @@ spec:
|
|||
- name: clickhouse
|
||||
image: clickhouse/clickhouse-server:22.12-alpine
|
||||
env:
|
||||
- name: OPENREPLAY_VERSION
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: openreplay-version
|
||||
key: version
|
||||
optional: true
|
||||
{{- range $key, $val := .Values.global.env }}
|
||||
- name: {{ $key }}
|
||||
value: '{{ $val }}'
|
||||
|
|
@ -450,6 +468,12 @@ spec:
|
|||
- name: kafka
|
||||
image: bitnami/kafka:2.6.0-debian-10-r30
|
||||
env:
|
||||
- name: OPENREPLAY_VERSION
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: openreplay-version
|
||||
key: version
|
||||
optional: true
|
||||
{{- range $key, $val := .Values.global.env }}
|
||||
- name: {{ $key }}
|
||||
value: '{{ $val }}'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue