Commit 37a7057
feiyuzhang
feat(jupyter): use generateName for PVCs created by Notebook form
Changes the Jupyter Notebook form to use Kubernetes generateName instead
of name when creating new PVCs. This prevents naming conflicts when
notebooks are recreated or when PVCs from deleted notebooks still exist.
Changes:
- createNewPvcFormGroup(): use generateName instead of name
- Default volume names now end with '-' (required for generateName)
- Workspace volume: {notebook-name}-workspace-
- Data volumes: {notebook-name}-datavol-{n}-
Signed-off-by: Feiyu Zhang <feiyuzhang@nianticlabs.com>1 parent 7262cb1 commit 37a7057
File tree
3 files changed
+4
-4
lines changed- components/crud-web-apps/jupyter/frontend/src/app
- pages/form/form-new
- form-data-volumes
- form-workspace-volume
3 files changed
+4
-4
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
0 commit comments