Skip to content

Commit

Permalink
Use NewNoClient
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh committed Jul 19, 2018
1 parent ef44efe commit 4c2f120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func DoBuild(k KanikoBuildArgs) (name.Reference, v1.Image, error) {
if err != nil {
return nil, nil, err
}
k8sc, err := k8schain.NewInCluster(k8schain.Options{})
k8sc, err := k8schain.NewNoClient()
if err != nil {
return nil, nil, err
}
Expand Down Expand Up @@ -209,7 +209,7 @@ func DoPush(ref name.Reference, image v1.Image, destinations []string, tarPath s
return tarball.WriteToFile(tarPath, destRef, image, nil)
}

k8sc, err := k8schain.NewInCluster(k8schain.Options{})
k8sc, err := k8schain.NewNoClient()
if err != nil {
return err
}
Expand Down

0 comments on commit 4c2f120

Please sign in to comment.