# Prow OpenShift CI
# IMAGE_FORMAT=registry.svc.ci.openshift.org/ci-op-b1qw1nxw/stable:hyperconverged-cluster-operator
HCO_OPERATOR_IMAGE=`eval echo ${IMAGE_FORMAT}`
CI_IMAGE_URL_PREFIX=$(echo $HCO_OPERATOR_IMAGE | cut -d ":" -f 1)
echo "CI_IMAGE_URL_PREFIX: $CI_IMAGE_URL_PREFIX"
REGISTRY_IMAGE="quay.io/kubevirt/hco-container-registry:latest"
if [[ -n $PREV ]]; then
  REGISTRY_IMAGE_UPGRADE="${CI_IMAGE_URL_PREFIX}:hco-registry-upgrade-prev"
else
  REGISTRY_IMAGE_UPGRADE="${CI_IMAGE_URL_PREFIX}:hco-registry-upgrade"
fi

REGISTRY_IMAGE_URL_PREFIX=$CI_IMAGE_URL_PREFIX
HCO_CATALOG_NAMESPACE="openshift-marketplace"
SUBSCRIPTION_CONFIG=$(cat <<EOF
  config:
    selector:
      matchLabels:
        name: hyperconverged-cluster-operator
    env:
      - name: KVM_EMULATION
        value: "true"
EOF
)
export CMD="oc"

echo "oc version"
${CMD} version || true
