Skip to content

Commit

Permalink
fix: never set the image pull policy to never
Browse files Browse the repository at this point in the history
Signed-off-by: so8wuyaicohv1ohy <[email protected]>
  • Loading branch information
realtimetodie committed Jun 4, 2023
1 parent 63831a8 commit 37b1d6a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/controllers/core/kubernetesapply/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,13 +498,6 @@ func (r *Reconciler) createEntitiesToDeploy(ctx context.Context,
e = k8s.InjectParallelPodManagementPolicy(e)
}

// When working with a local k8s cluster, we set the pull policy to Never,
// to ensure that k8s fails hard if the image is missing from docker.
policy := v1.PullIfNotPresent
if r.dkc.WillBuildToKubeContext(k8s.KubeContext(r.k8sClient.APIConfig().CurrentContext)) {
policy = v1.PullNever
}

for _, imageMapName := range imageMapNames {
imageMap := imageMaps[types.NamespacedName{Name: imageMapName}]
imageMapSpec := imageMap.Spec
Expand Down

0 comments on commit 37b1d6a

Please sign in to comment.