Skip to content

Commit

Permalink
fix: Add cert bundle (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 authored Jul 23, 2024
1 parent 2a1bb25 commit 0cacaf7
Show file tree
Hide file tree
Showing 4 changed files with 28 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.15.5
version: 0.15.6
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
15 changes: 15 additions & 0 deletions charts/operator-wandb/charts/app/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if .Values.global.customCACerts }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "wandb.fullname" . }}-ca-certs
labels:
{{- include "wandb.labels" . | nindent 4 }}
data:
{{- range $index, $pem := .Values.global.customCACerts }}
customCA{{$index}}.crt: |-
{{- range splitList "\n" $pem }}
{{ . }}
{{- end }}
{{- end }}
{{- end }}
10 changes: 10 additions & 0 deletions charts/operator-wandb/charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ spec:
mountPath: /etc/ssl/certs/redis_ca.pem
subPath: redis_ca.pem
{{- end }}
{{- range $index, $v := .Values.customCACerts }}
- name: wandb-ca-certs
mountPath: /usr/local/share/ca-certificates/customCA{{$index}}.crt
subPath: customCA{{$index}}.crt
{{- end }}
ports:
- name: http
containerPort: 8080
Expand Down Expand Up @@ -281,4 +286,9 @@ spec:
- key: REDIS_CA_CERT
path: redis_ca.pem
{{- end }}
{{- if .Values.customCACerts }}
- name: wandb-ca-certs
configMap:
name: {{ include "wandb.fullname" . }}-ca-certs
{{- 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 @@ -115,6 +115,8 @@ global:
# If the topic already exists then changing the number of partitions is not possible.
runUpdatesShadowNumPartitions: 1

customCACerts: []

weave-trace:
enabled: false

Expand Down

0 comments on commit 0cacaf7

Please sign in to comment.