feat: implement mjfilter file for templates (#1244)
* feat: implement mjfilter file for templates Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: use data.get in mjfilters Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
9d175fcc99
commit
5d849727d8
112 files changed
+81
-184
No files matched your search
@@ -0,0 +1 @@
|
||||
main = lambda data: data.get("addon_volsync", {}).get("enabled", False) == True
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if addon_volsync.enabled %#
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
@@ -40,4 +39,3 @@ spec:
|
||||
tag: *tag
|
||||
metrics:
|
||||
disableAuth: true
|
||||
#% endif %#
|
||||
@@ -1,8 +1,6 @@
|
||||
#% if addon_volsync.enabled %#
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./helmrelease.yaml
|
||||
- ./prometheusrule.yaml
|
||||
#% endif %#
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if addon_volsync.enabled %#
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
@@ -22,4 +21,3 @@ spec:
|
||||
for: 15m
|
||||
labels:
|
||||
severity: critical
|
||||
#% endif %#
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if addon_volsync.enabled %#
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
@@ -10,10 +9,6 @@ spec:
|
||||
commonMetadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: *app
|
||||
#% if addon_longhorn.enabled %#
|
||||
dependsOn:
|
||||
- name: longhorn
|
||||
#% endif %#
|
||||
path: ./kubernetes/apps/storage/volsync/snapshot-controller
|
||||
prune: true
|
||||
sourceRef:
|
||||
@@ -43,4 +38,3 @@ spec:
|
||||
interval: 30m
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
#% endif %#
|
||||
+5
@@ -25,6 +25,11 @@ spec:
|
||||
retries: 3
|
||||
uninstall:
|
||||
keepHistory: false
|
||||
#% if bootstrap_distribution in ['k0s', 'k3s'] and addon_longhorn.enabled %#
|
||||
dependsOn:
|
||||
- name: longhorn
|
||||
namespace: longhorn-system
|
||||
#% endif %#
|
||||
values:
|
||||
controller:
|
||||
#% if bootstrap_distribution in ['k0s', 'k3s'] and addon_longhorn.enabled %#
|
||||
|
||||
-2
@@ -1,7 +1,5 @@
|
||||
#% if addon_volsync.enabled %#
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./helmrelease.yaml
|
||||
#% endif %#
|
||||
Reference in new issue
Block a user