From 982c7a758f4a58edead84a477355e33574aa5277 Mon Sep 17 00:00:00 2001 From: Keresztes Bajnok Date: Thu, 26 Sep 2024 11:09:58 +0200 Subject: [PATCH] Support overriding minio mc image in minio.yaml template. --- charts/airbyte/README.md | 5 ++++- charts/airbyte/templates/minio.yaml | 2 +- charts/airbyte/values.yaml | 10 ++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/charts/airbyte/README.md b/charts/airbyte/README.md index e844777e3a0..d0512a47f38 100644 --- a/charts/airbyte/README.md +++ b/charts/airbyte/README.md @@ -235,7 +235,10 @@ Helm chart to deploy airbyte | metrics.tolerations | list | `[]` | Tolerations for metrics-reporter pod assignment, see https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ | | minio.affinity | object | `{}` | Affinity and anti-affinity for minio pod assignment, see https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity | | minio.image.repository | string | `"minio/minio"` | Minio image used by Minio helm chart | -| minio.image.tag | string | `"RELEASE.2023-11-20T22-40-07Z"` | Minio tag image | +| minio.image.tag | string | `"RELEASE.2023-11-20T22-40-07Z"` | Minio tag image + +| minio.mc.image.repository | string | `"minio/mc"` | Minio Client image used by Minio helm chart | +| minio.mc.image.tag | string | `"latest"` | Minio Client tag image | | | minio.nodeSelector | object | `{}` | Node labels for pod assignment, see https://kubernetes.io/docs/user-guide/node-selection/ # | | minio.storage.volumeClaimValue | string | `"500Mi"` | | | minio.tolerations | list | `[]` | Tolerations for minio pod assignment, see https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ # | diff --git a/charts/airbyte/templates/minio.yaml b/charts/airbyte/templates/minio.yaml index 89a35e0d252..3aa921030fa 100644 --- a/charts/airbyte/templates/minio.yaml +++ b/charts/airbyte/templates/minio.yaml @@ -122,7 +122,7 @@ spec: fsGroup: 1000 containers: - name: minio-mc - image: airbyte/mc + image: "{{ .Values.minio.mc.image.repository }}:{{ .Values.minio.mc.image.tag }}" command: ["/bin/sh", "-c", "until (/usr/bin/mc config host add myminio $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY) do echo '...waiting...' && sleep 1; done; /usr/bin/mc mb --ignore-existing myminio/state-storage; diff --git a/charts/airbyte/values.yaml b/charts/airbyte/values.yaml index 6a1dccdd8c8..de8724cec2d 100644 --- a/charts/airbyte/values.yaml +++ b/charts/airbyte/values.yaml @@ -1723,6 +1723,13 @@ minio: # -- Minio tag image tag: RELEASE.2023-11-20T22-40-07Z + mc: + image: + # -- Minio Client image used by Minio helm chart + repository: minio/mc + # -- Minio Client tag image + tag: latest + storage: volumeClaimValue: 500Mi @@ -1737,6 +1744,9 @@ minio: # -- Affinity and anti-affinity for minio pod assignment, see # https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity affinity: {} + + + ## @section cron parameters