From 624dc48c084bbc60ba058ec4c8c8f845c8e798c7 Mon Sep 17 00:00:00 2001 From: Nil Gallego Date: Fri, 15 Nov 2024 17:11:31 +0100 Subject: [PATCH] hide commands related to tokens (#1937) --- .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 2c05ec27d..22ecc6bf8 100755 --- a/.ibm/pipelines/openshift-ci-tests.sh +++ b/.ibm/pipelines/openshift-ci-tests.sh @@ -187,8 +187,10 @@ apply_yaml_files() { fi 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}" == *rbac* ]]; then oc apply -f "$dir/resources/config_map/configmap-app-config-rhdh-rbac.yaml" --namespace="${project}"