Skip to content

Commit 033c436

Browse files
authored
[ZEPPELIN-6176] imagePullSecrets is skipped in interpreter other than spark
### What is this PR for? interpreters that are not in spark group skip imagePullSecrets field so that container image pulling get failed ### What type of PR is it? Bug Fix ### What is the Jira issue? * Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN-6176 ### How should this be tested? manual test done (python interpreter with spark connect) ### Questions: * Does the license files need to update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Closes #4914 from HalimKim/ZEPPELIN-6176. Signed-off-by: Philipp Dallig <[email protected]>
1 parent e928edb commit 033c436

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

k8s/interpreter/100-interpreter-spec.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ spec:
4242
{% endif %}
4343
restartPolicy: Never
4444
terminationGracePeriodSeconds: 30
45+
{% if zeppelin.k8s.interpreter.imagePullSecrets is defined %}
46+
imagePullSecrets:
47+
{% for secret in zeppelin.k8s.interpreter.imagePullSecrets.split(',') %}
48+
- name: {{secret}}
49+
{% endfor %}
50+
{% endif %}
4551
containers:
4652
- name: {{zeppelin.k8s.interpreter.container.name}}
4753
image: {{zeppelin.k8s.interpreter.container.image}}
@@ -101,12 +107,6 @@ spec:
101107
volumeMounts:
102108
- name: spark-home
103109
mountPath: /spark
104-
{% if zeppelin.k8s.interpreter.imagePullSecrets is defined %}
105-
imagePullSecrets:
106-
{% for secret in zeppelin.k8s.interpreter.imagePullSecrets.split(',') %}
107-
- name: {{secret}}
108-
{% endfor %}
109-
{% endif %}
110110
volumes:
111111
- name: spark-home
112112
emptyDir: {}

0 commit comments

Comments
 (0)