From 6027820165c17439c00605f1fc7039957951fde6 Mon Sep 17 00:00:00 2001 From: James Munroe Date: Wed, 29 Nov 2023 16:59:14 -0500 Subject: [PATCH] add public readwrite shared folder --- config/clusters/hhmi/common.values.yaml | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/config/clusters/hhmi/common.values.yaml b/config/clusters/hhmi/common.values.yaml index c6796075c0..9010da5f21 100644 --- a/config/clusters/hhmi/common.values.yaml +++ b/config/clusters/hhmi/common.values.yaml @@ -51,6 +51,37 @@ basehub: - name: MYSQL_ROOT_PASSWORD value: "tutorial" defaultUrl: /lab + storage: + extraVolumeMounts: + - name: home + mountPath: /home/jovyan/shared-public + subPath: _shared-public + readOnly: false + - name: home + mountPath: /home/jovyan/shared-readonly + subPath: _shared + readOnly: true + initContainers: + - name: volume-mount-ownership-fix + image: busybox:1.36.1 + command: + - sh + - -c + - id && chown 1000:1000 /home/jovyan /home/jovyan/shared-readonly /home/jovyan/shared-public && ls -lhd /home/jovyan + securityContext: + runAsUser: 0 + volumeMounts: + - name: home + mountPath: /home/jovyan + subPath: "{username}" + # Mounted without readonly attribute here, + # so we can chown it appropriately + - name: home + mountPath: /home/jovyan/shared-readonly + subPath: _shared + - name: home + mountPath: /home/jovyan/shared-public + subPath: _shared-public profileList: - display_name: "Loren Frank Lab" default: true