cw-infra-apps/grafana/templates/features/_feature_helpers.tpl
2025-05-28 10:01:42 +03:00

22 lines
478 B
Smarty

{{- define "features.list" }}
- annotationAutodiscovery
- applicationObservability
- autoInstrumentation
- clusterMetrics
- clusterEvents
- nodeLogs
- podLogs
- profiling
- prometheusOperatorObjects
- integrations
- selfReporting
{{- end }}
{{- define "features.list.enabled" }}
{{- range $feature := ((include "features.list" .) | fromYamlArray ) }}
{{- if eq (include (printf "features.%s.enabled" $feature) $) "true" }}
- {{ $feature }}
{{- end }}
{{- end }}
{{- end }}