Skip to content

Commit af9acc4

Browse files
committed
opencloud gateway: set minio listener name and protocol depending on .Values.global.tls.enabled
1 parent 40a83e3 commit af9acc4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

charts/opencloud/templates/gateway/gateway.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,16 @@ spec:
7070
kubernetes.io/metadata.name: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
7171
{{- end }}
7272
{{- if and .Values.opencloud.storage.s3.internal.enabled .Values.opencloud.storage.s3.internal.httpRoute.enabled }}
73+
{{- if .Values.global.tls.enabled }}
7374
- name: minio-https
75+
{{- else }}
76+
- name: minio-http
77+
{{- end }}
78+
{{- if .Values.global.tls.enabled }}
7479
protocol: HTTPS
80+
{{- else }}
81+
protocol: HTTP
82+
{{- end }}
7583
port: {{ .Values.httpRoute.gateway.port | default 443 }}
7684
hostname: {{ .Values.global.domain.minio | quote }}
7785
{{- if .Values.global.tls.enabled }}

0 commit comments

Comments
 (0)