Skip to content

Commit

Permalink
Add readOnly to volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
bpblanken committed Apr 3, 2024
1 parent 886a73d commit f490666
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/hail-search/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.42
version: 0.1.43
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
2 changes: 2 additions & 0 deletions charts/hail-search/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
- name: ssd-datasets
{{- if .Values.persistentVolume.enabled }}
persistentVolumeClaim:
readOnly: true
claimName: {{ include "hail-search.fullname" . }}-pvc
{{- else }}
emptyDir: {}
Expand Down Expand Up @@ -71,6 +72,7 @@ spec:
name: datasets
- mountPath: {{ .Values.environment.SSD_DATASETS_DIR }}
name: ssd-datasets
readOnly: true
restartPolicy: Always
dnsPolicy: ClusterFirst
{{- with .Values.initContainers}}
Expand Down
1 change: 1 addition & 0 deletions charts/hail-search/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ initContainers: |-
volumeMounts:
- mountPath: {{ $.Values.environment.SSD_DATASETS_DIR }}
name: ssd-datasets
readOnly: true
{{ end -}}
{{ end }}
{{- range $path, $queries := $.Values.cachedReferenceDatasetQueries -}}
Expand Down

0 comments on commit f490666

Please sign in to comment.