Skip to content

Commit

Permalink
Templating the minio.yaml file to get minio-mc image from values.yaml.
Browse files Browse the repository at this point in the history
Adding the corresponding default configs to values.yaml.
Updating README.
  • Loading branch information
bajnok97 committed Oct 2, 2024
1 parent c95be0b commit 448a0bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions charts/airbyte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ Helm chart to deploy airbyte
| 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.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/ # |
Expand Down
2 changes: 1 addition & 1 deletion charts/airbyte/templates/minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions charts/airbyte/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1722,6 +1722,13 @@ minio:
repository: minio/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
Expand Down

0 comments on commit 448a0bb

Please sign in to comment.