Skip to content

Commit

Permalink
fix: add docker secret to tekton-results and minio
Browse files Browse the repository at this point in the history
  • Loading branch information
psturc committed Sep 25, 2024
1 parent fd90799 commit ca6a88c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions integration-tests/scripts/konflux-e2e-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,20 @@ done
log "INFO" "running tests with github user: ${GITHUB_USER}"

# ROSA HCP workaround for Docker limits
oc create namespace konflux-otel
oc create sa open-telemetry-opentelemetry-collector -n konflux-otel

# for namespaces 'minio-operator' and 'tekton-results'
oc get secret/pull-secret -n openshift-config --template='{{index .data ".dockerconfigjson" | base64decode}}' > ./global-pull-secret.json
oc get secret -n openshift-config -o yaml pull-secret > global-pull-secret.yaml
yq -i '.metadata.namespace = "konflux-otel"' global-pull-secret.yaml

yq -i e 'del(.metadata.namespace)' global-pull-secret.yaml
oc registry login --registry=docker.io --auth-basic="$DOCKER_IO_AUTH" --to=./global-pull-secret.json
oc apply -f global-pull-secret.yaml -n konflux-otel
oc set data secret/pull-secret -n konflux-otel --from-file=.dockerconfigjson=./global-pull-secret.json
oc secrets link open-telemetry-opentelemetry-collector pull-secret --for=pull -n konflux-otel

for ns in minio-operator tekton-results; do
oc apply -f global-pull-secret.yaml -n $ns
oc set data secret/pull-secret -n $ns --from-file=.dockerconfigjson=./global-pull-secret.json
done

oc secrets link minio-operator pull-secret --for=pull -n minio-operator
oc secrets link storage-sa --for=pull -n tekton-results


# Prepare git, pair branch if necessary, Install Konflux and run e2e tests
cd "$(mktemp -d)"
Expand Down

0 comments on commit ca6a88c

Please sign in to comment.