Skip to content

Commit

Permalink
kubernetesapply: fix a comment (#6278)
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Santos <nick.santos@docker.com>
  • Loading branch information
nicks committed Dec 8, 2023
1 parent 727f5e5 commit cd6178a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controllers/core/kubernetesapply/reconciler.go
Expand Up @@ -494,8 +494,8 @@ 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.
// Set the pull policy to IfNotPresent, to ensure that
// we get a locally built image instead of the remote one.
policy := v1.PullIfNotPresent
for _, imageMapName := range imageMapNames {
imageMap := imageMaps[types.NamespacedName{Name: imageMapName}]
Expand Down

0 comments on commit cd6178a

Please sign in to comment.