Skip to content

Commit ce9b11e

Browse files
yalindogusahinyalin.sahin
andauthored
Add support for KERNEL_VOLUMES and KERNEL_VOLUME_MOUNTS to Spark Operator (#1430)
Co-authored-by: yalin.sahin <yalin.sahin@tradition.ch>
1 parent b31b3e9 commit ce9b11e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

etc/kernel-launchers/operators/scripts/sparkoperator.k8s.io-v1beta2.yaml.j2

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ spec:
3838
cores: 1
3939
coreLimit: 1000m
4040
memory: 1g
41+
volumeMounts:
42+
{% if kernel_volume_mounts is defined %}
43+
{% for mount in kernel_volume_mounts %}
44+
- {{ mount }}
45+
{% endfor %}
46+
{% endif %}
47+
volumes:
48+
{% if kernel_volumes is defined %}
49+
{% for volume in kernel_volumes %}
50+
- {{ volume }}
51+
{% endfor %}
52+
{% endif %}
4153
executor:
4254
env:
4355
# Add any custom envs here that aren't already configured for the kernel's environment
@@ -54,6 +66,18 @@ spec:
5466
cores: 1
5567
coreLimit: 1000m
5668
memory: 1g
69+
volumeMounts:
70+
{% if kernel_volume_mounts is defined %}
71+
{% for mount in kernel_volume_mounts %}
72+
- {{ mount }}
73+
{% endfor %}
74+
{% endif %}
75+
volumes:
76+
{% if kernel_volumes is defined %}
77+
{% for volume in kernel_volumes %}
78+
- {{ volume }}
79+
{% endfor %}
80+
{% endif %}
5781
{% if kernel_sparkapp_config_map %}
5882
sparkConfigMap: {{ kernel_sparkapp_config_map }}
5983
{% endif %}

0 commit comments

Comments
 (0)