Skip to content

Commit 3fde530

Browse files
committed
Bundle/Copy: Fix the kubeconfig copy for microshift bundle
Only podman bundle doesn't have the kubeconfig so this PR switch the logic so that other preset make use of it.
1 parent 31b39d2 commit 3fde530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/crc/machine/bundle/copier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (copier *Copier) CopyPrivateSSHKey(srcPath string) error {
7070
}
7171

7272
func (copier *Copier) CopyKubeConfig() error {
73-
if copier.srcBundle.IsOpenShift() {
73+
if !copier.srcBundle.IsPodman() {
7474
kubeConfigFileName := filepath.Base(copier.srcBundle.GetKubeConfigPath())
7575
srcPath := copier.srcBundle.GetKubeConfigPath()
7676
destPath := copier.resolvePath(kubeConfigFileName)

0 commit comments

Comments
 (0)