Skip to content

Commit

Permalink
hide commands related to tokens (#1939)
Browse files Browse the repository at this point in the history
Co-authored-by: Nil Gallego <github.i0l5z@simplelogin.com>
  • Loading branch information
openshift-cherrypick-robot and nilgaar authored Nov 15, 2024
1 parent 00f875a commit d434efe
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 @@ -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}"
Expand Down

0 comments on commit d434efe

Please sign in to comment.