Skip to content

Commit

Permalink
Fix on conflicting secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Dec 11, 2019
1 parent 06075d0 commit ed9f8a5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
9 changes: 2 additions & 7 deletions api/helm/templates/certificate.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: {{ include "name" . }}-acme-cert
name: {{ include "name" . }}-{{ .Values.settings.env }}-cert
spec:
secretName: {{ include "name" . }}-tls-cert
secretName: {{ include "name" . }}-{{ .Values.settings.env }}-cert
duration: 24h
renewBefore: 12h
{{- if eq .Values.settings.env "prod" }}
commonName: {{ .Values.settings.name }}.{{ .Values.settings.domain }}
{{- else }}
commonName: {{ .Values.settings.name }}.{{ .Values.settings.env }}.{{ .Values.settings.domain }}
{{- end }}
dnsNames:
{{- if eq .Values.settings.env "prod" }}
- {{ .Values.settings.name }}.{{ .Values.settings.domain }}
Expand Down
5 changes: 4 additions & 1 deletion api/helm/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ metadata:
spec:
tls:
- hosts:
# {{- range .Values.settings.domains }}
# - {{ .domain | quote }}
# {{- end }}
- {{ .Values.settings.domain }}
secretName: {{ include "name" . }}-tls-cert
secretName: {{ include "name" . }}-{{ .Values.settings.env }}-cert
rules:
# - host: {{ .Values.settings.name }}.{{ .Values.settings.env }}.{{ .Values.settings.domain }}
# http:
Expand Down
2 changes: 1 addition & 1 deletion api/templates/helm/Values.yaml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ settings:
domain: {{ app_domain }}
domains:
{% for domain in app_domains %}
- {{ domain }}
- domain: {{ domain }}
{% endfor %}
organisationName: {{ organization_name }}
email: {{ organization_email }}
Expand Down

0 comments on commit ed9f8a5

Please sign in to comment.