Skip to content

Commit

Permalink
vscode python - keep only one mountpath for metaflowconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ihiverlet committed Nov 28, 2023
1 parent 6be7e02 commit cd3c97e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions charts/vscode-python/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,15 @@ spec:
command:
- sh
- -c
- cp -R /src/* /dest
- |
{{- if .Values.discovery.hive }}
mkdir /dest/hive;
cp /src/hive/hive-site.xml /dest/hive/hive-site.xml;
{{- end }}
{{- if .Values.discovery.metaflow }}
mkdir /dest/metaflow;
cp /src/metaflow/config.json /dest/metaflow/config.json;
{{- end }}
volumeMounts:
- name: config-files
mountPath: /dest
Expand Down Expand Up @@ -182,10 +190,7 @@ spec:
{{- if .Values.discovery.metaflow }}
- name: config-files
mountPath: /home/{{ .Values.environment.user}}/.metaflowconfig
subPath: metaflowconf
- name: config-files
mountPath: /home/{{ .Values.environment.user}}/.metaflowconfig/config.json
subPath: metaflow/config.json
subPath: metaflow
{{- end }}
- mountPath: /dev/shm
name: dshm
Expand Down

0 comments on commit cd3c97e

Please sign in to comment.