Skip to content

helm_lib_prometheus_rules_recursion with optional filter#166

Merged
borg-z merged 1 commit intomainfrom
helm_lib_prometheus_rules-improvement
Dec 18, 2025
Merged

helm_lib_prometheus_rules_recursion with optional filter#166
borg-z merged 1 commit intomainfrom
helm_lib_prometheus_rules-improvement

Conversation

@borg-z
Copy link
Member

@borg-z borg-z commented Dec 17, 2025

Added optional filename filter, backward compatibility is preserved
Example:

{{- $prometheusRules := list
  "monitoring/prometheus-rules/caps-nodes.tpl"
  "monitoring/prometheus-rules/cloud-data-discovery.tpl"
}}

{{- if include "cluster_autoscaler_enabled" . }}
  {{- $prometheusRules = append $prometheusRules "monitoring/prometheus-rules/cluster-autoscaler.tpl" }}
{{- end }}

{{- include "helm_lib_prometheus_rules" (list . "d8-cloud-instance-manager" $prometheusRules) }}

@borg-z borg-z force-pushed the helm_lib_prometheus_rules-improvement branch 2 times, most recently from c37d6ac to 8041202 Compare December 18, 2025 07:46
Signed-off-by: borg-z <me@zykov.tatar>
@borg-z borg-z force-pushed the helm_lib_prometheus_rules-improvement branch from 8041202 to fb830aa Compare December 18, 2025 07:47
@borg-z borg-z merged commit 5d0e62c into main Dec 18, 2025
4 checks passed
@yalosev yalosev deleted the helm_lib_prometheus_rules-improvement branch December 23, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants