fix(helm): proper aws endpoint detection
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
9160b42113
commit
3f73bae22f
7 changed files with 11 additions and 8 deletions
|
|
@ -74,7 +74,7 @@ spec:
|
|||
- name: LICENSE_KEY
|
||||
value: '{{ .Values.global.enterpriseEditionLicense }}'
|
||||
- name: AWS_ENDPOINT
|
||||
value: '{{ .Values.global.s3.endpoint }}'
|
||||
value: '{{- include "openreplay.s3Endpoint" . }}'
|
||||
- name: AWS_REGION
|
||||
value: '{{ .Values.global.s3.region }}'
|
||||
- name: KAFKA_SERVERS
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ spec:
|
|||
value: {{ .Values.global.s3.secretKey }}
|
||||
{{- end }}
|
||||
- name: AWS_ENDPOINT
|
||||
value: '{{ .Values.global.s3.endpoint }}'
|
||||
value: '{{- include "openreplay.s3Endpoint" . }}'
|
||||
- name: AWS_REGION
|
||||
value: '{{ .Values.global.s3.region }}'
|
||||
- name: BUCKET_NAME
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ spec:
|
|||
value: {{ .Values.global.s3.secretKey }}
|
||||
{{- end }}
|
||||
- name: AWS_ENDPOINT
|
||||
value: '{{ .Values.global.s3.endpoint }}'
|
||||
value: '{{- include "openreplay.s3Endpoint" . }}'
|
||||
- name: AWS_REGION
|
||||
value: '{{ .Values.global.s3.region }}'
|
||||
{{- include "openreplay.env.redis_string" .Values.global.redis | nindent 12 }}
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ spec:
|
|||
value: {{ .Values.global.s3.secretKey }}
|
||||
{{- end }}
|
||||
- name: AWS_ENDPOINT
|
||||
value: '{{ .Values.global.s3.endpoint }}'
|
||||
value: '{{- include "openreplay.s3Endpoint" . }}'
|
||||
- name: AWS_REGION
|
||||
value: '{{ .Values.global.s3.region }}'
|
||||
- name: BUCKET_NAME
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ spec:
|
|||
value: {{ .Values.global.s3.secretKey }}
|
||||
{{- end }}
|
||||
- name: AWS_ENDPOINT
|
||||
value: '{{ .Values.global.s3.endpoint }}'
|
||||
value: '{{- include "openreplay.s3Endpoint" . }}'
|
||||
- name: AWS_REGION
|
||||
value: '{{ .Values.global.s3.region }}'
|
||||
- name: BUCKET_NAME
|
||||
|
|
|
|||
|
|
@ -33,10 +33,13 @@ ingress-nginx: &ingress-nginx
|
|||
{{- if contains "minio" .Values.global.s3.endpoint -}}
|
||||
{{- include "openreplay.domainURL" . -}}
|
||||
{{- else -}}
|
||||
{{- .Values.global.s3.endpoint -}}
|
||||
{{- .Values.global.s3.endpoint -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{/* Endpoint wil be empty if used with aws iam roles*/}}
|
||||
{{- else if and .Values.global.s3.accessKey .Values.global.s3.secretKey -}}
|
||||
{{- printf "https://s3.%s.amazonaws.com" .Values.global.s3.region -}}
|
||||
{{- else -}}
|
||||
{{- .Values.global.s3.endpoint -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
|
|
|||
|
|
@ -404,7 +404,7 @@ spec:
|
|||
- name: AWS_DEFAULT_REGION
|
||||
value: "{{ .Values.global.s3.region }}"
|
||||
- name: AWS_ENDPOINT
|
||||
value: "{{ .Values.global.s3.endpoint }}"
|
||||
value: "{{- include "openreplay.s3Endpoint" . }}"
|
||||
- name: VAULT_BUCKET
|
||||
value: "{{ .Values.global.s3.vaultBucket }}"
|
||||
image: amazon/aws-cli
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue