Skip to content

Commit a251fd9

Browse files
VGerrispraveenkumar
authored andcommitted
bug-3635 fix generating kubeadmin-password for OKD preset
1 parent 2468363 commit a251fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/crc/machine/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ func createHost(machineConfig config.MachineConfig, preset crcPreset.Preset) err
681681
if err := crcssh.GenerateSSHKey(constants.GetPrivateKeyPath()); err != nil {
682682
return fmt.Errorf("Error generating ssh key pair: %v", err)
683683
}
684-
if preset == crcPreset.OpenShift {
684+
if preset == crcPreset.OpenShift || preset == crcPreset.OKD {
685685
if err := cluster.GenerateKubeAdminUserPassword(); err != nil {
686686
return errors.Wrap(err, "Error generating new kubeadmin password")
687687
}

0 commit comments

Comments
 (0)