helm-library/charts/testing/templates/_workloads.yaml
Nikolai Rodionov 4991032a98
All checks were successful
ci/woodpecker/push/helm Pipeline was successful
Update the structure
2024-02-27 13:42:39 +01:00

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 }}