Skip to content

Commit 1b9e40b

Browse files
authored
Merge pull request #749 from oracle/introspect-job-imagepullpolicy-fix
get introspector job imagePullPolicy from domain resource (inste…
2 parents 2108a67 + 3b4e221 commit 1b9e40b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

operator/src/main/java/oracle/kubernetes/operator/helpers/JobStepContext.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,11 @@ String getImageName() {
266266
}
267267

268268
String getImagePullPolicy() {
269-
return KubernetesConstants.IFNOTPRESENT_IMAGEPULLPOLICY;
269+
String imagePullPolicy = getDomain().getSpec().getImagePullPolicy();
270+
if (imagePullPolicy == null) {
271+
imagePullPolicy = KubernetesConstants.IFNOTPRESENT_IMAGEPULLPOLICY;
272+
}
273+
return imagePullPolicy;
270274
}
271275

272276
protected List<String> getContainerCommand() {

0 commit comments

Comments
 (0)