From d434efe86cce9aecb25b4462ecffb66139c301ad Mon Sep 17 00:00:00 2001 From: OpenShift Cherrypick Robot Date: Fri, 15 Nov 2024 18:21:01 +0100 Subject: [PATCH] hide commands related to tokens (#1939) Co-authored-by: Nil Gallego --- .ibm/pipelines/openshift-ci-tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ibm/pipelines/openshift-ci-tests.sh b/.ibm/pipelines/openshift-ci-tests.sh index ca26dcd8d..d277f65aa 100755 --- a/.ibm/pipelines/openshift-ci-tests.sh +++ b/.ibm/pipelines/openshift-ci-tests.sh @@ -175,8 +175,10 @@ apply_yaml_files() { sed -i "s/K8S_CLUSTER_API_SERVER_URL:.*/K8S_CLUSTER_API_SERVER_URL: ${ENCODED_API_SERVER_URL}/g" "$dir/auth/secrets-rhdh-secrets.yaml" sed -i "s/K8S_CLUSTER_NAME:.*/K8S_CLUSTER_NAME: ${ENCODED_CLUSTER_NAME}/g" "$dir/auth/secrets-rhdh-secrets.yaml" + set +x token=$(oc get secret "${secret_name}" -n "${project}" -o=jsonpath='{.data.token}') sed -i "s/OCM_CLUSTER_TOKEN: .*/OCM_CLUSTER_TOKEN: ${token}/" "$dir/auth/secrets-rhdh-secrets.yaml" + set -x if [[ "${project}" == "showcase-rbac" || "${project}" == "showcase-rbac-nightly" || "${project}" == "showcase-rbac-1-3-x" ]]; then oc apply -f "$dir/resources/config_map/configmap-app-config-rhdh-rbac.yaml" --namespace="${project}"