Added template variables

This commit is contained in:
2023-11-02 08:02:36 +01:00
parent e90a9f0fdf
commit cd6b594cab
3 changed files with 17 additions and 6 deletions
+2 -2
View File
@@ -14,6 +14,6 @@ spec:
server: https://kubernetes.default.svc
project: default
source:
path: argocd/app-of-apps/test
repoURL: https://git.2martens.de/2martens/cloud-configuration/
path: {{ tpl .Values.appOfApps.path . }}
repoURL: {{ .Values.appOfApps.repoURL }}
targetRevision: main
+3 -3
View File
@@ -4,7 +4,7 @@ metadata:
name: argocd-server-ingress
namespace: argocd
annotations:
cert-manager.io/cluster-issuer: lets-encrypt
cert-manager.io/cluster-issuer: {{ .Values.ingress.certIssuer }}
ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
# If you encounter a redirect loop or are getting a 307 response code
@@ -14,7 +14,7 @@ metadata:
spec:
ingressClassName: public
rules:
- host: argocd.2martens.de
- host: {{ tpl .Values.ingress.host . }}
http:
paths:
- path: /
@@ -26,5 +26,5 @@ spec:
name: https
tls:
- hosts:
- argocd.k8s.{{ .Values.environment }}.2martens.de
- {{ tpl .Values.ingress.host . }}
secretName: argocd-server-tls # as expected by argocd-server
+12 -1
View File
@@ -1 +1,12 @@
environment: test
appOfApps:
repoURL: https://git.2martens.de/2martens/cloud-configuration/
# variable is templated
path: argocd/app-of-apps/{{ .Values.environment }}
ingress:
# variable is templated
host: argocd.k8s.{{ .Values.environment }}.2martens.de
certIssuer: lets-encrypt
# should be overriden for the specific installation
environment: