Skip to content

Commit

Permalink
Issue #838 Add virtualbox deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad authored and praveenkumar committed Nov 25, 2019
1 parent 8fa57f1 commit 48c6831
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pkg/crc/machine/driver_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package machine
import (
"github.com/code-ready/crc/pkg/crc/constants"
"github.com/code-ready/crc/pkg/crc/errors"
"github.com/code-ready/crc/pkg/crc/logging"
crcos "github.com/code-ready/crc/pkg/os"

"github.com/code-ready/crc/pkg/crc/machine/config"
Expand Down Expand Up @@ -39,6 +40,7 @@ func getDriverOptions(machineConfig config.MachineConfig) interface{} {
switch machineConfig.VMDriver {

case "virtualbox":
logging.Warn("Virtualbox support is deprecated and will be removed in the next release.")
driver = virtualbox.CreateHost(machineConfig)
case "hyperkit":
driver = hyperkit.CreateHost(machineConfig)
Expand Down
2 changes: 2 additions & 0 deletions pkg/crc/machine/driver_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package machine

import (
"github.com/code-ready/crc/pkg/crc/errors"
"github.com/code-ready/crc/pkg/crc/logging"
crcos "github.com/code-ready/crc/pkg/os"

"github.com/code-ready/crc/pkg/crc/machine/config"
Expand Down Expand Up @@ -37,6 +38,7 @@ func getDriverOptions(machineConfig config.MachineConfig) interface{} {
switch machineConfig.VMDriver {

case "virtualbox":
logging.Warn("Virtualbox support is deprecated and will be removed in the next release.")
driver = virtualbox.CreateHost(machineConfig)
case "hyperv":
driver = hyperv.CreateHost(machineConfig)
Expand Down
2 changes: 0 additions & 2 deletions pkg/crc/services/dns/dns_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"time"

"github.com/code-ready/crc/pkg/crc/errors"
"github.com/code-ready/crc/pkg/crc/output"
"github.com/code-ready/crc/pkg/crc/services"

winnet "github.com/code-ready/crc/pkg/os/windows/network"
Expand All @@ -23,7 +22,6 @@ const (
func runPostStartForOS(serviceConfig services.ServicePostStartConfig, result *services.ServicePostStartResult) (services.ServicePostStartResult, error) {
// bailout for Virtualbox
if serviceConfig.DriverName == "virtualbox" {
output.Outln("Please follow instructions in the documentation about setting hostnames for Virtualbox.")
result.Success = true
return *result, nil
}
Expand Down

0 comments on commit 48c6831

Please sign in to comment.