Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion charts/immich/templates/immich-config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{{- if .Values.immich.configuration }}
{{- if and .Values.immich.configuration .Values.immich.existingConfiguration }}
{{- fail "immich.configuration and immich.existingConfiguration are mutually exclusive." }}
{{- end }}
{{- if and .Values.immich.configuration (not .Values.immich.existingConfiguration) }}
apiVersion: v1
kind: {{ .Values.immich.configurationKind }}
metadata:
Expand Down
8 changes: 6 additions & 2 deletions charts/immich/templates/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ controllers:
{{ if .Values.immich.metrics.enabled }}
IMMICH_TELEMETRY_INCLUDE: all
{{ end }}
{{- if .Values.immich.configuration }}
{{- if or .Values.immich.configuration .Values.immich.existingConfiguration }}
IMMICH_CONFIG_FILE: /config/immich-config.yaml
{{- end }}
ports:
Expand Down Expand Up @@ -93,15 +93,19 @@ serviceMonitor:
scheme: http

persistence:
{{- if .Values.immich.configuration }}
{{- if or .Values.immich.configuration .Values.immich.existingConfiguration }}
config:
enabled: true
{{- if eq .Values.immich.configurationKind "Secret" }}
type: secret
{{- else }}
type: configMap
{{- end }}
{{- if .Values.immich.existingConfiguration }}
name: {{ .Values.immich.existingConfiguration }}
{{- else }}
name: {{ .Release.Name }}-immich-config
{{- end }}
{{- end }}
data:
enabled: true
Expand Down
5 changes: 4 additions & 1 deletion charts/immich/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ immich:
# Automatically creating the library volume is not supported by this chart
# You have to specify an existing PVC to use
existingClaim:
# configuration is immich-config.json converted to yaml
# configuration is immich-config.json converted to yaml. Ignored if existingConfiguration is set.
# ref: https://immich.app/docs/install/config-file/
#
configuration: {}
Expand All @@ -38,6 +38,9 @@ immich:
# Sets the resource Kind to store configuration in. Must be either ConfigMap or Secret.
configurationKind: ConfigMap

# Specify existing configuration resource name here to skip creation of a new one
# existingConfiguration:

# Dependencies

valkey:
Expand Down
Loading