render values by tpl function
Signed-off-by: Boris Komraz <bkomraz1@gmail.com>
This commit is contained in:
parent
579b91fde3
commit
d68a18365c
6 changed files with 13 additions and 9 deletions
|
@ -3,7 +3,7 @@ appVersion: v2.8.4
|
||||||
kubeVersion: ">=1.23.0-0"
|
kubeVersion: ">=1.23.0-0"
|
||||||
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 5.46.8
|
version: 5.46.9
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -26,5 +26,5 @@ annotations:
|
||||||
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: fixed
|
- kind: added
|
||||||
description: Sync redis / redis-ha readOnlyRootFilesystem=true option from upstream. This was part of Argo CD 2.8.0.
|
description: Added tpl rendering for following chart values: server.ingress.annotations, server.ingress.hosts, server.ingressGrpc.annotations, server.ingressGrpc.hosts, server.config
|
||||||
|
|
|
@ -176,7 +176,7 @@ Merge Argo Configuration with Preset Configuration
|
||||||
{{- $config := (mergeOverwrite (deepCopy (omit .Values.configs.cm "create" "annotations")) (.Values.server.config | default dict)) -}}
|
{{- $config := (mergeOverwrite (deepCopy (omit .Values.configs.cm "create" "annotations")) (.Values.server.config | default dict)) -}}
|
||||||
{{- $preset := include "argo-cd.config.cm.presets" . | fromYaml | default dict -}}
|
{{- $preset := include "argo-cd.config.cm.presets" . | fromYaml | default dict -}}
|
||||||
{{- range $key, $value := mergeOverwrite $preset $config }}
|
{{- range $key, $value := mergeOverwrite $preset $config }}
|
||||||
{{- $fmted := $value | toString }}
|
{{- $fmted := tpl ($value | toString) $ }}
|
||||||
{{- if not (eq $fmted "") }}
|
{{- if not (eq $fmted "") }}
|
||||||
{{ $key }}: {{ $fmted | toYaml }}
|
{{ $key }}: {{ $fmted | toYaml }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -14,6 +14,6 @@ metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with (mergeOverwrite (deepCopy (omit .Values.configs.rbac "create" "annotations")) (.Values.server.rbacConfig | default dict)) }}
|
{{- with (mergeOverwrite (deepCopy (omit .Values.configs.rbac "create" "annotations")) (.Values.server.rbacConfig | default dict)) }}
|
||||||
data:
|
data:
|
||||||
{{- toYaml . | nindent 2 }}
|
{{- tpl (toYaml .) $ | nindent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -16,7 +16,7 @@ metadata:
|
||||||
{{- with .Values.server.ingressGrpc.annotations }}
|
{{- with .Values.server.ingressGrpc.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- range $key, $value := . }}
|
{{- range $key, $value := . }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
{{ $key }}: {{ tpl $value $ | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
@ -26,7 +26,7 @@ spec:
|
||||||
rules:
|
rules:
|
||||||
{{- if .Values.server.ingressGrpc.hosts }}
|
{{- if .Values.server.ingressGrpc.hosts }}
|
||||||
{{- range $host := .Values.server.ingressGrpc.hosts }}
|
{{- range $host := .Values.server.ingressGrpc.hosts }}
|
||||||
- host: {{ $host }}
|
- host: {{ tpl $host $ }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
{{- with $extraPaths }}
|
{{- with $extraPaths }}
|
||||||
|
|
|
@ -16,7 +16,7 @@ metadata:
|
||||||
{{- if .Values.server.ingress.annotations }}
|
{{- if .Values.server.ingress.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- range $key, $value := .Values.server.ingress.annotations }}
|
{{- range $key, $value := .Values.server.ingress.annotations }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
{{ $key }}: {{ tpl $value $ | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and .Values.server.ingressGrpc.isAWSALB .Values.server.ingressGrpc.enabled }}
|
{{- if and .Values.server.ingressGrpc.isAWSALB .Values.server.ingressGrpc.enabled }}
|
||||||
alb.ingress.kubernetes.io/conditions.{{ template "argo-cd.server.fullname" . }}-grpc: |
|
alb.ingress.kubernetes.io/conditions.{{ template "argo-cd.server.fullname" . }}-grpc: |
|
||||||
|
@ -30,7 +30,7 @@ spec:
|
||||||
rules:
|
rules:
|
||||||
{{- if .Values.server.ingress.hosts }}
|
{{- if .Values.server.ingress.hosts }}
|
||||||
{{- range $host := .Values.server.ingress.hosts }}
|
{{- range $host := .Values.server.ingress.hosts }}
|
||||||
- host: {{ $host | quote }}
|
- host: {{ tpl $host $ | quote }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
{{- with $extraPaths }}
|
{{- with $extraPaths }}
|
||||||
|
|
|
@ -1898,6 +1898,7 @@ server:
|
||||||
# -- Enable an ingress resource for the Argo CD server
|
# -- Enable an ingress resource for the Argo CD server
|
||||||
enabled: false
|
enabled: false
|
||||||
# -- Additional ingress annotations
|
# -- Additional ingress annotations
|
||||||
|
## Annotation values may reference other values by {{ .Values.otherValue }} (be sure protect by quotation marks)
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# -- Additional ingress labels
|
# -- Additional ingress labels
|
||||||
labels: {}
|
labels: {}
|
||||||
|
@ -1908,6 +1909,7 @@ server:
|
||||||
## Argo Ingress.
|
## Argo Ingress.
|
||||||
## Hostnames must be provided if Ingress is enabled.
|
## Hostnames must be provided if Ingress is enabled.
|
||||||
## Secrets must be manually created in the namespace
|
## Secrets must be manually created in the namespace
|
||||||
|
## Hosts value may reference other values by {{ .Values.otherValue }} (be sure protect by quotation marks)
|
||||||
hosts: []
|
hosts: []
|
||||||
# - argocd.example.com
|
# - argocd.example.com
|
||||||
|
|
||||||
|
@ -1943,6 +1945,7 @@ server:
|
||||||
# -- Setup up gRPC ingress to work with an AWS ALB
|
# -- Setup up gRPC ingress to work with an AWS ALB
|
||||||
isAWSALB: false
|
isAWSALB: false
|
||||||
# -- Additional ingress annotations for dedicated [gRPC-ingress]
|
# -- Additional ingress annotations for dedicated [gRPC-ingress]
|
||||||
|
## Annotations values may reference other values by {{ .Values.otherValue }} (be sure protect by quotation marks)
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# -- Additional ingress labels for dedicated [gRPC-ingress]
|
# -- Additional ingress labels for dedicated [gRPC-ingress]
|
||||||
labels: {}
|
labels: {}
|
||||||
|
@ -1965,6 +1968,7 @@ server:
|
||||||
## Argo Ingress.
|
## Argo Ingress.
|
||||||
## Hostnames must be provided if Ingress is enabled.
|
## Hostnames must be provided if Ingress is enabled.
|
||||||
## Secrets must be manually created in the namespace
|
## Secrets must be manually created in the namespace
|
||||||
|
## Hosts value may reference other values by {{ .Values.otherValue }} (be sure protect by quotation marks)
|
||||||
##
|
##
|
||||||
hosts: []
|
hosts: []
|
||||||
# - argocd.example.com
|
# - argocd.example.com
|
||||||
|
|
Loading…
Reference in a new issue