Skip to content

Commit e5587c5

Browse files
authored
remove volume mount (#298)
1 parent 653e40f commit e5587c5

4 files changed

Lines changed: 11 additions & 15 deletions

File tree

charts/jupyter-pyspark/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type: application
2424
# This is the chart version. This version number should be incremented each time you make changes
2525
# to the chart and its templates, including the app version.
2626
# Versions are expected to follow Semantic Versioning (https://semver.org/)
27-
version: 3.1.0
27+
version: 3.1.1
2828
dependencies:
2929
- name: library-chart
3030
version: 2.0.3

charts/jupyter-pyspark/templates/statefulset.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ spec:
146146
- -c
147147
- |
148148
echo 'initContainer make-configmaps-writable is started';
149+
mkdir -p /dest/jupyter-ai
149150
{{ if (.Values.userPreferences.aiAssistant).enabled }}
150-
mkdir /dest/jupyter-ai
151151
cp /src/jupyter-ai/config.json /dest/jupyter-ai/config.json
152152
{{- end }}
153153
{{- if .Values.s3.enabled }}
@@ -338,12 +338,10 @@ spec:
338338
resources:
339339
{{- toYaml .Values.resources | nindent 12 }}
340340
volumeMounts:
341-
- name: jupyter-local
342-
mountPath: /home/{{ .Values.environment.user }}/.local/share/jupyter
343-
{{ if (.Values.userPreferences.aiAssistant).enabled }}
344-
- mountPath: /home/{{ .Values.environment.user }}/.local/share/jupyter/jupyter_ai
341+
{{- if (.Values.userPreferences.aiAssistant).enabled }}
342+
- name: config-files
343+
mountPath: /home/{{ .Values.environment.user }}/.local/share/jupyter/jupyter_ai
345344
subPath: jupyter-ai
346-
name: config-files
347345
{{- end }}
348346
- mountPath: /home/{{ .Values.environment.user }}/work
349347
subPath: work

charts/jupyter-python/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type: application
2222
# This is the chart version. This version number should be incremented each time you make changes
2323
# to the chart and its templates, including the app version.
2424
# Versions are expected to follow Semantic Versioning (https://semver.org/)
25-
version: 2.4.0
25+
version: 2.4.1
2626
dependencies:
2727
- name: library-chart
2828
version: 2.0.3

charts/jupyter-python/templates/statefulset.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ spec:
122122
- |
123123
echo 'initContainer make-secrets-writable is started';
124124
{{ if (.Values.userPreferences.aiAssistant).enabled }}
125-
mkdir /dest/jupyter-ai
125+
mkdir -p /dest/jupyter-ai
126126
cp /src/jupyter-ai/config.json /dest/jupyter-ai/config.json
127127
{{- end }}
128128
{{- if .Values.discovery.hive }}
@@ -289,12 +289,10 @@ spec:
289289
resources:
290290
{{- toYaml .Values.resources | nindent 12 }}
291291
volumeMounts:
292-
- name: jupyter-local
293-
mountPath: /home/{{ .Values.environment.user }}/.local/share/jupyter
294-
{{ if (.Values.userPreferences.aiAssistant).enabled }}
295-
- mountPath: /home/{{ .Values.environment.user }}/.local/share/jupyter/jupyter_ai
296-
subPath: jupyter-ai
297-
name: config-files
292+
{{- if (.Values.userPreferences.aiAssistant).enabled }}
293+
- name: config-files
294+
mountPath: /home/{{ .Values.environment.user }}/.local/share/jupyter/jupyter_ai/config.json
295+
subPath: jupyter-ai/config.json
298296
{{- end }}
299297
- mountPath: /home/{{ .Values.environment.user }}/work
300298
subPath: work

0 commit comments

Comments
 (0)