13 lines
366 B
YAML
13 lines
366 B
YAML
|
{{- define "helpers.allowed_workloads" -}}
|
||
|
{{ index .Chart.Annotations "helm.badhouseplants.net/allowed_workload_kinds" }}
|
||
|
{{- end -}}
|
||
|
|
||
|
{{- define "lib.workload" -}}
|
||
|
---
|
||
|
{{ if eq .Values.workload.kind "Deployment" -}}
|
||
|
{{- if contains .Values.workload.kind (include "helpers.allowed_workloads" .) }}
|
||
|
{{- include "lib.deployment" . }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|