Skip to content

Commit 5a223ae

Browse files
committed
update all remaining references to use new namespace
Signed-off-by: Jaideep Rao <[email protected]>
1 parent 58fbf49 commit 5a223ae

File tree

18 files changed

+39
-39
lines changed

18 files changed

+39
-39
lines changed

hack/non-olm-install/install-gitops-operator.sh

+11-11
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,24 @@ function print_help() {
6262
function check_pod_status_ready() {
6363
# Wait for the deployment rollout to complete before trying to list the pods
6464
# to ensure that only pods corresponding to the new version is considered.
65-
${KUBECTL} rollout status deploy -n ${NAMESPACE_PREFIX}system --timeout=5m
65+
${KUBECTL} rollout status deploy -n openshift-gitops-operator --timeout=5m
6666
if [ $? -ne 0 ]; then
6767
echo "[INFO] Deployments did not reach healthy state within 5m. Rolling back"
6868
else
6969
echo "[INFO] Deployments reached healthy state."
7070
return 0
7171
fi
7272

73-
pod_name=$(${KUBECTL} get pods --no-headers --field-selector="status.phase!=Succeeded" -o custom-columns=":metadata.name" -n ${NAMESPACE_PREFIX}system | grep "${1}");
73+
pod_name=$(${KUBECTL} get pods --no-headers --field-selector="status.phase!=Succeeded" -o custom-columns=":metadata.name" -n openshift-gitops-operator | grep "${1}");
7474
if [ -z "$pod_name" ]; then
7575
echo "[WARN] Ignoring empty pod name"
7676
return 0
7777
fi
7878
echo "[DEBUG] Pod name : $pod_name";
79-
${KUBECTL} wait pod --for=condition=Ready $pod_name -n ${NAMESPACE_PREFIX}system --timeout=150s;
79+
${KUBECTL} wait pod --for=condition=Ready $pod_name -n ${NAMESPACE} --timeout=150s;
8080
if [ $? -ne 0 ]; then
8181
echo "[INFO] Pod '$pod_name' failed to become Ready in desired time. Logs from the pod:"
82-
${KUBECTL} logs $pod_name -n ${NAMESPACE_PREFIX}system --all-containers;
82+
${KUBECTL} logs $pod_name -n ${NAMESPACE} --all-containers;
8383
echo "[ERROR] Install/Upgrade failed. Performing rollback";
8484
rollback
8585
return 1
@@ -455,7 +455,7 @@ function migrate_olm_installation() {
455455
fi
456456
apply_kustomize_manifests
457457
# Check pod status if it becomes ready
458-
check_pod_status_ready gitops-operator-controller-manager
458+
check_pod_status_ready openshift-gitops-operator-controller-manager
459459

460460
if [ $? -eq 0 ]; then
461461
# Non OLM installation is successful and its safe to remove the OLM specific
@@ -469,20 +469,20 @@ function migrate_olm_installation() {
469469
# When migrating from OLM to non OLM installation, deployment created by the OLM operator
470470
# must be scaled down to avoid 2 conflicting operators operating on the same CR.
471471
function scale_down_olm_deploy() {
472-
${KUBECTL} scale deploy/gitops-operator-controller-manager -n openshift-operators --replicas=0
472+
${KUBECTL} scale deploy/openshift-gitops-operator-controller-manager -n ${NAMESPACE} --replicas=0
473473
}
474474

475475
# If migration to non OLM installation fails, revert to OLM based installation
476476
# by scaling back the OLM created deployments from 0 to 1.
477477
# Note: Rollback is possible only if the corresponding Subscription and ClusterServiceVersion objects are available.
478478
function rollback_to_olm() {
479-
${KUBECTL} scale deploy/gitops-operator-controller-manager -n openshift-operators --replicas=1
479+
${KUBECTL} scale deploy/openshift-gitops-operator-controller-manager -n ${NAMESPACE} --replicas=1
480480
}
481481

482482
# Deletes the subscription for openshift-gitops-operator
483483
function remove_subscription() {
484484
#Delete the gitops subscription
485-
${KUBECTL} delete subscription openshift-gitops-operator -n openshift-operators
485+
${KUBECTL} delete subscription openshift-gitops-operator -n ${NAMESPACE}
486486
}
487487

488488
# Deletes the ClusterServiceVersion Object from the system
@@ -493,21 +493,21 @@ function remove_installed_csv() {
493493
echo "[INFO] No installed CSV in Subscription"
494494
return
495495
fi
496-
${KUBECTL} delete clusterserviceversion ${installedCSV} -n openshift-operators
496+
${KUBECTL} delete clusterserviceversion ${installedCSV} -n ${NAMESPACE}
497497
}
498498

499499
# Waits till the OLM removal is successful.
500500
function wait_for_olm_removal() {
501501
# Wait till the operator deployment is completely removed.
502-
${KUBECTL} wait --for=delete deploy/gitops-operator-controller-manager -n openshift-operators --timeout=60s
502+
${KUBECTL} wait --for=delete deploy/openshift-gitops-operator-controller-manager -n ${NAMESPACE} --timeout=60s
503503
}
504504

505505
# Extract the custom configuration set in the Subscription and
506506
# store the env settings in a file which can be sourced when running
507507
# the non-OLM installation.
508508
function extract_custom_env_in_subscription() {
509509
# Get the GitOps subscription object as yaml
510-
${KUBECTL} get subscription openshift-gitops-operator -n openshift-operators -o yaml > ${WORK_DIR}/subscription.yaml
510+
${KUBECTL} get subscription openshift-gitops-operator -n ${NAMESPACE} -o yaml > ${WORK_DIR}/subscription.yaml
511511
# check if config.env element is present
512512
element=$(${YQ} '.spec.config.env' ${WORK_DIR}/subscription.yaml)
513513
if [ "${element}" == "null" ]; then

hack/scripts/run-non-olm-kuttl-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ done
5454

5555
#replace the namespace for assert in test file
5656

57-
sed -i 's/openshift-operators/gitops-operator-system/g' $temp_dir/sequential/1-018_validate_disable_default_instance/02-assert.yaml \
57+
sed -i 's/openshift-operators/openshift-gitops-operator/g' $temp_dir/sequential/1-018_validate_disable_default_instance/02-assert.yaml \
5858
$temp_dir/sequential/1-035_validate_argocd_secret_repopulate/04-check_controller_pod_status.yaml
5959

6060
cleanup() {

test/openshift/e2e/ignore-tests/sequential/1-018_validate_disable_default_instance/02-patch-subscription.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ commands:
44
# patches the subscription to set an environment variable
55
- script: |
66
if ! [ -z $NON_OLM ]; then
7-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
7+
oc patch deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator \
88
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"DISABLE_DEFAULT_ARGOCD_INSTANCE","value":"true"}]}]}}}}'
99
1010
elif [ -z $CI ]; then

