Skip to content

Commit

Permalink
fix: link pull secret to console-sa for minio
Browse files Browse the repository at this point in the history
  • Loading branch information
psturc committed Oct 11, 2024
1 parent b2ed0c1 commit 091c581
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions integration-tests/scripts/konflux-e2e-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,18 @@ 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

namespace_sa_names=$(cat << 'EOF'
minio-operator|console-sa
minio-operator|minio-operator
tekton-results|storage-sa
EOF
)
while IFS='|' read -r ns sa_name; do
oc create namespace "$ns" --dry-run=client -o yaml | oc apply -f -
oc create sa "$sa_name" -n "$ns" --dry-run=client -o yaml | oc apply -f -
oc apply -f global-pull-secret.yaml -n "$ns"
oc set data secret/pull-secret -n "$ns" --from-file=.dockerconfigjson=./global-pull-secret.json
if ! oc get secret/pull-secret -n "$ns" &> /dev/null; then
oc apply -f global-pull-secret.yaml -n "$ns"
oc set data secret/pull-secret -n "$ns" --from-file=.dockerconfigjson=./global-pull-secret.json
fi
oc secrets link "$sa_name" pull-secret --for=pull -n "$ns"
done <<< "$namespace_sa_names"

Expand Down

0 comments on commit 091c581

Please sign in to comment.