chore(helmchart): added missed part of yaml file to sink helm chart
This commit is contained in:
parent
31c852df2b
commit
ca78bca3d1
2 changed files with 11 additions and 1 deletions
|
|
@ -67,7 +67,6 @@ func main() {
|
|||
},
|
||||
false,
|
||||
)
|
||||
|
||||
log.Printf("Sink service started\n")
|
||||
|
||||
sigchan := make(chan os.Signal, 1)
|
||||
|
|
|
|||
|
|
@ -55,6 +55,17 @@ spec:
|
|||
# AWS uses bucketname.endpoint/object while others use endpoint/bucketname/object
|
||||
- name: ASSETS_ORIGIN
|
||||
{{- if eq .Values.global.s3.endpoint "http://minio.db.svc.cluster.local:9000" }}
|
||||
# Local minio Installation
|
||||
value: 'https://{{ .Values.global.domainName }}/{{.Values.global.s3.assetsBucket}}'
|
||||
{{- else if contains "amazonaws.com" .Values.global.s3.endpoint }}
|
||||
# AWS S3
|
||||
# Ref: https://stackoverflow.com/questions/53634583/go-template-split-string-by-delimiter
|
||||
# We need https://bucketname.s3endpoint
|
||||
value: {{ (split "://" .Values.global.s3.endpoint)._0 }}://{{.Values.global.s3.assetsBucket}}.{{ (split "://" .Values.global.s3.endpoint)._1 }}
|
||||
{{- else }}
|
||||
# S3 compatible storage
|
||||
value: '{{ .Values.global.s3.endpoint }}/{{.Values.global.s3.assetsBucket}}'
|
||||
{{- end }}
|
||||
{{- range $key, $val := .Values.env }}
|
||||
- name: {{ $key }}
|
||||
value: '{{ $val }}'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue