diff --git a/stable/immich/7.0.16/app-changelog.md b/stable/immich/7.0.16/app-changelog.md deleted file mode 100644 index 14750bc333..0000000000 --- a/stable/immich/7.0.16/app-changelog.md +++ /dev/null @@ -1,9 +0,0 @@ - - -## [immich-7.0.16](https://github.com/truecharts/charts/compare/immich-7.0.15...immich-7.0.16) (2023-06-20) - -### Chore - -- update immich to v1.62.1 (minor) ([#9791](https://github.com/truecharts/charts/issues/9791)) - - \ No newline at end of file diff --git a/stable/immich/7.0.16/templates/_wait.tpl b/stable/immich/7.0.16/templates/_wait.tpl deleted file mode 100644 index 27c8fef530..0000000000 --- a/stable/immich/7.0.16/templates/_wait.tpl +++ /dev/null @@ -1,20 +0,0 @@ -{{- define "immich.wait" -}} -{{- $path := .path | default "" }} -{{- $variable := .variable }} -enabled: true -type: init -imageSelector: alpineImage -envFrom: - - configMapRef: - name: common-config -command: - - /bin/ash - - -c - - | - echo "Pinging [${{ $variable }}/{{ $path }}] until it is ready..." - until wget --spider --quiet "${{ $variable }}/{{ $path }}"; do - echo "Waiting for [${{ $variable }}/{{ $path }}] to be ready..." - sleep 2 - done - echo "URL [${{ $variable }}/{{ $path }}] is ready!" -{{- end -}} diff --git a/stable/immich/7.0.16/CHANGELOG.md b/stable/immich/7.1.0/CHANGELOG.md similarity index 89% rename from stable/immich/7.0.16/CHANGELOG.md rename to stable/immich/7.1.0/CHANGELOG.md index 55052d9f29..fee6aea752 100644 --- a/stable/immich/7.0.16/CHANGELOG.md +++ b/stable/immich/7.1.0/CHANGELOG.md @@ -4,6 +4,15 @@ +## [immich-7.1.0](https://github.com/truecharts/charts/compare/immich-7.0.16...immich-7.1.0) (2023-06-20) + +### Chore + +- Only pass secrets to containers that need them and mount files only where needed ([#9697](https://github.com/truecharts/charts/issues/9697)) + + + + ## [immich-7.0.16](https://github.com/truecharts/charts/compare/immich-7.0.15...immich-7.0.16) (2023-06-20) ### Chore @@ -88,12 +97,3 @@ ## [immich-7.0.7](https://github.com/truecharts/charts/compare/immich-7.0.6...immich-7.0.7) (2023-05-29) ### Chore - -- update immich to v1.58.0 (minor) ([#9282](https://github.com/truecharts/charts/issues/9282)) - - ### Feat - -- hide advanced ingress options behind checbox ([#9203](https://github.com/truecharts/charts/issues/9203)) - - - diff --git a/stable/immich/7.0.16/Chart.yaml b/stable/immich/7.1.0/Chart.yaml similarity index 98% rename from stable/immich/7.0.16/Chart.yaml rename to stable/immich/7.1.0/Chart.yaml index 59e2c65520..94dbd8f5ff 100644 --- a/stable/immich/7.0.16/Chart.yaml +++ b/stable/immich/7.1.0/Chart.yaml @@ -22,7 +22,7 @@ name: immich sources: - https://github.com/truecharts/charts/tree/master/charts/stable/immich - https://github.com/immich-app/immich -version: 7.0.16 +version: 7.1.0 annotations: truecharts.org/catagories: | - media diff --git a/stable/immich/7.0.16/LICENSE b/stable/immich/7.1.0/LICENSE similarity index 100% rename from stable/immich/7.0.16/LICENSE rename to stable/immich/7.1.0/LICENSE diff --git a/stable/immich/7.0.16/README.md b/stable/immich/7.1.0/README.md similarity index 100% rename from stable/immich/7.0.16/README.md rename to stable/immich/7.1.0/README.md diff --git a/stable/immich/7.1.0/app-changelog.md b/stable/immich/7.1.0/app-changelog.md new file mode 100644 index 0000000000..f805eed14f --- /dev/null +++ b/stable/immich/7.1.0/app-changelog.md @@ -0,0 +1,9 @@ + + +## [immich-7.1.0](https://github.com/truecharts/charts/compare/immich-7.0.16...immich-7.1.0) (2023-06-20) + +### Chore + +- Only pass secrets to containers that need them and mount files only where needed ([#9697](https://github.com/truecharts/charts/issues/9697)) + + \ No newline at end of file diff --git a/stable/immich/7.0.16/app-readme.md b/stable/immich/7.1.0/app-readme.md similarity index 100% rename from stable/immich/7.0.16/app-readme.md rename to stable/immich/7.1.0/app-readme.md diff --git a/stable/immich/7.0.16/charts/common-12.14.2.tgz b/stable/immich/7.1.0/charts/common-12.14.2.tgz similarity index 100% rename from stable/immich/7.0.16/charts/common-12.14.2.tgz rename to stable/immich/7.1.0/charts/common-12.14.2.tgz diff --git a/stable/immich/7.0.16/charts/redis-6.0.58.tgz b/stable/immich/7.1.0/charts/redis-6.0.58.tgz similarity index 100% rename from stable/immich/7.0.16/charts/redis-6.0.58.tgz rename to stable/immich/7.1.0/charts/redis-6.0.58.tgz diff --git a/stable/immich/7.0.16/ix_values.yaml b/stable/immich/7.1.0/ix_values.yaml similarity index 77% rename from stable/immich/7.0.16/ix_values.yaml rename to stable/immich/7.1.0/ix_values.yaml index e4a5ca7cc9..89f4ce7460 100644 --- a/stable/immich/7.0.16/ix_values.yaml +++ b/stable/immich/7.1.0/ix_values.yaml @@ -32,10 +32,7 @@ immich: public_login_page_message: Immich disable_reverse_geocoding: false reverse_geocoding_precision: 3 - # simple | verbose - log_level: simple - mapbox_enable: false - mapbox_key: "" + log_level: log service: main: @@ -59,6 +56,50 @@ service: port: 10001 protocol: http targetSelector: main + web: + enabled: true + type: ClusterIP + targetSelector: web + ports: + web: + enabled: true + primary: true + port: 10000 + protocol: http + targetSelector: web + microservices: + enabled: true + type: ClusterIP + targetSelector: microservices + ports: + microservices: + enabled: true + primary: true + port: 10004 + protocol: http + targetSelector: microservices + machinelearning: + enabled: true + type: ClusterIP + targetSelector: machinelearning + ports: + machinelearning: + enabled: true + primary: true + port: 10003 + protocol: http + targetSelector: machinelearning + typesense: + enabled: true + type: ClusterIP + targetSelector: typesense + ports: + typesense: + enabled: true + primary: true + port: 10002 + protocol: http + targetSelector: typesense persistence: mlcache: @@ -91,8 +132,6 @@ persistence: main: {} microservices: microservices: {} - machinelearning: - machinelearning: {} uploads: enabled: true mountPath: /usr/src/app/upload/upload @@ -102,8 +141,6 @@ persistence: main: {} microservices: microservices: {} - machinelearning: - machinelearning: {} thumbs: enabled: true mountPath: /usr/src/app/upload/thumbs @@ -113,8 +150,6 @@ persistence: main: {} microservices: microservices: {} - machinelearning: - machinelearning: {} profile: enabled: true mountPath: /usr/src/app/upload/profile @@ -124,8 +159,6 @@ persistence: main: {} microservices: microservices: {} - machinelearning: - machinelearning: {} video: enabled: true mountPath: /usr/src/app/upload/encoded-video @@ -135,8 +168,6 @@ persistence: main: {} microservices: microservices: {} - machinelearning: - machinelearning: {} cnpg: main: diff --git a/stable/immich/7.0.16/questions.yaml b/stable/immich/7.1.0/questions.yaml similarity index 99% rename from stable/immich/7.0.16/questions.yaml rename to stable/immich/7.1.0/questions.yaml index 86681f51ce..0796e52868 100644 --- a/stable/immich/7.0.16/questions.yaml +++ b/stable/immich/7.1.0/questions.yaml @@ -175,28 +175,25 @@ questions: type: int show_if: [["disable_reverse_geocoding", "=", false]] default: 3 - - variable: mapbox_enable - label: Enable MapBox - schema: - type: boolean - default: false - - variable: mapbox_key - label: MaxBox Key - schema: - type: string - private: true - show_if: [["maxbox_enable", "=", false]] - default: "" - variable: log_level label: Log Level schema: type: string - default: simple + default: log enum: + - value: log + description: log - value: simple - description: simple + description: simple (Switch to log ASAP) + - value: warn + description: warn + - value: error + description: error - value: verbose description: verbose + - value: debug + description: debug + - variable: enable_ml label: Enable Machine Learning Container schema: diff --git a/stable/immich/7.0.16/templates/NOTES.txt b/stable/immich/7.1.0/templates/NOTES.txt similarity index 100% rename from stable/immich/7.0.16/templates/NOTES.txt rename to stable/immich/7.1.0/templates/NOTES.txt diff --git a/stable/immich/7.0.16/templates/_config.tpl b/stable/immich/7.1.0/templates/_config.tpl similarity index 79% rename from stable/immich/7.0.16/templates/_config.tpl rename to stable/immich/7.1.0/templates/_config.tpl index ee2c480668..c58ce75b7c 100644 --- a/stable/immich/7.0.16/templates/_config.tpl +++ b/stable/immich/7.1.0/templates/_config.tpl @@ -1,10 +1,8 @@ {{- define "immich.config" -}} {{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}} {{- $secretName := printf "%s-secret" $fname -}} - {{- $jwtSecret := randAlphaNum 32 -}} {{- $typesenseKey := randAlphaNum 32 -}} {{- with (lookup "v1" "Secret" .Release.Namespace $secretName) -}} - {{- $jwtSecret = index .data "JWT_SECRET" | b64dec -}} {{- $typesenseKey = index .data "TYPESENSE_API_KEY" | b64dec -}} {{- end }} @@ -13,31 +11,42 @@ configmap: enabled: true data: PORT: {{ .Values.service.web.ports.web.port | quote }} + NODE_ENV: production + IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fname .Values.service.server.ports.server.port }} + PUBLIC_IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fname .Values.service.server.ports.server.port }} + {{- with .Values.immich.public_login_page_message }} + PUBLIC_LOGIN_PAGE_MESSAGE: {{ . }} + {{- end }} + server-config: enabled: true data: - {{/* User Defined */}} - DISABLE_REVERSE_GEOCODING: {{ .Values.immich.disable_reverse_geocoding | quote }} - REVERSE_GEOCODING_PRECISION: {{ .Values.immich.reverse_geocoding_precision | quote }} - ENABLE_MAPBOX: {{ .Values.immich.mapbox_enable | quote }} SERVER_PORT: {{ .Values.service.server.ports.server.port | quote }} + micro-config: enabled: true data: MICROSERVICES_PORT: {{ .Values.service.microservices.ports.microservices.port | quote }} + DISABLE_REVERSE_GEOCODING: {{ .Values.immich.disable_reverse_geocoding | quote }} + REVERSE_GEOCODING_PRECISION: {{ .Values.immich.reverse_geocoding_precision | quote }} REVERSE_GEOCODING_DUMP_DIRECTORY: {{ .Values.persistence.microcache.targetSelector.microservices.microservices.mountPath }} + {{- if .Values.immich.enable_ml }} ml-config: enabled: true data: + NODE_ENV: production MACHINE_LEARNING_PORT: {{ .Values.service.machinelearning.ports.machinelearning.port | quote }} + MACHINE_LEARNING_CACHE_FOLDER: {{ .Values.persistence.mlcache.targetSelector.machinelearning.machinelearning.mountPath }} TRANSFORMERS_CACHE: {{ .Values.persistence.mlcache.targetSelector.machinelearning.machinelearning.mountPath }} {{- end }} + + {{/* Server and Microservices */}} common-config: enabled: true data: - IMMICH_WEB_URL: {{ printf "http://%v-web:%v" $fname .Values.service.web.ports.web.port }} - IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fname .Values.service.server.ports.server.port }} + NODE_ENV: production + LOG_LEVEL: {{ .Values.immich.log_level }} {{- if .Values.immich.enable_ml }} IMMICH_MACHINE_LEARNING_URL: {{ printf "http://%v-machinelearning:%v" $fname .Values.service.machinelearning.ports.machinelearning.port }} {{- else }} @@ -45,24 +54,16 @@ configmap: {{- end }} TYPESENSE_ENABLED: {{ .Values.immich.enable_typesense | quote }} {{- if .Values.immich.enable_typesense }} - TYPESENSE_URL: {{ printf "http://%v-typesense:%v" $fname .Values.service.typesense.ports.typesense.port }} TYPESENSE_PROTOCOL: http TYPESENSE_HOST: {{ printf "%v-typesense" $fname }} TYPESENSE_PORT: {{ .Values.service.typesense.ports.typesense.port | quote }} {{- end }} - {{/* - Its unclear where this URL is being used, but poking in their code, seems to be used internally? - Its set to the value of IMMICH_SERVER_URL on their compose. If something doesnt work remotely, - This is the place to start looking - https://github.com/immich-app/immich/blob/b5d75e20167b92de12cc50a816da214779cb0807/web/src/api/api.ts#L55 - */}} - PUBLIC_IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fname .Values.service.server.ports.server.port }} - NODE_ENV: production - {{/* User Defined */}} - {{- with .Values.immich.public_login_page_message }} - PUBLIC_LOGIN_PAGE_MESSAGE: {{ . }} - {{- end }} - LOG_LEVEL: {{ .Values.immich.log_level }} + + proxy-config: + enabled: true + data: + IMMICH_WEB_URL: {{ printf "http://%v-web:%v" $fname .Values.service.web.ports.web.port }} + IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fname .Values.service.server.ports.server.port }} secret: typesense-secret: @@ -71,15 +72,13 @@ secret: {{/* Secret Key */}} TYPESENSE_API_KEY: {{ $typesenseKey }} TYPESENSE_DATA_DIR: {{ .Values.persistence.typesense.targetSelector.typesense.typesense.mountPath }} + secret: enabled: true data: - {{/* Secret Key */}} - JWT_SECRET: {{ $jwtSecret }} TYPESENSE_API_KEY: {{ $typesenseKey }} - {{- with .Values.immich.mapbox_key }} - MAPBOX_KEY: {{ . }} - {{- end }} + + {{/* Server and Microservices */}} deps-secret: enabled: true data: diff --git a/stable/immich/7.0.16/templates/_machinelearning.tpl b/stable/immich/7.1.0/templates/_machinelearning.tpl similarity index 59% rename from stable/immich/7.0.16/templates/_machinelearning.tpl rename to stable/immich/7.1.0/templates/_machinelearning.tpl index 82740d6a6c..a5a2328145 100644 --- a/stable/immich/7.0.16/templates/_machinelearning.tpl +++ b/stable/immich/7.1.0/templates/_machinelearning.tpl @@ -1,27 +1,25 @@ {{/* Define the machinelearning container */}} {{- define "immich.machinelearning" -}} +{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}} +{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fname .Values.service.server.ports.server.port }} enabled: true type: Deployment podSpec: initContainers: wait-server: - {{- include "immich.wait" (dict "variable" "IMMICH_SERVER_URL" "path" "server-info/ping") | nindent 6 }} + {{/* Wait for server */}} + {{- include "immich.wait" (dict "url" $serverUrl) | nindent 6 }} containers: machinelearning: enabled: true primary: true imageSelector: mlImage + securityContext: + capabilities: + disableS6Caps: true envFrom: - - configMapRef: - name: common-config - - configMapRef: - name: server-config - configMapRef: name: ml-config - - secretRef: - name: deps-secret - - secretRef: - name: secret probes: readiness: enabled: true @@ -39,16 +37,3 @@ podSpec: path: /ping port: {{ .Values.service.machinelearning.ports.machinelearning.port }} {{- end -}} - -{{- define "immich.machinelearning.service" -}} -enabled: true -type: ClusterIP -targetSelector: machinelearning -ports: - machinelearning: - enabled: true - primary: true - port: 10003 - protocol: http - targetSelector: machinelearning -{{- end -}} diff --git a/stable/immich/7.0.16/templates/_microservices.tpl b/stable/immich/7.1.0/templates/_microservices.tpl similarity index 72% rename from stable/immich/7.0.16/templates/_microservices.tpl rename to stable/immich/7.1.0/templates/_microservices.tpl index d926398091..52040d88c3 100644 --- a/stable/immich/7.0.16/templates/_microservices.tpl +++ b/stable/immich/7.1.0/templates/_microservices.tpl @@ -1,16 +1,22 @@ {{- define "immich.microservices" -}} +{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}} +{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fname .Values.service.server.ports.server.port }} enabled: true type: Deployment podSpec: initContainers: wait-server: - {{- include "immich.wait" (dict "variable" "IMMICH_SERVER_URL" "path" "server-info/ping") | nindent 6 }} + {{/* Wait for server */}} + {{- include "immich.wait" (dict "url" $serverUrl) | nindent 6 }} containers: microservices: enabled: true primary: true imageSelector: image args: start-microservices.sh + securityContext: + capabilities: + disableS6Caps: true envFrom: - secretRef: name: secret @@ -18,8 +24,6 @@ podSpec: name: deps-secret - configMapRef: name: common-config - - configMapRef: - name: server-config - configMapRef: name: micro-config probes: @@ -48,16 +52,3 @@ podSpec: - | ps -a | grep -v grep | grep -q microservices {{- end -}} - -{{- define "immich.microservices.service" -}} -enabled: true -type: ClusterIP -targetSelector: microservices -ports: - microservices: - enabled: true - primary: true - port: 10004 - protocol: http - targetSelector: microservices -{{- end -}} diff --git a/stable/immich/7.0.16/templates/_proxy.tpl b/stable/immich/7.1.0/templates/_proxy.tpl similarity index 52% rename from stable/immich/7.0.16/templates/_proxy.tpl rename to stable/immich/7.1.0/templates/_proxy.tpl index b2f73ed8fc..16402e04bd 100644 --- a/stable/immich/7.0.16/templates/_proxy.tpl +++ b/stable/immich/7.1.0/templates/_proxy.tpl @@ -1,18 +1,31 @@ {{- define "immich.proxy" -}} +{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}} +{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fname .Values.service.server.ports.server.port }} +{{- $webUrl := printf "http://%v-web:%v/robots.txt" $fname .Values.service.web.ports.web.port }} enabled: true type: Deployment podSpec: initContainers: wait-server: - {{- include "immich.wait" (dict "variable" "IMMICH_SERVER_URL" "path" "server-info/ping") | nindent 6 }} + {{/* Wait for server */}} + {{- include "immich.wait" (dict "url" $serverUrl) | nindent 6 }} + {{/* Wait for web, otherwise nginx will fail to find host */}} + {{- include "immich.wait" (dict "url" $webUrl) | nindent 6 }} containers: proxy: enabled: true primary: true imageSelector: proxyImage + securityContext: + capabilities: + disableS6Caps: true + add: + - CHOWN + - SETUID + - SETGID envFrom: - configMapRef: - name: common-config + name: proxy-config probes: readiness: enabled: true diff --git a/stable/immich/7.0.16/templates/_server.tpl b/stable/immich/7.1.0/templates/_server.tpl similarity index 92% rename from stable/immich/7.0.16/templates/_server.tpl rename to stable/immich/7.1.0/templates/_server.tpl index 1aaa2cc0f8..637313afc2 100644 --- a/stable/immich/7.0.16/templates/_server.tpl +++ b/stable/immich/7.1.0/templates/_server.tpl @@ -3,6 +3,9 @@ enabled: true primary: true imageSelector: image args: start-server.sh +securityContext: + capabilities: + disableS6Caps: true envFrom: - configMapRef: name: server-config diff --git a/stable/immich/7.0.16/templates/_typesense.tpl b/stable/immich/7.1.0/templates/_typesense.tpl similarity index 79% rename from stable/immich/7.0.16/templates/_typesense.tpl rename to stable/immich/7.1.0/templates/_typesense.tpl index 5ab9c1bfc7..f332658f11 100644 --- a/stable/immich/7.0.16/templates/_typesense.tpl +++ b/stable/immich/7.1.0/templates/_typesense.tpl @@ -8,6 +8,9 @@ podSpec: enabled: true primary: true imageSelector: typesenseImage + securityContext: + capabilities: + disableS6Caps: true envFrom: - secretRef: name: typesense-secret @@ -31,16 +34,3 @@ podSpec: path: /health port: {{ .Values.service.typesense.ports.typesense.port }} {{- end -}} - -{{- define "immich.typesense.service" -}} -enabled: true -type: ClusterIP -targetSelector: typesense -ports: - typesense: - enabled: true - primary: true - port: 10002 - protocol: http - targetSelector: typesense -{{- end -}} diff --git a/stable/immich/7.1.0/templates/_wait.tpl b/stable/immich/7.1.0/templates/_wait.tpl new file mode 100644 index 0000000000..45bda874fc --- /dev/null +++ b/stable/immich/7.1.0/templates/_wait.tpl @@ -0,0 +1,16 @@ +{{- define "immich.wait" -}} +{{- $url := .url }} +enabled: true +type: init +imageSelector: alpineImage +command: + - /bin/ash + - -c + - | + echo "Pinging [{{ $url }}] until it is ready..." + until wget --spider --quiet "{{ $url }}"; do + echo "Waiting for [{{ $url }}] to be ready..." + sleep 2 + done + echo "URL [{{ $url }}] is ready!" +{{- end -}} diff --git a/stable/immich/7.0.16/templates/_web.tpl b/stable/immich/7.1.0/templates/_web.tpl similarity index 64% rename from stable/immich/7.0.16/templates/_web.tpl rename to stable/immich/7.1.0/templates/_web.tpl index 3b1bd28d9a..808800a071 100644 --- a/stable/immich/7.0.16/templates/_web.tpl +++ b/stable/immich/7.1.0/templates/_web.tpl @@ -1,23 +1,28 @@ {{/* Define the web container */}} {{- define "immich.web" -}} +{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}} +{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fname .Values.service.server.ports.server.port }} enabled: true type: Deployment podSpec: initContainers: wait-server: - {{- include "immich.wait" (dict "variable" "IMMICH_SERVER_URL" "path" "server-info/ping") | nindent 6 }} + {{/* Wait for server */}} + {{- include "immich.wait" (dict "url" $serverUrl) | nindent 6 }} containers: web: enabled: true primary: true imageSelector: webImage + securityContext: + capabilities: + disableS6Caps: true + add: + - SETUID + - SETGID envFrom: - - configMapRef: - name: common-config - configMapRef: name: web-config - - secretRef: - name: deps-secret probes: readiness: enabled: true @@ -35,16 +40,3 @@ podSpec: path: /robots.txt port: {{ .Values.service.web.ports.web.port }} {{- end -}} - -{{- define "immich.web.service" -}} -enabled: true -type: ClusterIP -targetSelector: web -ports: - web: - enabled: true - primary: true - port: 10000 - protocol: http - targetSelector: web -{{- end -}} diff --git a/stable/immich/7.0.16/templates/common.yaml b/stable/immich/7.1.0/templates/common.yaml similarity index 54% rename from stable/immich/7.0.16/templates/common.yaml rename to stable/immich/7.1.0/templates/common.yaml index bc788b4044..9fff86da6b 100644 --- a/stable/immich/7.0.16/templates/common.yaml +++ b/stable/immich/7.1.0/templates/common.yaml @@ -1,27 +1,42 @@ {{/* Make sure all variables are set properly */}} {{- include "tc.v1.common.loader.init" . }} +{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}} + +{{/* Render Proxy Workload */}} {{- $_ := set .Values.workload "proxy" (include "immich.proxy" . | fromYaml) -}} {{- $_ := set .Values.workload.main.podSpec.containers "main" (include "immich.server" . | fromYaml) -}} {{- if .Values.immich.enable_typesense -}} - {{- $_ := set .Values.workload.main.podSpec.initContainers "wait-typesense" (include "immich.wait" (dict "variable" "TYPESENSE_URL" "path" "health") | fromYaml) -}} + {{/* Append init container to server, to make sure typesense is ready before starting */}} + {{- $url := printf "http://%v-typesense:%v/health" $fname .Values.service.typesense.ports.typesense.port -}} + {{- $_ := set .Values.workload.main.podSpec.initContainers "wait-typesense" (include "immich.wait" (dict "url" $url) | fromYaml) -}} {{- end -}} -{{- $_ := set .Values.service "web" (include "immich.web.service" . | fromYaml) -}} +{{/* Render Web Workload */}} {{- $_ := set .Values.workload "web" (include "immich.web" . | fromYaml) -}} -{{- $_ := set .Values.service "microservices" (include "immich.microservices.service" . | fromYaml) -}} +{{/* Render Microservices Workload */}} {{- $_ := set .Values.workload "microservices" (include "immich.microservices" . | fromYaml) -}} {{- if .Values.immich.enable_ml -}} - {{- $_ := set .Values.service "machinelearning" (include "immich.machinelearning.service" . | fromYaml) -}} + {{/* Enable Machine Learning Service */}} + {{- $_ := set .Values.service.machinelearning "enabled" true -}} + {{/* Render Machine Learning Workload */}} {{- $_ := set .Values.workload "machinelearning" (include "immich.machinelearning" . | fromYaml) -}} +{{- else -}} + {{/* Disable Machine Learning Service */}} + {{- $_ := set .Values.service.machinelearning "enabled" false -}} {{- end -}} {{- if .Values.immich.enable_typesense -}} - {{- $_ := set .Values.service "typesense" (include "immich.typesense.service" . | fromYaml) -}} + {{/* Enable Typesense Service */}} + {{- $_ := set .Values.service.typesense "enabled" true -}} + {{/* Render Typesense Workload */}} {{- $_ := set .Values.workload "typesense" (include "immich.typesense" . | fromYaml) -}} +{{- else -}} + {{/* Disable Typesense Service */}} + {{- $_ := set .Values.service.typesense "enabled" false -}} {{- end -}} {{/* Render configuration for immich diff --git a/stable/immich/7.0.16/values.yaml b/stable/immich/7.1.0/values.yaml similarity index 100% rename from stable/immich/7.0.16/values.yaml rename to stable/immich/7.1.0/values.yaml