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("bootstrap_distribution") in ['talos']
@@ -1,3 +1 @@
#% if bootstrap_distribution in ['talos'] %#
charts/
#% endif %#
@@ -1,4 +1,3 @@
#% if bootstrap_distribution in ['talos'] %#
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
@@ -14,4 +13,3 @@ commonAnnotations:
meta.helm.sh/release-namespace: kube-system
commonLabels:
app.kubernetes.io/managed-by: Helm
#% endif %#
@@ -1,6 +1,4 @@
#% if bootstrap_distribution in ['talos'] %#
---
#% filter indent(width=0, first=True) %#
#% include 'partials/cilium-values-init.partial.yaml.j2' %#
#% endfilter %#
#% endif %#
@@ -1,3 +1 @@
#% if bootstrap_distribution in ['talos'] %#
charts/
#% endif %#
@@ -1,4 +1,3 @@
#% if bootstrap_distribution in ['talos'] %#
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
@@ -18,4 +17,3 @@ commonAnnotations:
meta.helm.sh/release-namespace: kube-system
commonLabels:
app.kubernetes.io/managed-by: Helm
#% endif %#
@@ -1,4 +1,3 @@
#% if bootstrap_distribution in ['talos'] %#
# yaml-language-server: $schema=https://raw.githubusercontent.com/budimanjojo/talhelper/master/pkg/config/schemas/talconfig.json
---
# renovate: depName=ghcr.io/siderolabs/installer datasource=docker extractVersion=^(?<version>.*)$
@@ -178,4 +177,3 @@ worker:
- *nameserverPatch
- *ntpPatch
- *sysctlPatch
#% endif %#