File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,26 @@ c.JupyterHub.named_server_limit_per_user = 3
115115c.JupyterHub.authenticator_class = DummyAuthenticator
116116
117117c.NomadSpawner.datacenters = ["dc1"]
118- c.JupyterHub.mem_limit = "2G"
118+
119+ c.NomadSpawner.mem_limit = "2G"
120+
121+
122+ c.NomadSpawner.common_images = ["jupyter/minimal-notebook:2022-08-20"]
123+
124+ def csi_volume_parameters(spawner):
125+ if spawner.user_options["volume_csi_plugin_id"] == "nfs":
126+ return {
127+ "gid" : "1000",
128+ "uid" : "1000"
129+ }
130+ else:
131+ return None
132+ c.NomadSpawner.csi_volume_parameters = csi_volume_parameters
133+
134+
135+ def vault_policies(spawner):
136+ return [f"my-policy-{spawner.user.name}"]
137+ c.NomadSpawner.vault_policies = vault_policies
119138
120139 EOF
121140
You can’t perform that action at this time.
0 commit comments