Skip to content

Commit 5797b00

Browse files
committed
Revert using a DEVFILE_PROXY env var
There is no proxy deployed in the internal test cluster. As such, this env var no longer makes sense.
1 parent 4d6a785 commit 5797b00

File tree

7 files changed

+0
-19
lines changed

7 files changed

+0
-19
lines changed

.ibm/pipelines/kubernetes-tests.sh

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ cleanup_namespaces
1515
export SKIP_USER_LOGIN_TESTS=true
1616
(
1717
set -e
18-
export DEVFILE_PROXY="$(kubectl get svc -n devfile-proxy nginx -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' || true)"
19-
echo Using Devfile proxy: ${DEVFILE_PROXY}
2018
make install
2119
make test-integration-cluster
2220
) |& tee "/tmp/${LOGFILE}"

.ibm/pipelines/openshift-tests.sh

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ cleanup_namespaces
1616

1717
(
1818
set -e
19-
export DEVFILE_PROXY="$(kubectl get svc -n devfile-proxy nginx -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' || true)"
20-
echo Using Devfile proxy: ${DEVFILE_PROXY}
2119
make install
2220
make test-integration-cluster
2321
make test-e2e

.ibm/pipelines/windows-test-script.ps1

-8
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,6 @@ function Run-Test {
7171
oc login -u apikey -p ${API_KEY} ${IBM_OPENSHIFT_ENDPOINT}
7272
Check-ExitCode $LASTEXITCODE
7373

74-
Shout "Getting Devfile proxy address"
75-
$DEVFILE_PROXY=$(oc get svc -n devfile-proxy nginx -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
76-
if ( $LASTEXITCODE -eq 0 )
77-
{
78-
Shout "Using Devfile proxy: $DEVFILE_PROXY"
79-
[Environment]::SetEnvironmentVariable("DEVFILE_PROXY", "$DEVFILE_PROXY")
80-
}
81-
8274
Shout "Create Binary"
8375
make install
8476
Shout "Running test"

docs/website/docs/overview/configure.md

-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ Options here are mostly used for debugging and testing `odo` behavior.
189189
| `ODO_DISABLE_TELEMETRY` | Useful for disabling [telemetry collection](https://github.com/redhat-developer/odo/blob/main/USAGE_DATA.md). **Deprecated in v3.2.0**. Use `ODO_TRACKING_CONSENT` instead. | v2.1.0 | `true` |
190190
| `GLOBALODOCONFIG` | Useful for setting a different location of global preference file `preference.yaml`. | v0.0.19 | `~/.config/odo/preference.yaml` |
191191
| `ODO_DEBUG_TELEMETRY_FILE` | Useful for debugging [telemetry](https://github.com/redhat-developer/odo/blob/main/USAGE_DATA.md). When set it will save telemetry data to a file instead of sending it to the server. | v3.0.0-alpha1 | `/tmp/telemetry_data.json` |
192-
| `DEVFILE_PROXY` | Integration tests will use this address as Devfile registry instead of `registry.stage.devfile.io` | v3.0.0-beta3 | `my-registry.example.com` |
193192
| `TELEMETRY_CALLER` | Caller identifier passed to [telemetry](https://github.com/redhat-developer/odo/blob/main/USAGE_DATA.md). Case-insensitive. Acceptable values: `vscode`, `intellij`, `jboss`. | v3.1.0 | `intellij` |
194193
| `ODO_TRACKING_CONSENT` | Useful for controlling [telemetry](https://github.com/redhat-developer/odo/blob/main/USAGE_DATA.md). Acceptable values: `yes` ([enables telemetry](https://github.com/redhat-developer/odo/blob/main/USAGE_DATA.md) and skips consent prompt), `no` (disables telemetry and consent prompt). Takes precedence over the [`ConsentTelemetry`](#preference-key-table) preference. | v3.2.0 | `yes` |
195194
| `ODO_PUSH_IMAGES` | Whether to push the images once built; this is used only when applying Devfile image components as part of a Dev Session running on Podman; this is useful for integration tests running on Podman. `true` by default | v3.7.0 | `false` |

pkg/config/config.go

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
)
99

1010
type Configuration struct {
11-
DevfileProxy *string `env:"DEVFILE_PROXY,noinit"`
1211
DockerCmd string `env:"DOCKER_CMD,default=docker"`
1312
Globalodoconfig *string `env:"GLOBALODOCONFIG,noinit"`
1413
OdoDebugTelemetryFile *string `env:"ODO_DEBUG_TELEMETRY_FILE,noinit"`

pkg/config/config_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ func TestDefaultValues(t *testing.T) {
1818
checkDefaultBoolValue(t, "OdoExperimentalMode", cfg.OdoExperimentalMode, false)
1919

2020
// Use noinit to set non initialized value as nil instead of zero-value
21-
checkNilString(t, "DevfileProxy", cfg.DevfileProxy)
2221
checkNilString(t, "Globalodoconfig", cfg.Globalodoconfig)
2322
checkNilString(t, "Globalodoconfig", cfg.Globalodoconfig)
2423
checkNilString(t, "OdoDebugTelemetryFile", cfg.OdoDebugTelemetryFile)

tests/helper/helper_generic.go

-4
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,6 @@ func SetDefaultDevfileRegistryAsStaging() {
401401

402402
func GetDevfileRegistryURL() string {
403403
registryURL := "https://registry.stage.devfile.io"
404-
proxy := os.Getenv("DEVFILE_PROXY")
405-
if proxy != "" {
406-
registryURL = "http://" + proxy
407-
}
408404
customReg := os.Getenv("DEVFILE_REGISTRY")
409405
if customReg != "" {
410406
registryURL = customReg

0 commit comments

Comments
 (0)