Skip to content

Commit

Permalink
Added parquet CA support
Browse files Browse the repository at this point in the history
  • Loading branch information
velotioaastha committed Nov 8, 2024
1 parent 400ecac commit c8c478b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ dependencies:
repository: file://charts/yace
version: 0.1.0
digest: sha256:bca2b6781737da6806e4485605cf9ce87b1428944b14cb88f082024cc3500bbd
generated: "2024-11-04T12:53:11.852112+05:30"
generated: "2024-11-08T13:07:42.344971+05:30"
15 changes: 15 additions & 0 deletions charts/operator-wandb/charts/parquet/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 "parquet.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 }}
21 changes: 21 additions & 0 deletions charts/operator-wandb/charts/parquet/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ spec:
mountPath: /etc/ssl/certs/redis_ca.pem
subPath: redis_ca.pem
{{- end }}
{{- if .Values.global.caCertsConfigMap }}
- name: wandb-ca-certs-user
mountPath: /usr/local/share/ca-certificates/
{{- end }}
{{- if .Values.global.customCACerts }}
{{- range $index, $v := .Values.global.customCACerts }}
- name: wandb-ca-certs
mountPath: /usr/local/share/ca-certificates/customCA{{$index}}.crt
subPath: customCA{{$index}}.crt
{{- end }}
{{- end }}
ports:
- name: parquet
containerPort: 8087
Expand Down Expand Up @@ -154,4 +165,14 @@ spec:
- key: REDIS_CA_CERT
path: redis_ca.pem
{{- end }}
{{- if .Values.global.caCertsConfigMap }}
- name: wandb-ca-certs-user
configMap:
name: {{ .Values.global.caCertsConfigMap }}
{{- end }}
{{- if .Values.global.customCACerts }}
- name: wandb-ca-certs
configMap:
name: {{ include "parquet.fullname" . }}-ca-certs
{{- end }}
{{- end }}

0 comments on commit c8c478b

Please sign in to comment.