Closed missedone closed 1 month ago
looks like the return statement is incorrect if, for example, image pull secrets is null https://github.com/kubeflow/spark-operator/blob/release-2.0/internal/controller/sparkapplication/submission.go#L198-L218
I noticed an issue with the latest version of the Spark Operator. The deployment always defaults to imagePullPolicy: IfNotPresent
, and it does not respect the user configuration.
FYI @ChenYi015 @jacobsalway
yes, the issue exists on both master
branch and release-2.0
branch, which means in both 1.4.x and 2.0.x version.
PR #2222 fixes the issue and has been verified in our QA environment in AWS EKS
Description
I'd like to set the
spec.imagePullPolicy: Always
, however, the it didn't take effect, and the drive pod yaml shows the value isIfNotPresent
Reproduction Code [Required]
Steps to reproduce the behavior: apply the sample spec
checked the spark-operator log, got info below
we can see the
imagePullPolicy
is missing in the arguments listExpected behavior
the conf
spark.kubernetes.container.image.pullPolicy
should be set and pass to driver and executor to always pull the latest imageActual behavior
we can see the
imagePullPolicy
is missing in the arguments listTerminal Output Screenshot(s)
see logs above
Environment & Versions
Additional context
N/A