Skip to content

Commit

Permalink
Revert "Deploy router controller resource from bundle"
Browse files Browse the repository at this point in the history
This reverts commit 7cf9765. Looks like
in the bundle, route controller resource does not have the vaild service
account and because of that `/etc/hosts` file not updated as expected,
which become blocker issue for current 2.22.0 release. This PR revert it
and we will put it back after it is resolved on snc side.

- crc-org/snc#747
  • Loading branch information
praveenkumar committed Jun 27, 2023
1 parent 1e6cd2b commit 567ca08
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/crc/machine/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -919,13 +919,6 @@ func logBundleDate(crcBundleMetadata *bundle.CrcBundleInfo) {
}

func ensureRoutesControllerIsRunning(sshRunner *crcssh.Runner, ocConfig oc.Config, preset crcPreset.Preset, bundleInfo *bundle.CrcBundleInfo) error {
// Check if the bundle have `/opt/crc/route_controller.yaml` file and if it has
// then use it to create the resource for router controller.
if _, _, err := sshRunner.Run("ls", "/opt/crc/route_controller.yaml"); err == nil {
_, _, err := ocConfig.RunOcCommand("apply", "-f", "/opt/crc/route_controller.yaml")
return err
}
// TODO: Remove this resource creation after crc 2.24 release
bin, err := json.Marshal(v1.Pod{
TypeMeta: metav1.TypeMeta{
Kind: "Pod",
Expand Down

0 comments on commit 567ca08

Please sign in to comment.