feat: remove the need for raw jinja blocks (#1158)
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
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 %>
|
||||
@@ -1,4 +1,4 @@
|
||||
{% if volsync.enabled | default(false) %}
|
||||
<% if volsync.enabled | default(false) %>
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
@@ -39,4 +39,4 @@ spec:
|
||||
interval: 30m
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
{% endif %}
|
||||
<% endif %>
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
{% if volsync.enabled | default(false) %}
|
||||
<% if volsync.enabled | default(false) %>
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
@@ -32,4 +32,4 @@ spec:
|
||||
create: true
|
||||
webhook:
|
||||
enabled: false
|
||||
{% endif %}
|
||||
<% endif %>
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
{% if volsync.enabled | default(false) %}
|
||||
<% if volsync.enabled | default(false) %>
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./helmrelease.yaml
|
||||
{% endif %}
|
||||
<% endif %>
|
||||
Reference in new issue
Block a user