Skip to content

Commit 1e533c0

Browse files
authored
chore: inline the ingress template (#185)
Inline and remove the contents of ingress.tpl
1 parent 179f92d commit 1e533c0

File tree

2 files changed

+15
-23
lines changed

2 files changed

+15
-23
lines changed

templates/_ingress.tpl

Lines changed: 0 additions & 22 deletions
This file was deleted.

templates/ingress.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ metadata:
77
namespace: {{ .Release.Namespace | quote }}
88
annotations: {{ toYaml .Values.ingress.annotations | nindent 4 }}
99
spec:
10-
{{- include "coder.ingress.tls" . }}
1110
rules:
1211
- host: {{ .Values.ingress.host | quote }}
1312
http:
@@ -41,4 +40,19 @@ spec:
4140
name: {{ include "coder.serviceName" . }}
4241
port:
4342
name: tcp-{{ include "coder.serviceName" . }}
43+
{{- if .Values.ingress.tls.enable }}
44+
tls:
45+
{{- if and .Values.ingress.host .Values.ingress.tls.hostSecretName }}
46+
- hosts:
47+
- {{ .Values.ingress.host | quote }}
48+
secretName: {{ .Values.ingress.tls.hostSecretName }}
49+
{{- end }}
50+
{{- if .Values.devurls }}
51+
{{- if and .Values.devurls.host .Values.ingress.tls.devurlsHostSecretName }}
52+
- hosts:
53+
- {{ .Values.coderd.devurlsHost }}
54+
secretName: {{ .Values.ingress.tls.devurlsHostSecretName }}
55+
{{- end }}
56+
{{- end }}
57+
{{- end }}
4458
{{- end }}

0 commit comments

Comments
 (0)