chore(helm): proper port mapping for s3 urls

If minio is used, and openreplay is running in custom port, make sure
that the port info is passed along to the frontend for replay.
This commit is contained in:
rjshrjndrn 2022-09-02 02:48:51 +02:00
parent fc1be37524
commit 3769f16f86
6 changed files with 8 additions and 8 deletions

View file

@ -58,10 +58,10 @@ spec:
value: 'https://{{ .Values.global.domainName }}'
- name: S3_HOST
{{- if eq .Values.global.s3.endpoint "http://minio.db.svc.cluster.local:9000" }}
value: 'https://{{ .Values.global.domainName }}'
{{- else }}
value: 'https://{{ .Values.global.domainName }}:{{ .Values.global.ingress.controller.service.ports.https}}'
{{- else}}
value: '{{ .Values.global.s3.endpoint }}'
{{- end }}
{{- end}}
- name: S3_KEY
value: {{ .Values.global.s3.accessKey }}
- name: S3_SECRET

View file

@ -46,7 +46,7 @@ spec:
value: "{{ .Values.global.s3.region }}"
- name: S3_HOST
{{- if eq .Values.global.s3.endpoint "http://minio.db.svc.cluster.local:9000" }}
value: 'https://{{ .Values.global.domainName }}'
value: 'https://{{ .Values.global.domainName }}:{{ .Values.global.ingress.controller.service.ports.https}}'
{{- else}}
value: '{{ .Values.global.s3.endpoint }}'
{{- end}}

View file

@ -60,7 +60,7 @@ spec:
value: 'https://{{ .Values.global.domainName }}'
- name: S3_HOST
{{- if eq .Values.global.s3.endpoint "http://minio.db.svc.cluster.local:9000" }}
value: 'https://{{ .Values.global.domainName }}'
value: 'https://{{ .Values.global.domainName }}:{{ .Values.global.ingress.controller.service.ports.https}}'
{{- else}}
value: '{{ .Values.global.s3.endpoint }}'
{{- end}}

View file

@ -36,7 +36,7 @@ spec:
value: 'https://{{ .Values.global.domainName }}'
- name: S3_HOST
{{- if eq .Values.global.s3.endpoint "http://minio.db.svc.cluster.local:9000" }}
value: 'https://{{ .Values.global.domainName }}'
value: 'https://{{ .Values.global.domainName }}:{{ .Values.global.ingress.controller.service.ports.https}}'
{{- else}}
value: '{{ .Values.global.s3.endpoint }}'
{{- end}}

View file

@ -36,7 +36,7 @@ spec:
value: 'https://{{ .Values.global.domainName }}'
- name: S3_HOST
{{- if eq .Values.global.s3.endpoint "http://minio.db.svc.cluster.local:9000" }}
value: 'https://{{ .Values.global.domainName }}'
value: 'https://{{ .Values.global.domainName }}:{{ .Values.global.ingress.controller.service.ports.https}}'
{{- else}}
value: '{{ .Values.global.s3.endpoint }}'
{{- end}}

View file

@ -36,7 +36,7 @@ spec:
value: 'https://{{ .Values.global.domainName }}'
- name: S3_HOST
{{- if eq .Values.global.s3.endpoint "http://minio.db.svc.cluster.local:9000" }}
value: 'https://{{ .Values.global.domainName }}'
value: 'https://{{ .Values.global.domainName }}:{{ .Values.global.ingress.controller.service.ports.https}}'
{{- else}}
value: '{{ .Values.global.s3.endpoint }}'
{{- end}}