test/openshift/e2e/ignore-tests/sequential/1-018_validate_disable_default_instance/04-patch-subscription.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ commands:
44
# patches the subscription to set an environment variable
55
- script: |
66
if ! [ -z $NON_OLM ]; then
7-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
7+
oc patch deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator \
88
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"DISABLE_DEFAULT_ARGOCD_INSTANCE","value":null}]}]}}}}'
99
1010
elif [ -z $CI ]; then

test/openshift/e2e/sequential/1-034_validate_custom_roles/02-patch-subscription.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ commands:
55
- script: |
66
77
if ! [ -z $NON_OLM ]; then
8-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
8+
oc patch deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator \
99
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"CONTROLLER_CLUSTER_ROLE","value":"custom-argocd-role"},{"name":"SERVER_CLUSTER_ROLE", "value":"custom-argocd-role"}]}]}}}}'
1010
1111
elif ! [ -z $CI ]; then
1212
13-
oc patch -n openshift-operators subscription `subscription=gitops-operator- && oc get subscription --all-namespaces | grep $subscription | head -1 | awk '{print $2}'`\
13+
oc patch -n openshift-gitops-operator subscription `subscription=gitops-operator- && oc get subscription --all-namespaces | grep $subscription | head -1 | awk '{print $2}'`\
1414
--type merge --patch '{"spec": {"config": {"env": [{"name": "CONTROLLER_CLUSTER_ROLE", "value": "custom-argocd-role"},{"name": "SERVER_CLUSTER_ROLE", "value": "custom-argocd-role"}]}}}'
1515
1616
else

