Skip to content
Snippets Groups Projects
Commit 5c56610e authored by OZGCloud's avatar OZGCloud
Browse files

ingress certmanager annotations

parent fc3de86e
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,11 @@ metadata: ...@@ -29,7 +29,11 @@ metadata:
annotations: {{- toYaml . | nindent 4 }} annotations: {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
more_set_headers "Access-Control-Allow-Origin: {{ (include "app.goofyAddress" .) }}"; more_set_headers "Access-Control-Allow-Origin: {{ (include "app.goofyAddress" .) }}";
{{- if (.Values.ingress).use_staging_cert }} {{- if (.Values.ingress).certManagerAnnotations -}}
{{- range (.Values.ingress).certManagerAnnotations }}
{{ . | indent 4 }}
{{- end }}
{{- else if (.Values.ingress).use_staging_cert }}
cert-manager.io/cluster-issuer: letsencrypt-staging cert-manager.io/cluster-issuer: letsencrypt-staging
{{- else }} {{- else }}
cert-manager.io/cluster-issuer: letsencrypt-prod cert-manager.io/cluster-issuer: letsencrypt-prod
...@@ -54,6 +58,8 @@ spec: ...@@ -54,6 +58,8 @@ spec:
tls: tls:
- hosts: - hosts:
- {{ trimPrefix "https://" ( include "app.baseUrl" . ) }} - {{ trimPrefix "https://" ( include "app.baseUrl" . ) }}
{{- if ne (.Values).cluster_env "dataport" }} {{- if (.Values.ingress).tlsSecretName }}
secretName: {{ (.Values.ingress).tlsSecretName }}
{{- else if ne (.Values).cluster_env "dataport" }}
secretName: {{ .Values.kop.bezeichner }}-{{ include "app.name" . }}-tls secretName: {{ .Values.kop.bezeichner }}-{{ include "app.name" . }}-tls
{{- end }} {{- end }}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment