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_discord_template_notifier", {}).get("enabled", False) == True
|
||||
-2
@@ -1,4 +1,3 @@
|
||||
#% if addon_discord_template_notifier.enabled %#
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
@@ -61,4 +60,3 @@ spec:
|
||||
- path: /data/config.toml
|
||||
subPath: config.toml
|
||||
readOnly: true
|
||||
#% endif %#
|
||||
-2
@@ -1,8 +1,6 @@
|
||||
#% if addon_discord_template_notifier.enabled %#
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./secret.sops.yaml
|
||||
- ./helmrelease.yaml
|
||||
#% endif %#
|
||||
-2
@@ -1,4 +1,3 @@
|
||||
#% if addon_discord_template_notifier.enabled %#
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
@@ -13,4 +12,3 @@ stringData:
|
||||
retry_limit = 5
|
||||
sink.type = "discord"
|
||||
sink.url = "#{ discord_template_notifier.webhook_url }#"
|
||||
#% endif %#
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if addon_discord_template_notifier.enabled %#
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
@@ -19,4 +18,3 @@ spec:
|
||||
interval: 30m
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
#% endif %#
|
||||
@@ -0,0 +1 @@
|
||||
main = lambda data: data.get("addon_homepage", {}).get("enabled", False) == True
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if addon_homepage.enabled %#
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
@@ -76,4 +75,3 @@ data:
|
||||
dateStyle: long
|
||||
timeStyle: short
|
||||
hourCycle: h23
|
||||
#% endif %#
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if addon_homepage.enabled %#
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
@@ -86,4 +85,3 @@ spec:
|
||||
path: /app/config/widgets.yaml
|
||||
serviceAccount:
|
||||
create: true
|
||||
#% endif %#
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if addon_homepage.enabled %#
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
@@ -6,4 +5,3 @@ resources:
|
||||
- ./configmap.yaml
|
||||
- ./helmrelease.yaml
|
||||
- ./secret.sops.yaml
|
||||
#% endif %#
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if addon_homepage.enabled %#
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
@@ -10,4 +9,3 @@ stringData:
|
||||
HOMEPAGE_VAR_CLOUDFLARED_API_TOKEN: "#{ bootstrap_cloudflare_token }#"
|
||||
HOMEPAGE_VAR_GRAFANA_USERNAME: admin
|
||||
HOMEPAGE_VAR_GRAFANA_PASSWORD: "#{ grafana.password }#"
|
||||
#% endif %#
|
||||
@@ -1,4 +1,3 @@
|
||||
#% if addon_homepage.enabled %#
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
@@ -19,4 +18,3 @@ spec:
|
||||
interval: 30m
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
#% endif %#
|
||||
Reference in new issue
Block a user