Skip to content

Commit

Permalink
only add mounts if chart path supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Feb 26, 2024
1 parent 1d6d469 commit ed372a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ spec:
initialDelaySeconds: 5
periodSeconds: 10
resources: {{- toYaml .Values.resources | nindent 10 }}
{{- if ne .Values.chartPath "" }}
volumeMounts:
- name: wandb-chart-configmap
mountPath: /wandb-chart
{{- end }}
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
Expand All @@ -71,9 +73,11 @@ spec:
- containerPort: 8443
name: https
protocol: TCP
{{- if ne .Values.chartPath "" }}
volumes:
- name: wandb-chart-configmap
configMap:
name: wandb-chart-configmap
{{- end }}
serviceAccountName: {{ include "manager.serviceAccount.name" . }}
terminationGracePeriodSeconds: 10

0 comments on commit ed372a6

Please sign in to comment.