Skip to content

Commit 0abeab3

Browse files
committed
fix: alloc mapping
1 parent 427f6c9 commit 0abeab3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

jupyterhub_nomad_spawner/templates/job.hcl.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ job "{{ job_name }}" {
5555

5656
{% if volume_data and volume_data.type == "ephemeral_disk" %}
5757
volumes = [
58-
"alloc/data/notebook:{{ volume_data.destination }}"
58+
"../alloc/data/notebook:{{ volume_data.destination }}"
5959
]
6060
{% endif %}
6161

tests/fixtures/test_create_job_with_csi_volume.nomad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ job "jupyter-notebook-123" {
1010
group "nb" {
1111

1212

13-
13+
1414
volume "notebook-data" {
1515
type = "csi"
1616
read_only = false

tests/fixtures/test_create_job_with_ephemeral_disk.nomad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ job "jupyter-notebook-123" {
3535

3636

3737
volumes = [
38-
"alloc/data/notebook:/home/jovyan/work"
38+
"../alloc/data/notebook:/home/jovyan/work"
3939
]
4040

4141

tests/fixtures/test_create_job_with_host_volume.nomad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ job "jupyter-notebook-123" {
1010
group "nb" {
1111

1212

13-
13+
1414
volume "notebook-data" {
1515
type = "host"
1616
read_only = false

0 commit comments

Comments
 (0)