test/openshift/e2e/sequential/1-034_validate_custom_roles/06-revert-patch.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ kind: TestStep
33
commands:
44
- script: |
55
if ! [ -z $NON_OLM ]; then
6-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
6+
oc patch deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator \
77
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"CONTROLLER_CLUSTER_ROLE","value":null},{"name":"SERVER_CLUSTER_ROLE", "value":null}]}]}}}}'
88
99
elif ! [ -z $CI ]; then
10-
oc patch -n openshift-operators subscription `subscription=gitops-operator- && oc get subscription --all-namespaces | grep $subscription | head -1 | awk '{print $2}'` --type json --patch='[ { "op": "remove", "path": "/spec/config" } ]'
10+
oc patch -n openshift-gitops-operator subscription `subscription=gitops-operator- && oc get subscription --all-namespaces | grep $subscription | head -1 | awk '{print $2}'` --type json --patch='[ { "op": "remove", "path": "/spec/config" } ]'
1111
else
1212
oc patch subscription/openshift-gitops-operator -n openshift-gitops-operator --type json --patch='[ { "op": "remove", "path": "/spec/config" } ]'
1313
fi

test/openshift/e2e/sequential/1-050_validate_sso_config/04-disable-dex-through-sub.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: TestStep
33
commands:
44
- script: |
55
if ! [ -z $NON_OLM ]; then
6-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
6+
oc patch deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator \
77
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"DISABLE_DEX","value":"true"}]}]}}}}'
88
99
elif [ -z $CI ]; then

test/openshift/e2e/sequential/1-050_validate_sso_config/05-unset-disable-dex-env-var.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: TestStep
33
commands:
44
- script: |
55
if ! [ -z $NON_OLM ]; then
6-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
6+
oc patch deployment gitops-operator-controller-manager -n openshift-gitops-operator \
77
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"DISABLE_DEX","value":""}]}]}}}}'
88
99
elif [ -z $CI ]; then

test/openshift/e2e/sequential/1-056_validate_managed-by/04-add_env.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ commands:
66
set -e
77
88
if ! [ -z $NON_OLM ]; then
9-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
9+
oc patch deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator \
1010
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"REMOVE_MANAGED_BY_LABEL_ON_ARGOCD_DELETION","value":"true"}]}]}}}}'
1111
1212
elif [ -z $CI ]; then

test/openshift/e2e/sequential/1-056_validate_managed-by/05-check.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ kind: TestStep
33
commands:
44
- script: |
55
if ! [ -z $NON_OLM ]; then
6-
label_value=$(oc get deployment gitops-operator-controller-manager -n gitops-operator-system -o json | jq '.spec.template.spec.containers[]|select(.name=="manager")|.env[] | select(.name=="REMOVE_MANAGED_BY_LABEL_ON_ARGOCD_DELETION")|.value')
6+
label_value=$(oc get deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator -o json | jq '.spec.template.spec.containers[]|select(.name=="manager")|.env[] | select(.name=="REMOVE_MANAGED_BY_LABEL_ON_ARGOCD_DELETION")|.value')
77
if [ -z $label_value ]; then
88
echo "REMOVE_MANAGED_BY_LABEL_ON_ARGOCD_DELETION not set"
99
exit 1
1010
else
1111
exit 0
1212
fi
1313
elif [ -z $CI ]; then
14-
label_value=$(oc get subscriptions openshift-gitops-operator -n openshift-operators -o json | jq '.spec.config.env[]|select(.name=="REMOVE_MANAGED_BY_LABEL_ON_ARGOCD_DELETION").value')
14+
label_value=$(oc get subscriptions openshift-gitops-operator -n openshift-gitops-operator -o json | jq '.spec.config.env[]|select(.name=="REMOVE_MANAGED_BY_LABEL_ON_ARGOCD_DELETION").value')
1515
if [ -z $label_value ]; then
1616
echo "REMOVE_MANAGED_BY_LABEL_ON_ARGOCD_DELETION not set"
1717
exit 1

