feat: rename addon vars to addon_ prefix and simplify logic in jinja templates (#1216)

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl authored and GitHub committed 2024-01-21 09:05:23 -05:00
1 parent b89b7b3ed9
commit db21ea82fa
63 files changed
+102 -101

No files matched your search

@@ -1,4 +1,4 @@
#% if weave_gitops|default({}) and weave_gitops.enabled|default(false) %#
#% if addon_weave_gitops.enabled %#
---
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
@@ -31,7 +31,7 @@ spec:
ingress:
enabled: true
className: internal
#% if homepage|default({}) and homepage.enabled|default(false) %#
#% if addon_homepage.enabled %#
annotations:
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Home
@@ -1,4 +1,4 @@
#% if weave_gitops|default({}) and weave_gitops.enabled|default(false) %#
#% if addon_weave_gitops.enabled %#
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
@@ -1,4 +1,4 @@
#% if weave_gitops|default({}) and weave_gitops.enabled|default(false) %#
#% if addon_weave_gitops.enabled %#
---
apiVersion: v1
kind: Secret
@@ -7,5 +7,5 @@ metadata:
type: Opaque
stringData:
username: admin
password: "#{ weave_gitops.password | encrypt }#"
password: "#{ addon_weave_gitops.password | encrypt }#"
#% endif %#
@@ -1,4 +1,4 @@
#% if weave_gitops|default({}) and weave_gitops.enabled|default(false) %#
#% if addon_weave_gitops.enabled %#
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization