[#5561] Remove odo url (#5571)

* Remove `odo url` from CLI layer

* Adapt tests

* Adapt test from deleted `cmd_devfile_delete_test.go`

This test still makes sense, as it tests the removal
of URL-related resources, like Services and Ingresses.

* Remove call to `odo project set ...` in test, as suggested in review

This command will get removed in the near future.

* Remove places where URL manipulation could modify  Devfiles

Also remove dead code

* Remove unused `updateURL` field from EnvInfo struct

* Adapt test by mimicking some behavior that `odo url create` used to perform

`odo url` used to modify the `env.yaml` file,
and `odo dev` currently creates Kubernetes/OCP resources related to URLs.

We may remove this test later on if `odo dev`
no longer needs to create such Ingresses and Routes.

* Remove all places where URLs, Ingresses and Routes are manipulated

* Port test in cmd_dev_test instead and make sure no Ingress/Route is created

* Remove no-longer `test-cmd-devfile-url` target from Makefile

The corresponding test file has been deleted.

* Remove `create url` command reference from V3 docs, as suggested in review

* Use existing `devfile-with-multiple-endpoints.yaml` Devfile  in test, as suggested in review
This commit is contained in:
Armel Soro
2022-03-28 16:39:53 +02:00
committed by GitHub
parent 77d6b6df5c
commit 2132cb516f
43 changed files with 70 additions and 7720 deletions

View File

@@ -15,10 +15,6 @@ mockgen -source=pkg/storage/storage.go \
-package storage \
-destination pkg/storage/mock_Client.go
mockgen -source=pkg/url/url.go \
-package url \
-destination pkg/url/mock_Client.go
mockgen -source=pkg/devfile/image/image.go \
-package image \
-destination pkg/devfile/image/mock_Backend.go