We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2108a67 + 3b4e221 commit 1b9e40bCopy full SHA for 1b9e40b
operator/src/main/java/oracle/kubernetes/operator/helpers/JobStepContext.java
@@ -266,7 +266,11 @@ String getImageName() {
266
}
267
268
String getImagePullPolicy() {
269
- return KubernetesConstants.IFNOTPRESENT_IMAGEPULLPOLICY;
+ String imagePullPolicy = getDomain().getSpec().getImagePullPolicy();
270
+ if (imagePullPolicy == null) {
271
+ imagePullPolicy = KubernetesConstants.IFNOTPRESENT_IMAGEPULLPOLICY;
272
+ }
273
+ return imagePullPolicy;
274
275
276
protected List<String> getContainerCommand() {
0 commit comments