diff --git a/charts/nocodb/Chart.yaml b/charts/nocodb/Chart.yaml index 4cb40f5..1f3e071 100644 --- a/charts/nocodb/Chart.yaml +++ b/charts/nocodb/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.4.1 +version: 0.4.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/nocodb/README.md b/charts/nocodb/README.md index 5c28fe2..3802607 100644 --- a/charts/nocodb/README.md +++ b/charts/nocodb/README.md @@ -1,6 +1,6 @@ # nocodb -![Version: 0.4.1](https://img.shields.io/badge/Version-0.4.1-informational?style=flat-square) +![Version: 0.4.2](https://img.shields.io/badge/Version-0.4.2-informational?style=flat-square) ![AppVersion: 0.257.2](https://img.shields.io/badge/AppVersion-0.257.2-informational?style=flat-square) A Helm chart for Kubernetes diff --git a/charts/nocodb/templates/deployment.yaml b/charts/nocodb/templates/deployment.yaml index 929bbff..5c3592f 100644 --- a/charts/nocodb/templates/deployment.yaml +++ b/charts/nocodb/templates/deployment.yaml @@ -54,10 +54,8 @@ spec: {{- if .Values.terminationGracePeriodSeconds }} terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} {{- end }} - - # Init container to wait for the database - {{- if or .Values.postgresql.enabled .Values.externalDatabase.create }} initContainers: + {{- if or .Values.postgresql.enabled .Values.externalDatabase.create }} - name: wait-for-database image: postgres:alpine env: @@ -79,6 +77,39 @@ spec: done; echo "Database is ready."; {{- end }} + {{- if or .Values.minio.enabled .Values.externalMinio.create }} + - name: wait-for-minio + image: busybox + command: + - sh + - -c + - | + until wget -qO- {{ include "nocodb.minio.endpoint" . }}/minio/health/ready; do + echo "Waiting for minio..."; + sleep 2; + done; + echo "Minio is ready."; + {{- end }} + {{- if .Values.redis.enabled }} + - name: wait-for-redis + image: redis:alpine + env: + - name: REDIS_PASSWORD + valueFrom: + secretKeyRef: + name: {{ include "nocodb.redis.secretName" . }} + key: {{ include "nocodb.redis.passwordKey" . }} + command: + - sh + - -c + - | + export REDISCLI_AUTH="$REDIS_PASSWORD" + until redis-cli -h "{{ include "nocodb.redis.fullname" . }}-master" -p "{{ .Values.redis.master.service.ports.redis }}" ping; do + echo "Waiting for redis..."; + sleep 2; + done; + echo "Redis is ready."; + {{- end }} containers: - name: {{ .Chart.Name }} {{- if .Values.containerSecurityContext.enabled }}