Skip to content

Commit 7c1fce0

Browse files
committed
feat: Add image tag to api pod environment
1 parent 6020f0c commit 7c1fce0

27 files changed

+9425
-39
lines changed

charts/operator-wandb/templates/_env.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{- $allExtraEnvFrom := mergeOverwrite $global $values $local -}}
66
{{- range $key, $value := $allExtraEnvFrom }}
77
- name: {{ $key }}
8-
valueFrom:
8+
valueFrom:
99
{{ toYaml $value | nindent 4 }}
1010
{{- end -}}
1111
{{- end -}}
@@ -110,7 +110,7 @@ Global values will override any chart-specific values.
110110
{{- define "wandb.mysqlConfigEnvs" -}}
111111
{{- /*
112112
ATTENTION!
113-
113+
114114
MYSQL_PASSWORD, MYSQL_PORT, MYSQL_HOST, MYSQL_DATABASE, MYSQL_USER
115115
116116
Are all set in the the values.yaml under global.mysql.(host,port,database,user,password)

charts/operator-wandb/templates/api.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ data:
3838
GORILLA_INTERNAL_JWT_SUBJECTS_TO_ISSUERS: {{ tpl (include "wandb.internalJWTMap" .) . }}
3939
{{- end }}
4040
GORILLA_TASK_QUEUE_WORKER_ENABLED: "false"
41+
GORILLA_IMAGE_TAG: "{{ .Values.api.image.tag }}"

charts/operator-wandb/templates/executor.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ metadata:
66
{{- include "wandb.labels" . | nindent 4 }}
77
data:
88
GORILLA_USE_PARQUET_HISTORY_STORE: "true"
9+
GORILLA_IMAGE_TAG: "{{ index .Values.executor.image.tag }}"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: {{ .Release.Name }}-filemeta-configmap
5+
labels:
6+
{{- include "wandb.labels" . | nindent 4 }}
7+
data:
8+
GORILLA_IMAGE_TAG: "{{ index .Values.filemeta.image.tag }}"

charts/operator-wandb/templates/filestream.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ metadata:
44
name: {{ .Release.Name }}-filestream-configmap
55
labels:
66
{{- include "wandb.labels" . | nindent 4 }}
7-
data: {}
7+
data:
8+
GORILLA_IMAGE_TAG: "{{ index .Values.filestream.image.tag }}"

charts/operator-wandb/templates/flat-run-fields-updater.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ data:
1010
GORILLA_RUN_UPDATE_QUEUE_ADDR: "internal://"
1111
GORILLA_RUN_UPDATE_SHADOW_QUEUE_OVERFLOW_BUCKET_NAME: "wandb"
1212
GORILLA_RUN_UPDATE_SHADOW_QUEUE_OVERFLOW_BUCKET_PREFIX: "wandb-overflow"
13+
GORILLA_IMAGE_TAG: "{{ index .Values "flat-run-fields-updater" "image" "tag" }}"

charts/operator-wandb/templates/glue.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ data:
5454

5555
# Clear task dedupe key configuration
5656
GORILLA_GLUE_CLEAR_TASK_DEDUPE_KEY_ENABLED: "false"
57+
GORILLA_IMAGE_TAG: "{{ index .Values.glue.image.tag }}"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: {{ .Release.Name }}-metric-observer-configmap
5+
labels:
6+
{{- include "wandb.commonLabels" . | nindent 4 }}
7+
data:
8+
GORILLA_FILE_HOST: "{{ .Values.global.host }}"
9+
10+
GORILLA_RUN_UPDATE_QUEUE_ADDR: "internal://"
11+
GORILLA_RUN_UPDATE_SHADOW_QUEUE_OVERFLOW_BUCKET_NAME: "wandb"
12+
GORILLA_RUN_UPDATE_SHADOW_QUEUE_OVERFLOW_BUCKET_PREFIX: "wandb-overflow"
13+
GORILLA_IMAGE_TAG: "{{ index .Values "metric-observer" "image" "tag" }}"

charts/operator-wandb/templates/parquet.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ metadata:
77
data:
88
# Port configuration
99
GORILLA_PARQUET_PORT: "8087"
10-
10+
1111
# RPC path configuration
1212
GORILLA_PARQUET_RPC_PATH: "/_goRPC_"
1313
# Task queue configuration
1414
GORILLA_TASK_QUEUE_WORKER_ENABLED: "false"
15-
15+
1616
# Parquet-specific configuration
1717
GORILLA_USE_PARQUET_HISTORY_STORE: "true"
1818
GORILLA_PARQUET_ARROW_BUFFER_SIZE: "2147483648" # 2GB
@@ -25,4 +25,5 @@ metadata:
2525
name: {{ .Release.Name }}-parquet-secret
2626
labels:
2727
{{- include "wandb.commonLabels" . | nindent 4 }}
28-
data: {}
28+
data:
29+
GORILLA_IMAGE_TAG: "{{ index .Values.parquet.image.tag }}"

charts/operator-wandb/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,7 @@ filemeta:
944944
"{{ .Release.Name }}-redis-configmap": "configMapRef"
945945
"{{ .Release.Name }}-global-configmap": "configMapRef"
946946
"{{ .Release.Name }}-global-secret": "secretRef"
947+
"{{ .Release.Name }}-filemeta-configmap": "configMapRef"
947948
envTpls:
948949
- '{{ include "wandb.downwardEnvs" . }}'
949950
- '{{ include "wandb.bucket.cwIdentity" . }}'
@@ -1549,7 +1550,7 @@ metric-observer:
15491550
"{{ .Release.Name }}-redis-configmap": "configMapRef"
15501551
"{{ .Release.Name }}-global-configmap": "configMapRef"
15511552
"{{ .Release.Name }}-global-secret": "secretRef"
1552-
"{{ .Release.Name }}-flat-run-fields-updater-configmap": "configMapRef"
1553+
"{{ .Release.Name }}-metric-observer-configmap": "configMapRef"
15531554
envTpls:
15541555
- '{{ include "wandb.downwardEnvs" . }}'
15551556
- '{{ include "wandb.bucket.cwIdentity" . }}'

0 commit comments

Comments
 (0)