Skip to content

Commit ea59159

Browse files
committed
remove helper to start the routes controller pod
this is done via a systemd service on the bundle which automatically starts the routes controller pod after the cluster is started
1 parent cad6cb4 commit ea59159

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

pkg/crc/machine/start.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,6 @@ func (client *client) Start(ctx context.Context, startConfig types.StartConfig)
498498
return nil, err
499499
}
500500

501-
if client.useVSock() {
502-
if err := ensureRoutesControllerIsRunning(sshRunner, ocConfig); err != nil {
503-
return nil, err
504-
}
505-
}
506501
logging.Info("Adding microshift context to kubeconfig...")
507502
if err := mergeKubeConfigFile(constants.KubeconfigFilePath); err != nil {
508503
return nil, err
@@ -566,12 +561,6 @@ func (client *client) Start(ctx context.Context, startConfig types.StartConfig)
566561
return nil, errors.Wrap(err, "Failed to update cluster ID")
567562
}
568563

569-
if client.useVSock() {
570-
if err := ensureRoutesControllerIsRunning(sshRunner, ocConfig); err != nil {
571-
return nil, err
572-
}
573-
}
574-
575564
if client.monitoringEnabled() {
576565
logging.Info("Enabling cluster monitoring operator...")
577566
if err := cluster.StartMonitoring(ocConfig); err != nil {
@@ -808,17 +797,6 @@ func logBundleDate(crcBundleMetadata *bundle.CrcBundleInfo) {
808797
}
809798
}
810799

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-
822800
func updateKubeconfig(ctx context.Context, ocConfig oc.Config, sshRunner *crcssh.Runner, kubeconfigFilePath string) error {
823801
selfSignedCAKey, selfSignedCACert, err := crctls.GetSelfSignedCA()
824802
if err != nil {

0 commit comments

Comments
 (0)