Skip to content

Commit 94a5032

Browse files
committed
image pull policy
1 parent 07e0d71 commit 94a5032

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sample-operators/leader-election/k8s/operator-instance-2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spec:
77
containers:
88
- name: operator
99
image: leader-election-operator
10-
imagePullPolicy: Never
10+
imagePullPolicy: IfNotPresent
1111
env:
1212
- name: POD_NAMESPACE
1313
valueFrom:

sample-operators/leader-election/k8s/operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
containers:
1414
- name: operator
1515
image: leader-election-operator
16-
imagePullPolicy: Never
16+
imagePullPolicy: IfNotPresent
1717
env:
1818
- name: POD_NAMESPACE
1919
valueFrom:

sample-operators/leader-election/src/test/java/io/javaoperatorsdk/operator/sample/LeaderElectionE2E.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ private void deployOperatorsInOrder() {
128128
applyResources("k8s/operator.yaml");
129129
await().atMost(Duration.ofSeconds(POD_STARTUP_TIMEOUT)).untilAsserted(() -> {
130130
var pod = client.pods().inNamespace(namespace).withName(OPERATOR_1_POD_NAME).get();
131-
log.info("Operator 1: {}",pod);
132-
131+
log.info("Operator 1: {}", pod);
132+
133133
assertThat(pod.getStatus().getContainerStatuses().get(0).getReady()).isTrue();
134134
});
135135

0 commit comments

Comments
 (0)