make operator-upgrade . ./scripts/upgrade-operator.sh ++ shopt -s extglob ++ '[' '!' 777262 ']' ++ '[' '!' 1.12.5 ']' ++ GITOPS_CHANNEL=latest ++ NEW_BUILD=openshift-gitops-operator.v1.12.5 ++ case "${NEW_VER}" in ++ export GITOPS_CHANNEL=gitops-1.12 ++ GITOPS_CHANNEL=gitops-1.12 ++ echo -e '\nInstalling and upgrading to version 1.12.5 from channel gitops-1.12 ' -e Installing and upgrading to version 1.12.5 from channel gitops-1.12 ++ [[ gitops-components-automated-testing == scripts ]] ++ QUAY_USER=devtools_gitops ++ sh scripts/install-operators.sh Installing OpenShift GitOps operator -e Ensure gitops subscription exists subscription.operators.coreos.com/openshift-gitops-operator unchanged clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.12.4 condition met Completed OpenShift GitOps operator installation deployment "cluster" successfully rolled out deployment "kam" successfully rolled out deployment "openshift-gitops-applicationset-controller" successfully rolled out deployment "openshift-gitops-dex-server" successfully rolled out deployment "openshift-gitops-redis" successfully rolled out deployment "openshift-gitops-repo-server" successfully rolled out Waiting for deployment "openshift-gitops-server" rollout to finish: 0 of 1 updated replicas are available... deployment "openshift-gitops-server" successfully rolled out -e Provide cluster-admin access to argocd-application-controller service account clusterrole.rbac.authorization.k8s.io/cluster-admin added: "system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller" ++ echo -e '\nCreating a basic argocd instance' -e Creating a basic argocd instance ++ oc delete ns example-argocd --ignore-not-found ++ oc create ns example-argocd namespace/example-argocd created ++ sleep 2 ++ oc apply -f config/YAMLs/argocd-basic.yaml Warning: ArgoCD v1alpha1 version is deprecated and will be converted to v1beta1 automatically. Moving forward, please use v1beta1 as the ArgoCD API version. argocd.argoproj.io/argocd created ++ oc wait argocd argocd -n example-argocd '--for=jsonpath={.status.phase}=Available' --timeout=60s argocd.argoproj.io/argocd condition met ++ [[ gitops-1.12 == \g\i\t\o\p\s\-\1\.\9 ]] ++ echo -e '\nCreating some sample applications' -e Creating some sample applications ++ oc apply -f config/YAMLs/sample-applications.yaml application.argoproj.io/builds-config created application.argoproj.io/console-config created application.argoproj.io/image-config created ++ apps=("builds-config" "console-config" "image-config") ++ declare -a apps ++ len=3 ++ i=0 ++ [[ 0 -lt 3 ]] +++ oc get app builds-config -n openshift-gitops -o 'jsonpath={.status.sync.status}' ++ [[ '' = \S\y\n\c\e\d ]] ++ echo 'Waiting for builds-config app to be in Healthy and Synced state' Waiting for builds-config app to be in Healthy and Synced state ++ sleep 10 ++ [[ 0 -lt 3 ]] +++ oc get app builds-config -n openshift-gitops -o 'jsonpath={.status.sync.status}' ++ [[ Synced = \S\y\n\c\e\d ]] +++ oc get app builds-config -n openshift-gitops -o 'jsonpath={.status.health.status}' ++ [[ Healthy = \H\e\a\l\t\h\y ]] ++ echo 'builds-config app in Healthy and Synced state' builds-config app in Healthy and Synced state +++ expr 0 + 1 ++ i=1 ++ [[ 1 -lt 3 ]] +++ oc get app console-config -n openshift-gitops -o 'jsonpath={.status.sync.status}' ++ [[ Synced = \S\y\n\c\e\d ]] +++ oc get app console-config -n openshift-gitops -o 'jsonpath={.status.health.status}' ++ [[ Healthy = \H\e\a\l\t\h\y ]] ++ echo 'console-config app in Healthy and Synced state' console-config app in Healthy and Synced state +++ expr 1 + 1 ++ i=2 ++ [[ 2 -lt 3 ]] +++ oc get app image-config -n openshift-gitops -o 'jsonpath={.status.sync.status}' ++ [[ Synced = \S\y\n\c\e\d ]] +++ oc get app image-config -n openshift-gitops -o 'jsonpath={.status.health.status}' ++ [[ Healthy = \H\e\a\l\t\h\y ]] ++ echo 'image-config app in Healthy and Synced state' image-config app in Healthy and Synced state +++ expr 2 + 1 ++ i=3 ++ [[ 3 -lt 3 ]] ++ echo -e '\nPreparing for the upgrade, connect to VPN if not connected already' -e Preparing for the upgrade, connect to VPN if not connected already ++ echo -e '\n\nEnter the password from bitwarden for account |shared-qe-temp.src5.75b4d5 when prompted' -e Enter the password from bitwarden for account |shared-qe-temp.src5.75b4d5 when prompted ++ INDEX=registry-proxy.engineering.redhat.com/rh-osbs/iib:777262 ++ MIRROR=quay.io/devtools_gitops/iib:777262 ++ echo iib index = registry-proxy.engineering.redhat.com/rh-osbs/iib:777262 iib index = registry-proxy.engineering.redhat.com/rh-osbs/iib:777262 ++ echo mirror index = quay.io/devtools_gitops/iib:777262 mirror index = quay.io/devtools_gitops/iib:777262 ++ oc get secrets pull-secret -n openshift-config -o 'template={{index .data ".dockerconfigjson"}}' ++ base64 -d ++ [[ '' == true ]] ++ mv /Users/trdoyle/.docker/config.json /Users/trdoyle/.docker/config_tmp.json ++ mv ./authfile /Users/trdoyle/.docker/config.json ++ docker login --username '|shared-qe-temp.src5.75b4d5' brew.registry.redhat.io Password: WARNING! Your password will be stored unencrypted in /Users/trdoyle/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credential-stores Login Succeeded ++ mv /Users/trdoyle/.docker/config.json ./authfilewithbrew ++ mv /Users/trdoyle/.docker/config_tmp.json /Users/trdoyle/.docker/config.json ++ oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=authfilewithbrew secret/pull-secret data updated ++ [[ '' == true ]] ++ docker pull registry-proxy.engineering.redhat.com/rh-osbs/iib:777262 --platform linux/arm64 777262: Pulling from rh-osbs/iib 47a424328612: Already exists 5d5771e51f28: Pull complete 68ad5f70973c: Pull complete e0b741c8caf6: Pull complete d8f5190cc585: Pull complete 5613ab3d09fb: Pull complete Digest: sha256:1ded2a96bcccfbd6014d0ada65b49c96eb07145a6a26c2e897ed7c8211dd9b97 Status: Downloaded newer image for registry-proxy.engineering.redhat.com/rh-osbs/iib:777262 registry-proxy.engineering.redhat.com/rh-osbs/iib:777262 ++ docker tag registry-proxy.engineering.redhat.com/rh-osbs/iib:777262 quay.io/devtools_gitops/iib:777262-arm64 ++ docker push quay.io/devtools_gitops/iib:777262-arm64 The push refers to repository [quay.io/devtools_gitops/iib] d57da855c569: Pushed 23d7a90fdacd: Pushed 14942d4e993f: Pushed 65ed245f242d: Pushed 6705994e09c5: Layer already exists 43b98d37bc53: Layer already exists 777262-arm64: digest: sha256:922657ad611805138ff9602dd012f1d85a99a01d690cb2c0e5f5325c86b89670 size: 1587 ++ docker pull registry-proxy.engineering.redhat.com/rh-osbs/iib:777262 --platform linux/amd64 777262: Pulling from rh-osbs/iib 93809c7db2a0: Already exists 766eb4e6e310: Already exists 9c359b0ebb1f: Pull complete b620d3faebd0: Pull complete 0eed47adb369: Pull complete 0679ec0d323e: Pull complete Digest: sha256:1ded2a96bcccfbd6014d0ada65b49c96eb07145a6a26c2e897ed7c8211dd9b97 Status: Downloaded newer image for registry-proxy.engineering.redhat.com/rh-osbs/iib:777262 registry-proxy.engineering.redhat.com/rh-osbs/iib:777262 ++ docker tag registry-proxy.engineering.redhat.com/rh-osbs/iib:777262 quay.io/devtools_gitops/iib:777262-amd64 ++ docker push quay.io/devtools_gitops/iib:777262-amd64 The push refers to repository [quay.io/devtools_gitops/iib] e248bc37e3f2: Pushed 25f70c7d1cdf: Pushed 57bf03feed6e: Pushed e3cf87b4ff26: Pushed d3fbfed1573d: Layer already exists e2e51ecd22dc: Layer already exists 777262-amd64: digest: sha256:b7c98acc6f079b4057540c40aaa56bebe24743fe56d315b575da605784bebd67 size: 1588 ++ docker manifest create quay.io/devtools_gitops/iib:777262 quay.io/devtools_gitops/iib:777262-arm64 quay.io/devtools_gitops/iib:777262-amd64 --amend Created manifest list quay.io/devtools_gitops/iib:777262 ++ docker manifest push quay.io/devtools_gitops/iib:777262 sha256:38be5a55fb94a3e29be0490a610e845c10bb0de7d8e63b24447fcb1bd988dde7 ++ oc patch operatorhub.config.openshift.io/cluster '-p={"spec":{"disableAllDefaultSources":true}}' --type=merge operatorhub.config.openshift.io/cluster patched ++ oc apply -f config/YAMLs/image-content-source-policy.yaml imagecontentsourcepolicy.operator.openshift.io/brew-registry unchanged ++ cat ++ oc apply -f - catalogsource.operators.coreos.com/redhat-operators created ++ rm authfile