make operator-upgrade . ./scripts/upgrade-operator.sh ++ shopt -s extglob ++ '[' '!' 771760 ']' ++ '[' '!' 1.13.1 ']' ++ GITOPS_CHANNEL=latest ++ NEW_BUILD=openshift-gitops-operator.v1.13.1 ++ case "${NEW_VER}" in ++ export GITOPS_CHANNEL=gitops-1.13 ++ GITOPS_CHANNEL=gitops-1.13 ++ echo -e '\nInstalling and upgrading to version 1.13.1 from channel gitops-1.13 ' -e Installing and upgrading to version 1.13.1 from channel gitops-1.13 ++ [[ 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 created clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.0 condition met Completed OpenShift GitOps operator installation -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.13 == \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:771760 ++ MIRROR=quay.io/devtools_gitops/iib:771760 ++ echo iib index = registry-proxy.engineering.redhat.com/rh-osbs/iib:771760 iib index = registry-proxy.engineering.redhat.com/rh-osbs/iib:771760 ++ echo mirror index = quay.io/devtools_gitops/iib:771760 mirror index = quay.io/devtools_gitops/iib:771760 ++ 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 info: pull-secret was not changed ++ [[ '' == true ]] ++ docker pull registry-proxy.engineering.redhat.com/rh-osbs/iib:771760 --platform linux/arm64 771760: Pulling from rh-osbs/iib Digest: sha256:7895b12de2e20e06f345c7368df4e8e99a334c884348486012f07dbbb3f6e8a8 Status: Image is up to date for registry-proxy.engineering.redhat.com/rh-osbs/iib:771760 registry-proxy.engineering.redhat.com/rh-osbs/iib:771760 ++ docker tag registry-proxy.engineering.redhat.com/rh-osbs/iib:771760 quay.io/devtools_gitops/iib:771760-arm64 ++ docker push quay.io/devtools_gitops/iib:771760-arm64 The push refers to repository [quay.io/devtools_gitops/iib] adc8ddba9a96: Layer already exists af015cae77a0: Layer already exists 00ec64167a25: Layer already exists c6eb71fc4d2d: Layer already exists 6705994e09c5: Layer already exists 43b98d37bc53: Layer already exists 771760-arm64: digest: sha256:711870a6c7b485914c2e428d6d99c0e2c44f45c1f1685fc2996c994055cc633c size: 1587 ++ docker pull registry-proxy.engineering.redhat.com/rh-osbs/iib:771760 --platform linux/amd64 771760: Pulling from rh-osbs/iib 93809c7db2a0: Pull complete 766eb4e6e310: Pull complete b075b3a86e06: Pull complete c3db547e2feb: Pull complete d35be43905e3: Pull complete c8fbad629975: Pull complete Digest: sha256:7895b12de2e20e06f345c7368df4e8e99a334c884348486012f07dbbb3f6e8a8 Status: Downloaded newer image for registry-proxy.engineering.redhat.com/rh-osbs/iib:771760 registry-proxy.engineering.redhat.com/rh-osbs/iib:771760 ++ docker tag registry-proxy.engineering.redhat.com/rh-osbs/iib:771760 quay.io/devtools_gitops/iib:771760-amd64 ++ docker push quay.io/devtools_gitops/iib:771760-amd64 The push refers to repository [quay.io/devtools_gitops/iib] 7dd0f12aed4f: Layer already exists 1a03876bcc08: Layer already exists 07bd412cda59: Layer already exists 877fa00af3c9: Layer already exists d3fbfed1573d: Layer already exists e2e51ecd22dc: Layer already exists 771760-amd64: digest: sha256:426fba5d967a7bca7a9f022de88ec5126f1355aaf32b20d6dda703f70ea33bd7 size: 1588 ++ docker manifest create quay.io/devtools_gitops/iib:771760 quay.io/devtools_gitops/iib:771760-arm64 quay.io/devtools_gitops/iib:771760-amd64 --amend Created manifest list quay.io/devtools_gitops/iib:771760 ++ docker manifest push quay.io/devtools_gitops/iib:771760 sha256:da979e3621c7dd2c680a7e15621c02ff14b2bde1c726dd46ba9623a9ee78e159 ++ 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 created ++ cat ++ oc apply -f - catalogsource.operators.coreos.com/redhat-operators created ++ rm authfile