mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
11 lines
420 B
Smarty
11 lines
420 B
Smarty
{{/*
|
|
Validate container values
|
|
*/}}
|
|
{{- define "bjw-s.common.lib.container.validate" -}}
|
|
{{- $rootContext := .rootContext -}}
|
|
{{- $containerValues := .object -}}
|
|
|
|
{{- if eq (dig "image" "repository" "" $containerValues) "" -}}
|
|
{{- fail (printf "No image repository specified for container. (controller: %s, container: %s)" $containerValues.controller $containerValues.identifier) }}
|
|
{{- end -}}
|
|
{{- end -}}
|