Skip to content

Commit 7b81016

Browse files
committed
Make sure the gitea-sync script uses the new namespaces
1 parent 65f4629 commit 7b81016

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/gitea-sync.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ GITEA_USER=$(oc extract -n vp-gitea secret/gitea-admin-secret --to=- --keys=user
6767
GITEA_PASS=$(oc extract -n vp-gitea secret/gitea-admin-secret --to=- --keys=password 2>/dev/null)
6868
echo "Got gitea credentials"
6969

70-
UPSTREAM_REPO=$(oc get patterns -n openshift-operators -o yaml | yq '.items[0].spec.gitSpec.originRepo')
70+
UPSTREAM_REPO=$(oc get patterns -n patterns-operator -o yaml | yq '.items[0].spec.gitSpec.originRepo')
7171
REPO_NAME=$(basename "${UPSTREAM_REPO}")
72-
GITEA_REPO=$(oc get patterns -n openshift-operators -o yaml | yq '.items[0].spec.gitSpec.targetRepo')
72+
GITEA_REPO=$(oc get patterns -n patterns-operator -o yaml | yq '.items[0].spec.gitSpec.targetRepo')
7373
GITEA_ROUTE=$(oc get routes -n vp-gitea gitea-route -o yaml | yq '.spec.host')
7474

7575
if [ -z "${REPO_NAME}" ]; then

0 commit comments

Comments
 (0)