@@ -689,35 +689,6 @@ func addNameServerToInstance(sshRunner *crcssh.Runner, ns string) error {
689
689
return nil
690
690
}
691
691
692
- // Return proxy config if VM is present
693
- func GetProxyConfig (machineName string ) (* network.ProxyConfig , error ) {
694
- // Here we are only checking if the VM exist and not the status of the VM.
695
- // We might need to improve and use crc status logic, only
696
- // return if the Openshift is running as part of status.
697
- libMachineAPIClient , cleanup , err := createLibMachineClient (false )
698
- defer cleanup ()
699
- if err != nil {
700
- return nil , err
701
- }
702
- host , err := libMachineAPIClient .Load (machineName )
703
-
704
- if err != nil {
705
- return nil , errors .New (err .Error ())
706
- }
707
-
708
- _ , crcBundleMetadata , err := getBundleMetadataFromDriver (host .Driver )
709
- if err != nil {
710
- return nil , errors .Newf ("Error loading bundle metadata: %v" , err )
711
- }
712
-
713
- clusterConfig , err := getClusterConfig (crcBundleMetadata )
714
- if err != nil {
715
- return nil , errors .Newf ("Error loading cluster configuration: %v" , err )
716
- }
717
-
718
- return clusterConfig .ProxyConfig , nil
719
- }
720
-
721
692
// Return console URL if the VM is present.
722
693
func GetConsoleURL (consoleConfig ConsoleConfig ) (ConsoleResult , error ) {
723
694
// Here we are only checking if the VM exist and not the status of the VM.
0 commit comments