test/openshift/e2e/sequential/1-056_validate_managed-by/08-remove_env.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ commands:
44
# patches the subscription to set an environment variable
55
- script: |
66
if ! [ -z $NON_OLM ]; then
7-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
7+
oc patch deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator \
88
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"REMOVE_MANAGED_BY_LABEL_ON_ARGOCD_DELETION","value":null}]}]}}}}'
99
elif [ -z $CI ]; then
10-
oc patch -n openshift-operators subscription openshift-gitops-operator \
10+
oc patch -n openshift-gitops-operator subscription openshift-gitops-operator \
1111
--type json --patch '[{"op": "remove", "path": "/spec/config"}]'
1212
else
1313
oc patch -n openshift-gitops-operator subscription `subscription=gitops-operator- && oc get subscription --all-namespaces | grep $subscription | head -1 | awk '{print $2}'` \

test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/02-add_env.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ kind: TestStep
33
commands:
44
- script: |
55
if ! [ -z $NON_OLM ]; then
6-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
6+
oc patch deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator \
77
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"DISABLE_DEFAULT_ARGOCD_CONSOLELINK","value":"true"}]}]}}}}'
88
elif [ -z $CI ]; then
9-
oc patch -n openshift-operators subscription openshift-gitops-operator \
9+
oc patch -n openshift-gitops-operator subscription openshift-gitops-operator \
1010
--type merge --patch '{"spec": {"config": {"env": [{"name": "DISABLE_DEFAULT_ARGOCD_CONSOLELINK", "value": "true"}]}}}'
1111
else
1212
oc patch -n openshift-gitops-operator subscription `subscription=gitops-operator- && oc get subscription --all-namespaces | grep $subscription | head -1 | awk '{print $2}'` \

test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/03-check-env.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: TestStep
33
commands:
44
- script: |
55
if ! [ -z $NON_OLM ]; then
6-
label_value=$(oc get deployment gitops-operator-controller-manager -n gitops-operator-system -o json | jq '.spec.template.spec.containers[]|select(.name=="manager")|.env[] | select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK")|.value')
6+
label_value=$(oc get deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator -o json | jq '.spec.template.spec.containers[]|select(.name=="manager")|.env[] | select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK")|.value')
77
if ! [[ "${label_value}" == '"true"' ]]; then
88
echo "Label value: $label_value"
99
echo "DISABLE_DEFAULT_ARGOCD_CONSOLELINK not set"
@@ -12,7 +12,7 @@ commands:
1212
exit 0
1313
fi
1414
elif [ -z $CI ]; then
15-
label_value=$(oc get subscriptions openshift-gitops-operator -n openshift-operators -o json | jq '.spec.config.env[]|select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK").value')
15+
label_value=$(oc get subscriptions openshift-gitops-operator -n openshift-gitops-operator -o json | jq '.spec.config.env[]|select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK").value')
1616
if ! [[ "${label_value}" == '"true"' ]]; then
1717
echo "Label value: $label_value"
1818
echo "DISABLE_DEFAULT_ARGOCD_CONSOLELINK not set"

test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/04-disable-env.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ kind: TestStep
33
commands:
44
- script: |
55
if ! [ -z $NON_OLM ]; then
6-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
6+
oc patch deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator \
77
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"DISABLE_DEFAULT_ARGOCD_CONSOLELINK","value":"false"}]}]}}}}'
88
99
elif [ -z $CI ]; then
10-
oc patch -n openshift-operators subscription openshift-gitops-operator \
10+
oc patch -n openshift-gitops-operator subscription openshift-gitops-operator \
1111
--type merge --patch '{"spec": {"config": {"env": [{"name": "DISABLE_DEFAULT_ARGOCD_CONSOLELINK", "value": "false"}]}}}'
1212
else
1313
oc patch -n openshift-gitops-operator subscription `subscription=gitops-operator- && oc get subscription --all-namespaces | grep $subscription | head -1 | awk '{print $2}'` \

