softplayer-helm-lib/charts/workload/templates/_workloads.yaml

14 lines
343 B
YAML
Raw Normal View History

2024-05-13 15:20:21 +00:00
{{- define "helpers.allowed_workloads" -}}
2024-05-19 16:56:41 +00:00
{{ index .Chart.Annotations "allowed_workload_kinds" }}
2024-05-13 15:20:21 +00:00
{{- 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 }}
2024-05-19 16:56:41 +00:00