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:
Devin Buhl authored and GitHub committed 2024-01-24 14:52:50 -05:00
1 parent 9d175fcc99
commit 5d849727d8
112 files changed
+81 -184

No files matched your search

@@ -0,0 +1 @@
main = lambda data: data.get("addon_weave_gitops", {}).get("enabled", False) == True
@@ -1,4 +1,3 @@
#% if addon_weave_gitops.enabled %#
---
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
@@ -55,4 +54,3 @@ spec:
impersonationResourceNames: ["admin"]
podAnnotations:
secret.reloader.stakater.com/reload: cluster-user-auth
#% endif %#
@@ -1,8 +1,6 @@
#% if addon_weave_gitops.enabled %#
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./secret.sops.yaml
- ./helmrelease.yaml
#% endif %#
@@ -1,4 +1,3 @@
#% if addon_weave_gitops.enabled %#
---
apiVersion: v1
kind: Secret
@@ -8,4 +7,3 @@ type: Opaque
stringData:
username: admin
password: "#{ addon_weave_gitops.password | encrypt }#"
#% endif %#
@@ -1,4 +1,3 @@
#% if addon_weave_gitops.enabled %#
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
@@ -19,4 +18,3 @@ spec:
interval: 30m
retryInterval: 1m
timeout: 5m
#% endif %#