From 72dfc8a2a554e86fa9c73e749b59765903798fd9 Mon Sep 17 00:00:00 2001 From: Maximiliano Osorio Date: Thu, 27 Jun 2024 08:50:32 -0400 Subject: [PATCH] fix: support arm data catalog db --- charts/mint/templates/datacatalog.yaml | 9 +++++++++ charts/mint/templates/hasura.yaml | 1 + charts/mint/values.yaml | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/charts/mint/templates/datacatalog.yaml b/charts/mint/templates/datacatalog.yaml index 1999a46..3429f66 100644 --- a/charts/mint/templates/datacatalog.yaml +++ b/charts/mint/templates/datacatalog.yaml @@ -84,10 +84,19 @@ spec: name: {{ include "mint.prefix" . }}-data-catalog-db-secrets key: password - name: data-catalog-db + + {{- if .Values.arm_support }} + {{- with .Values.components.data_catalog_db }} + image: "{{ .arm_image.repository }}:{{ .arm_image.tag | default $.Chart.AppVersion }}" + imagePullPolicy: {{ .arm_image.pullPolicy }} + {{- end }} + {{- else }} {{- with .Values.components.data_catalog_db }} image: "{{ .image.repository }}:{{ .image.tag | default $.Chart.AppVersion }}" imagePullPolicy: {{ .image.pullPolicy }} {{- end }} + {{- end }} + resources: {} volumeMounts: - mountPath: /var/lib/postgresql/data diff --git a/charts/mint/templates/hasura.yaml b/charts/mint/templates/hasura.yaml index bbf37d9..a5cf457 100644 --- a/charts/mint/templates/hasura.yaml +++ b/charts/mint/templates/hasura.yaml @@ -99,6 +99,7 @@ spec: imagePullPolicy: {{ .image.pullPolicy }} {{- end }} {{- end }} + resources: {} volumeMounts: - mountPath: /var/lib/postgresql/data diff --git a/charts/mint/values.yaml b/charts/mint/values.yaml index 6163dad..8e21915 100644 --- a/charts/mint/values.yaml +++ b/charts/mint/values.yaml @@ -93,6 +93,10 @@ components: tls: [] data_catalog_db: image: + repository: mintproject/data-catalog-db + tag: 8a6af95cae183320d596dc5219f2f76d1f234749 + pullPolicy: IfNotPresent + arm_image: repository: mintproject/data-catalog-db tag: 0e6b32b73228ef268065694ddf0aec47d28bf58e pullPolicy: IfNotPresent