feat: remove the need for raw jinja blocks (#1158)

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl authored and GitHub committed 2024-01-15 00:03:41 -05:00
1 parent f9481d6202
commit e6fbc6e128
92 files changed
+430 -441

No files matched your search

@@ -1,4 +1,4 @@
{% if volsync.enabled | default(false) %}
<% if volsync.enabled | default(false) %>
---
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
@@ -41,4 +41,4 @@ spec:
tag: *tag
metrics:
disableAuth: true
{% endif %}
<% endif %>
@@ -1,8 +1,8 @@
{% if volsync.enabled | default(false) %}
<% if volsync.enabled | default(false) %>
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ./prometheusrule.yaml
{% endif %}
<% endif %>
@@ -1,4 +1,4 @@
{% if volsync.enabled | default(false) %}
<% if volsync.enabled | default(false) %>
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
@@ -17,9 +17,9 @@ spec:
severity: critical
- alert: VolSyncVolumeOutOfSync
annotations:
summary: "{% raw %}{{ $labels.obj_namespace }}/{{ $labels.obj_name }} volume is out of sync.{% endraw %}"
summary: "{{ $labels.obj_namespace }}/{{ $labels.obj_name }} volume is out of sync."
expr: volsync_volume_out_of_sync == 1
for: 15m
labels:
severity: critical
{% endif %}
<% endif %>