Skip to content

Commit

Permalink
feat: revert "feat: transform imagePullPolicy when using local cluster (
Browse files Browse the repository at this point in the history
#9495)" (#9703) (#9708)

This backs out commit c1834b6.
  • Loading branch information
plumpy authored Feb 4, 2025
1 parent d44f8de commit 62fba6a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 166 deletions.
11 changes: 0 additions & 11 deletions pkg/skaffold/deploy/kubectl/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,17 +241,6 @@ func (k *Deployer) Deploy(ctx context.Context, out io.Writer, builds []graph.Art
return err
}

cluster, err := config.GetCluster(ctx, config.GetClusterOpts{})
if err != nil {
return err
}
if cluster.Local {
manifests, err = manifests.ReplaceImagePullPolicy(manifest.NewResourceSelectorImagePullPolicy())
if err != nil {
return err
}
}

childCtx, endTrace = instrumentation.StartTrace(ctx, "Deploy_LoadImages")
if err := k.imageLoader.LoadImages(childCtx, out, k.localImages, k.originalImages, builds); err != nil {
endTrace(instrumentation.TraceEndError(err))
Expand Down
88 changes: 0 additions & 88 deletions pkg/skaffold/kubernetes/manifest/image_pull_policy.go

This file was deleted.

67 changes: 0 additions & 67 deletions pkg/skaffold/kubernetes/manifest/image_pull_policy_test.go

This file was deleted.

0 comments on commit 62fba6a

Please sign in to comment.