Skip to content

Commit

Permalink
Update ingress-tls-secret.yml
Browse files Browse the repository at this point in the history
Fixes anycable#47 

The normal TLS secret is stored in the tls-secret.yaml, but this ingress-tls-secret should respond to the nonAcme.hosts, which is doing it now.
  • Loading branch information
h0jeZvgoxFepBQ2C authored Oct 13, 2024
1 parent fd3d478 commit 69d44c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions anycable-go/templates/ingress-tls-secret.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{{- $values := include "anycableGo.values" . | fromYaml }}
{{- with ($values.ingress.nonAcme.hosts | default dict) }}
{{- if (.tls | and .tls.key | and .tls.crt) }}
{{- range $host := ($values.ingress.nonAcme.hosts | default list) }}
{{- if ($host.tls | and $host.tls.key | and $host.tls.crt) }}
---
apiVersion: v1
kind: Secret
metadata:
creationTimestamp: null
name: {{ .secretName }}
name: {{ $host.secretName }}
type: kubernetes.io/tls
data:
tls.crt: {{ .tls.crt | b64enc | quote }}
tls.key: {{ .tls.key | b64enc | quote }}
{{- end }}
tls.crt: {{ $host.tls.crt | b64enc | quote }}
tls.key: {{ $host.tls.key | b64enc | quote }}
{{- end }}
{{- end }}

0 comments on commit 69d44c0

Please sign in to comment.