forked from github-mirrorer/taskchampion-sync-server
* Adding health probes and fixing container permissions * Bump version * Cleanup * No ServiceAccount anymore * No ServiceAccount anymore * Update pull secrets * Fixing yaml issue * Fixed resource requests and limits * Bumping version
15 lines
848 B
YAML
15 lines
848 B
YAML
{{- /* Validate imagePullSecrets entries are objects (not plain strings) */ -}}
|
|
{{- range $i, $secret := .Values.image.pullSecrets -}}
|
|
{{- if not (kindIs "map" $secret) -}}
|
|
{{- fail (printf "ERROR: image.pullSecrets[%d] is a string (%q). Each entry must be an object with a 'name' key, e.g.\n image:\n pullSecrets:\n - name: %s" $i $secret $secret) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- if and (eq .Values.sqlite.enabled false) (eq .Values.postgres.enabled false) -}}
|
|
{{- fail "ERROR: Exactly one storage backend must be enabled. Either sqlite.enabled or postgres.enabled must be true." -}}
|
|
{{- end -}}
|
|
|
|
{{- if and (eq .Values.sqlite.enabled true) (eq .Values.postgres.enabled true) -}}
|
|
{{- fail "ERROR: Only one storage backend can be enabled. Both sqlite.enabled and postgres.enabled cannot be true at the same time." -}}
|
|
{{- end -}}
|