mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
11 lines
376 B
Smarty
11 lines
376 B
Smarty
{{/*
|
|
Validate serviceMonitor values
|
|
*/}}
|
|
{{- define "bjw-s.common.lib.serviceMonitor.validate" -}}
|
|
{{- $rootContext := .rootContext -}}
|
|
{{- $serviceMonitorObject := .object -}}
|
|
|
|
{{- if not $serviceMonitorObject.endpoints -}}
|
|
{{- fail (printf "endpoints are required for serviceMonitor with key \"%v\"" $serviceMonitorObject.identifier) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|