Skip to content

Commit

Permalink
hide commands related to tokens (#1937)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilgaar authored Nov 15, 2024
1 parent 8ca8525 commit 624dc48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ibm/pipelines/openshift-ci-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 624dc48

Please sign in to comment.