Add custom image support for all Helm chart components
- Add initContainer.image config for busybox (wait containers) - Add image config for PostgreSQL, MinIO, Redis subcharts - Update deployment.yaml and migration-job.yaml to use configurable images - Enables air-gapped deployments with private registries 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -35,12 +35,14 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
{{- if .Values.migrations.enabled }}
|
{{- if .Values.migrations.enabled }}
|
||||||
- name: wait-for-db
|
- name: wait-for-db
|
||||||
image: busybox:1.36
|
image: "{{ .Values.initContainer.image.repository }}:{{ .Values.initContainer.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }}
|
||||||
command: ['sh', '-c', 'until nc -z {{ include "orchard.postgresql.host" . }} 5432; do echo waiting for database; sleep 2; done;']
|
command: ['sh', '-c', 'until nc -z {{ include "orchard.postgresql.host" . }} 5432; do echo waiting for database; sleep 2; done;']
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.minio.enabled }}
|
{{- if .Values.minio.enabled }}
|
||||||
- name: wait-for-minio
|
- name: wait-for-minio
|
||||||
image: busybox:1.36
|
image: "{{ .Values.initContainer.image.repository }}:{{ .Values.initContainer.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }}
|
||||||
command: ['sh', '-c', 'until nc -z {{ .Release.Name }}-minio 9000; do echo waiting for minio; sleep 2; done;']
|
command: ['sh', '-c', 'until nc -z {{ .Release.Name }}-minio 9000; do echo waiting for minio; sleep 2; done;']
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ spec:
|
|||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: wait-for-db
|
- name: wait-for-db
|
||||||
image: busybox:1.36
|
image: "{{ .Values.initContainer.image.repository }}:{{ .Values.initContainer.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }}
|
||||||
command: ['sh', '-c', 'until nc -z {{ include "orchard.postgresql.host" . }} 5432; do echo waiting for database; sleep 2; done;']
|
command: ['sh', '-c', 'until nc -z {{ include "orchard.postgresql.host" . }} 5432; do echo waiting for database; sleep 2; done;']
|
||||||
containers:
|
containers:
|
||||||
- name: migrations
|
- name: migrations
|
||||||
|
|||||||
@@ -10,6 +10,13 @@ imagePullSecrets: []
|
|||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
|
# Init container image (used for wait-for-db, wait-for-minio)
|
||||||
|
initContainer:
|
||||||
|
image:
|
||||||
|
repository: busybox
|
||||||
|
tag: "1.36"
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
create: true
|
create: true
|
||||||
automount: true
|
automount: true
|
||||||
@@ -113,6 +120,11 @@ orchard:
|
|||||||
# PostgreSQL subchart configuration
|
# PostgreSQL subchart configuration
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
image:
|
||||||
|
registry: docker.io
|
||||||
|
repository: bitnami/postgresql
|
||||||
|
tag: "15"
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
auth:
|
auth:
|
||||||
username: orchard
|
username: orchard
|
||||||
password: orchard-password
|
password: orchard-password
|
||||||
@@ -125,6 +137,11 @@ postgresql:
|
|||||||
# MinIO subchart configuration
|
# MinIO subchart configuration
|
||||||
minio:
|
minio:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
image:
|
||||||
|
registry: docker.io
|
||||||
|
repository: bitnami/minio
|
||||||
|
tag: "latest"
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
auth:
|
auth:
|
||||||
rootUser: minioadmin
|
rootUser: minioadmin
|
||||||
rootPassword: minioadmin
|
rootPassword: minioadmin
|
||||||
@@ -136,6 +153,11 @@ minio:
|
|||||||
# Redis subchart configuration (for future caching)
|
# Redis subchart configuration (for future caching)
|
||||||
redis:
|
redis:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
image:
|
||||||
|
registry: docker.io
|
||||||
|
repository: bitnami/redis
|
||||||
|
tag: "7.2"
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
auth:
|
auth:
|
||||||
enabled: true
|
enabled: true
|
||||||
password: redis-password
|
password: redis-password
|
||||||
|
|||||||
Reference in New Issue
Block a user