Skip to content

Commit

Permalink
Bundle/Copy: Fix the kubeconfig copy for microshift bundle
Browse files Browse the repository at this point in the history
Only podman bundle doesn't have the kubeconfig so this PR switch
the logic so that other preset make use of it.
  • Loading branch information
praveenkumar committed Apr 28, 2023
1 parent 31b39d2 commit 3fde530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/crc/machine/bundle/copier.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (copier *Copier) CopyPrivateSSHKey(srcPath string) error {
}

func (copier *Copier) CopyKubeConfig() error {
if copier.srcBundle.IsOpenShift() {
if !copier.srcBundle.IsPodman() {
kubeConfigFileName := filepath.Base(copier.srcBundle.GetKubeConfigPath())
srcPath := copier.srcBundle.GetKubeConfigPath()
destPath := copier.resolvePath(kubeConfigFileName)
Expand Down

0 comments on commit 3fde530

Please sign in to comment.