Files
truecharts/charts/stable/immich/templates/_machinelearning.tpl
T
2c6c0a631e chore(container): update immich to v1 by renovate (minor) (#27721)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| altran1502/immich-machine-learning | minor | `127c51c` -> `6dc6fee` |
| altran1502/immich-machine-learning | minor | `ac2d0df` -> `e10df21` |
| altran1502/immich-machine-learning | minor | `1221bc5` -> `1eb7b45` |
| altran1502/immich-server | minor | `ac9fb82` -> `3c4250f` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

Add the preset `:preserveSemverRanges` to your config if you don't want
to pin your dependencies.

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjQuMCIsInVwZGF0ZWRJblZlciI6IjM4LjEyNC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvbWlub3IiXX0=-->

---------

Signed-off-by: kqmaverick <121722567+kqmaverick@users.noreply.github.com>
Co-authored-by: kqmaverick <kqmaverick@gmail.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: kqmaverick <121722567+kqmaverick@users.noreply.github.com>
Co-authored-by: StevenMcElligott <89483932+StevenMcElligott@users.noreply.github.com>
2024-10-15 21:03:48 +00:00

44 lines
1.3 KiB
Smarty

{{/* Define the machinelearning container */}}
{{- define "immich.machinelearning" -}}
{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}}
{{- $serverUrl := printf "http://%v:%v/api/server/ping" $fname .Values.service.main.ports.main.port }}
{{- $img := "mlImage" -}}
{{- with .Values.immich.mlImageType -}}
{{- $img = . -}}
{{- end }}
enabled: true
type: Deployment
podSpec:
initContainers:
wait-server:
{{/* Wait for server */}}
{{- include "immich.wait" (dict "url" $serverUrl) | nindent 6 }}
containers:
machinelearning:
enabled: true
primary: true
imageSelector: {{ $img }}
securityContext:
capabilities:
disableS6Caps: true
envFrom:
- configMapRef:
name: ml-config
probes:
readiness:
enabled: true
type: http
path: /ping
port: {{ .Values.service.machinelearning.ports.machinelearning.port }}
liveness:
enabled: true
type: http
path: /ping
port: {{ .Values.service.machinelearning.ports.machinelearning.port }}
startup:
enabled: true
type: http
path: /ping
port: {{ .Values.service.machinelearning.ports.machinelearning.port }}
{{- end -}}