Skip to content

Commit

Permalink
fix: Mount redis cert to parquet cron job (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 authored Jul 2, 2024
1 parent 91ad9f5 commit c426f57
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.14.2
version: 0.14.3
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
15 changes: 15 additions & 0 deletions charts/operator-wandb/charts/parquet/templates/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ spec:
"megabinary",
"glue",
]
volumeMounts:
{{- if ne (include "wandb.redis.caCert" .) "" }}
- name: {{ include "parquet.fullname" . }}-redis-ca
mountPath: /etc/ssl/certs/redis_ca.pem
subPath: redis_ca.pem
{{- end }}
env:
- name: GORILLA_GLUE_EXECUTE
value: "true"
Expand Down Expand Up @@ -130,5 +136,14 @@ spec:
fieldPath: status.hostIP
{{- include "parquet.extraEnv" (dict "global" $.Values.global "local" .Values) | nindent 16 }}
{{- include "wandb.extraEnvFrom" (dict "root" $ "local" .) | nindent 16 }}
volumes:
{{- if ne (include "wandb.redis.caCert" .) "" }}
- name: {{ include "parquet.fullname" . }}-redis-ca
secret:
secretName: "{{ include "wandb.redis.passwordSecret" . }}"
items:
- key: REDIS_CA_CERT
path: redis_ca.pem
{{- end }}
restartPolicy: Never
{{- end }}

0 comments on commit c426f57

Please sign in to comment.