From f49066696b334e58ba5c7e42f26c392f5397f961 Mon Sep 17 00:00:00 2001 From: Benjamin Blankenmeister Date: Wed, 3 Apr 2024 12:49:10 -0400 Subject: [PATCH] Add readOnly to volumes --- charts/hail-search/Chart.yaml | 2 +- charts/hail-search/templates/deployment.yaml | 2 ++ charts/hail-search/values.yaml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/hail-search/Chart.yaml b/charts/hail-search/Chart.yaml index b6684882..1afd1816 100644 --- a/charts/hail-search/Chart.yaml +++ b/charts/hail-search/Chart.yaml @@ -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. diff --git a/charts/hail-search/templates/deployment.yaml b/charts/hail-search/templates/deployment.yaml index cf043036..84de61b0 100644 --- a/charts/hail-search/templates/deployment.yaml +++ b/charts/hail-search/templates/deployment.yaml @@ -28,6 +28,7 @@ spec: - name: ssd-datasets {{- if .Values.persistentVolume.enabled }} persistentVolumeClaim: + readOnly: true claimName: {{ include "hail-search.fullname" . }}-pvc {{- else }} emptyDir: {} @@ -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}} diff --git a/charts/hail-search/values.yaml b/charts/hail-search/values.yaml index c80116f4..fc65f1e9 100644 --- a/charts/hail-search/values.yaml +++ b/charts/hail-search/values.yaml @@ -53,6 +53,7 @@ initContainers: |- volumeMounts: - mountPath: {{ $.Values.environment.SSD_DATASETS_DIR }} name: ssd-datasets + readOnly: true {{ end -}} {{ end }} {{- range $path, $queries := $.Values.cachedReferenceDatasetQueries -}}