Skip to content

Commit b516c65

Browse files
committed
fix: choose cli default-repo over config file
1 parent 1dbc7a2 commit b516c65

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/skaffold/config/util.go

-4
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,6 @@ func GetCluster(ctx context.Context, opts GetClusterOpts) (Cluster, error) {
257257

258258
var defaultRepo = opts.DefaultRepo
259259

260-
if defaultRepo.Value() != nil && cfg.DefaultRepo != "" {
261-
defaultRepo = NewStringOrUndefined(&cfg.DefaultRepo)
262-
}
263-
264260
if local && defaultRepo.Value() == nil {
265261
registry, err := DiscoverLocalRegistry(ctx, kubeContext)
266262
switch {

0 commit comments

Comments
 (0)