Skip to content

Commit

Permalink
Merge 28d2f5e into a349502
Browse files Browse the repository at this point in the history
  • Loading branch information
PNarode authored Jan 29, 2025
2 parents a349502 + 28d2f5e commit 05c3369
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 1 deletion.
2 changes: 2 additions & 0 deletions charts/operator-wandb/charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
initContainers:
- name: init-db
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
env:
- name: MYSQL_PORT
value: "{{ include "wandb.mysql.port" . }}"
Expand All @@ -67,6 +68,7 @@ spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
{{- include "wandb.containerSecurityContext" .Values.container.securityContext | nindent 10 }}
volumeMounts:
{{- if ne (include "wandb.redis.caCert" .) "" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
- name: bufstream
image: "{{ .Values.bufstream.image.repository }}:{{ .Values.bufstream.image.tag }}"
imagePullPolicy: {{ .Values.bufstream.image.pullPolicy }}
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
{{- with .Values.bufstream.deployment.command }}
command: {{ . }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
{{- include "wandb.containerSecurityContext" .Values.container.securityContext | nindent 10 }}
ports:
- name: http
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ spec:
{{- include "wandb.containerSecurityContext" .Values.container.securityContext | nindent 10 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
volumeMounts:
{{- if ne (include "wandb.redis.caCert" .) "" }}
- name: {{ include "executor.fullname" . }}-redis-ca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ spec:
{{- include "wandb.containerSecurityContext" .Values.container.securityContext | nindent 10 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
volumeMounts:
{{- if ne (include "wandb.redis.caCert" .) "" }}
- name: {{ include "filestream.fullname" . }}-redis-ca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ spec:
{{- include "wandb.containerSecurityContext" .Values.container.securityContext | nindent 10 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
volumeMounts:
{{- if ne (include "wandb.redis.caCert" .) "" }}
- name: {{ include "flat-run-fields-updater.fullname" . }}-redis-ca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ spec:
containers:
- name: mysql
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
{{- include "wandb.podSecurityContext" .Values.container.securityContext | nindent 10 }}
ports:
- name: mysql
Expand Down Expand Up @@ -89,4 +90,4 @@ spec:
- name: data
persistentVolumeClaim:
claimName: {{ include "mysql.fullname" . }}-data
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
{{- include "nginx.podSecurityContext" .Values.pod.securityContext | nindent 6 }}
containers:
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
name: {{ .Chart.Name }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
command:
- /otelcol-contrib
- --config=/conf/config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
{{- include "wandb.containerSecurityContext" .Values.container.securityContext | nindent 10 }}
volumeMounts:
{{- if ne (include "wandb.redis.caCert" .) "" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
args:
- --mysqld.address=$(MYSQL_HOST):$(MYSQL_PORT)
- --mysqld.username=$(MYSQL_USER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
volumeMounts:
{{- if ne (include "wandb.redis.caCert" .) "" }}
- name: {{ include "app.fullname" . }}-redis-ca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
{{- include "wandb.containerSecurityContext" .Values.container.securityContext | nindent 10 }}
command: ["stackdriver_exporter"]
volumeMounts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ spec:
initContainers:
- name: {{ include "weaveTraceMigrate.fullname" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
command:
- "python"
- "migrator.py"
Expand All @@ -67,6 +68,7 @@ spec:
containers:
- name: {{ include "weaveTrace.fullname" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
{{- include "wandb.containerSecurityContext" .Values.container.securityContext | nindent 10 }}
ports:
- name: http
Expand Down
2 changes: 2 additions & 0 deletions charts/operator-wandb/charts/weave/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
containers:
- name: {{ include "weave.fullname" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
{{- include "wandb.containerSecurityContext" .Values.container.securityContext | nindent 10 }}
ports:
- name: http
Expand Down Expand Up @@ -91,6 +92,7 @@ spec:

- name: {{ include "weave.fullname" . }}-cache-clear
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
{{- include "wandb.containerSecurityContext" .Values.container.securityContext | nindent 10 }}
command: ["python", "-m", "weave.clear_cache"]
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullSecrets: {{- include "wandb.imagePullSecrets" . }}
{{- include "wandb.containerSecurityContext" .Values.container.securityContext | nindent 10 }}
command:
- yace
Expand Down
9 changes: 9 additions & 0 deletions charts/operator-wandb/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,12 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Create the name of the imagePullSecret to use
*/}}
{{- define "wandb.imagePullSecrets" -}}
{{- if .Values.global.imagePullSecrets }}
{{- toYaml .Values.global.imagePullSecrets | nindent 6 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/operator-wandb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ global:
name: ""
key: ""

imgaePullSecrets: []

cloudProvider: ""

storageClass: ""
Expand Down
3 changes: 3 additions & 0 deletions charts/operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
{{- if .Values.image.pullPolicy }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
{{- end }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets: {{- toYaml .Values.image.pullSecrets | nindent 8 }}
{{- end }}
env:
{{- if .Values.extraEnv }}
{{- toYaml .Values.extraEnv | nindent 8 }}
Expand Down

0 comments on commit 05c3369

Please sign in to comment.