test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/05-check-env.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: TestStep
33
commands:
44
- script: |
55
if ! [ -z $NON_OLM ]; then
6-
label_value=$(oc get deployment gitops-operator-controller-manager -n gitops-operator-system -o json | jq '.spec.template.spec.containers[]|select(.name=="manager")|.env[] | select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK")|.value')
6+
label_value=$(oc get deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator -o json | jq '.spec.template.spec.containers[]|select(.name=="manager")|.env[] | select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK")|.value')
77
if ! [[ "${label_value}" == '"false"' ]]; then
88
echo "Label value: $label_value"
99
echo "DISABLE_DEFAULT_ARGOCD_CONSOLELINK set"
@@ -12,7 +12,7 @@ commands:
1212
exit 0
1313
fi
1414
elif [ -z $CI ]; then
15-
label_value=$(oc get subscriptions openshift-gitops-operator -n openshift-operators -o json | jq '.spec.config.env[]|select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK").value')
15+
label_value=$(oc get subscriptions openshift-gitops-operator -n openshift-gitops-operator -o json | jq '.spec.config.env[]|select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK").value')
1616
1717
if ! [[ "${label_value}" == '"false"' ]]; then
1818
echo "DISABLE_DEFAULT_ARGOCD_CONSOLELINK set"

test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/06-empty-valued-env.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ kind: TestStep
33
commands:
44
- script: |
55
if ! [ -z $NON_OLM ]; then
6-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
6+
oc patch deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator \
77
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"DISABLE_DEFAULT_ARGOCD_CONSOLELINK","value":""}]}]}}}}'
88
99
elif [ -z $CI ]; then
10-
oc patch -n openshift-operators subscription openshift-gitops-operator \
10+
oc patch -n openshift-gitops-operator subscription openshift-gitops-operator \
1111
--type merge --patch '{"spec": {"config": {"env": [{"name": "DISABLE_DEFAULT_ARGOCD_CONSOLELINK", "value": ""}]}}}'
1212
else
1313
oc patch -n openshift-gitops-operator subscription `subscription=gitops-operator- && oc get subscription --all-namespaces | grep $subscription | head -1 | awk '{print $2}'` \

test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/07-check-env.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ kind: TestStep
33
commands:
44
- script: |
55
if ! [ -z $NON_OLM ]; then
6-
label_value=$(oc get deployment gitops-operator-controller-manager -n gitops-operator-system -o json | jq -r '.spec.template.spec.containers[]|select(.name=="manager")|.env[] | select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK")|.value')
6+
label_value=$(oc get deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator -o json | jq -r '.spec.template.spec.containers[]|select(.name=="manager")|.env[] | select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK")|.value')
77
if ! [[ "${label_value}" == null ]]; then
88
echo "DISABLE_DEFAULT_ARGOCD_CONSOLELINK is set to ${label_value}"
99
exit 1
1010
else
1111
exit 0
1212
fi
1313
elif [ -z $CI ]; then
14-
label_value=$(oc get subscriptions openshift-gitops-operator -n openshift-operators -o json | jq '.spec.config.env[]|select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK").value')
14+
label_value=$(oc get subscriptions openshift-gitops-operator -n openshift-gitops-operator -o json | jq '.spec.config.env[]|select(.name=="DISABLE_DEFAULT_ARGOCD_CONSOLELINK").value')
1515
1616
if ! [[ "${label_value}" == '""' ]]; then
1717
echo "DISABLE_DEFAULT_ARGOCD_CONSOLELINK is set to ${label_value}"

test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/08-remove-env.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ kind: TestStep
33
commands:
44
- script: |
55
if ! [ -z $NON_OLM ]; then
6-
oc patch deployment gitops-operator-controller-manager -n gitops-operator-system \
6+
oc patch deployment openshift-gitops-operator-controller-manager -n openshift-gitops-operator \
77
-p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"DISABLE_DEFAULT_ARGOCD_CONSOLELINK","value":null}]}]}}}}'
88
99
elif [ -z $CI ]; then
10-
oc -n openshift-operators patch subscription openshift-gitops-operator --type='json' -p='[{"op": "remove", "path": "/spec/config" }]'
10+
oc -n openshift-gitops-operator patch subscription openshift-gitops-operator --type='json' -p='[{"op": "remove", "path": "/spec/config" }]'
1111
else
1212
oc -n openshift-gitops-operator patch subscription `subscription=gitops-operator- && oc get subscription --all-namespaces | grep $subscription | head -1 | awk '{print $2}'` --type='json' -p='[{"op": "remove", "path": "/spec/config" }]'
1313
fi

0 commit comments

Comments
 (0)