Skip to content

Commit

Permalink
fix: Update GORILLA_FILE_STREAM_STORE_ADDRESS use the new values
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpanzella committed Nov 23, 2024
1 parent 2fb41c4 commit 35f56c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions charts/operator-wandb/charts/app/templates/_deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ spec:
value: "{{ include "app.historyStore" . }}"
- name: GORILLA_PARQUET_LIVE_HISTORY_STORE
value: "{{ include "app.liveHistoryStore" . }}"
- name: GORILLA_FILE_STREAM_STORE_ADDRESS
value: "{{ include "app.fileStreamStore" . }}"
- name: GORILLA_ARTIFACTS_GC_BATCH_SIZE
value: {{ .Values.artifactsGc.BatchSize | quote }}
- name: GORILLA_ARTIFACTS_GC_NUM_WORKERS
Expand Down
11 changes: 10 additions & 1 deletion charts/operator-wandb/charts/app/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,13 @@ kafka://$(KAFKA_CLIENT_USER):$(KAFKA_CLIENT_PASSWORD)@$(KAFKA_BROKER_HOST):$(KAF
{{- printf "bigtablev3://%s/%s,bigtablev2://%s/%s" .Values.global.bigTable.project .Values.global.bigTable.instance .Values.global.bigTable.project .Values.global.bigTable.instance -}}
{{- end -}}
mysql://$(MYSQL_USER):$(MYSQL_PASSWORD)@$(MYSQL_HOST):$(MYSQL_PORT)/$(MYSQL_DATABASE)?tls=preferred
{{- end -}}
{{- end -}}

{{/* TODO(dpanzella) - Probably need to make this support kafka as well*/}}
{{- define "app.fileStreamStore" }}
{{- if .Values.global.pubSub.enabled }}
pubsub://{{ .Values.global.pubSub.project }}/{{ .Values.global.pubSub.filestreamTopic }}
{{- else }}
mysql://$(MYSQL_USER):$(MYSQL_PASSWORD)@$(MYSQL_HOST):$(MYSQL_PORT)/$(MYSQL_DATABASE)?tls=preferred
{{- end -}}
{{- end -}}

0 comments on commit 35f56c6

Please sign in to comment.