Skip to content

Commit

Permalink
fix(common): name of tls secret in ingress
Browse files Browse the repository at this point in the history
Signed-off-by: Roth Alain <[email protected]>
  • Loading branch information
ln-ro committed Oct 7, 2024
1 parent 5bfe874 commit 5e13566
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/common/templates/_ingress-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
- {{ .host }}
{{- end }}
{{- if or (eq $ingress.tls.type "self") (eq $ingress.tls.type "provided") }}
secretName: {{ template "library.name" $root }}-ingress-tls
secretName: {{ template "library.name" $root }}-{{$name}}-tls
{{- else if eq $ingress.tls.type "existing" }}
secretName: {{ $ingress.tls.existing.secret }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions charts/common/templates/_ingress-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- define "common.ingress.secret" -}}
{{- $root := . }}
{{- $ingresses := .Values.ingresses }}
{{- range $ingress := $ingresses }}
{{- range $name, $ingress := $ingresses }}
{{- $cert := "" }}
{{- if $ingress }}
{{- if $ingress.deploy }}
Expand All @@ -15,7 +15,7 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ template "library.name" $root }}-ingress-tls
name: {{ template "library.name" $root }}-{{$name}}-tls
labels:
{{ include "library.labels.standard" $root | indent 4 }}
app.kubernetes.io/component: ingress-tls
Expand Down

0 comments on commit 5e13566

Please sign in to comment.