Skip to content

Commit 0d97c6e

Browse files
committed
Fix setting empty storage class for Jupyter PVC
Signed-off-by: Shiva Krishna, Merla <[email protected]>
1 parent 925164f commit 0d97c6e

File tree

1 file changed

+4
-1
lines changed
  • test/e2e/nemo-dependencies/jupyter/templates

1 file changed

+4
-1
lines changed

test/e2e/nemo-dependencies/jupyter/templates/pvc.yaml.j2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ metadata:
44
name: {{ pvc_name }}
55
namespace: {{ namespace }}
66
spec:
7-
storageClassName: {{ '"local-path"' if localPathProvisioner.enabled else pvc.storage_class | to_json }}
7+
{% set scn = 'local-path' if localPathProvisioner.enabled else pvc.storage_class %}
8+
{% if scn != '' and scn is not none %}
9+
storageClassName: "{{ scn }}"
10+
{% endif %}
811
accessModes:
912
- ReadWriteOnce
1013
resources:

0 commit comments

Comments
 (0)