@@ -498,11 +498,6 @@ func (client *client) Start(ctx context.Context, startConfig types.StartConfig)
498
498
return nil , err
499
499
}
500
500
501
- if client .useVSock () {
502
- if err := ensureRoutesControllerIsRunning (sshRunner , ocConfig ); err != nil {
503
- return nil , err
504
- }
505
- }
506
501
logging .Info ("Adding microshift context to kubeconfig..." )
507
502
if err := mergeKubeConfigFile (constants .KubeconfigFilePath ); err != nil {
508
503
return nil , err
@@ -566,12 +561,6 @@ func (client *client) Start(ctx context.Context, startConfig types.StartConfig)
566
561
return nil , errors .Wrap (err , "Failed to update cluster ID" )
567
562
}
568
563
569
- if client .useVSock () {
570
- if err := ensureRoutesControllerIsRunning (sshRunner , ocConfig ); err != nil {
571
- return nil , err
572
- }
573
- }
574
-
575
564
if client .monitoringEnabled () {
576
565
logging .Info ("Enabling cluster monitoring operator..." )
577
566
if err := cluster .StartMonitoring (ocConfig ); err != nil {
@@ -808,17 +797,6 @@ func logBundleDate(crcBundleMetadata *bundle.CrcBundleInfo) {
808
797
}
809
798
}
810
799
811
- func ensureRoutesControllerIsRunning (sshRunner * crcssh.Runner , ocConfig oc.Config ) error {
812
- // Check if the bundle have `/opt/crc/routes-controller.yaml` file and if it has
813
- // then use it to create the resource for the routes controller.
814
- _ , _ , err := sshRunner .Run ("ls" , "/opt/crc/routes-controller.yaml" )
815
- if err != nil {
816
- return err
817
- }
818
- _ , _ , err = ocConfig .RunOcCommand ("apply" , "-f" , "/opt/crc/routes-controller.yaml" )
819
- return err
820
- }
821
-
822
800
func updateKubeconfig (ctx context.Context , ocConfig oc.Config , sshRunner * crcssh.Runner , kubeconfigFilePath string ) error {
823
801
selfSignedCAKey , selfSignedCACert , err := crctls .GetSelfSignedCA ()
824
802
if err != nil {
0 commit comments