#!/bin/bash
set -euo pipefail

exec > >(tee -i /home/zuul/ci-framework-data/logs/ci_script_011_run_edpm_deploy.log) 2>&1
pushd /home/zuul/src/github.com/openstack-k8s-operators/install_yamls
export BMO_SETUP="False"
export INSTALL_CERT_MANAGER="False"
export OUT="/home/zuul/ci-framework-data/artifacts/manifests"
export OUTPUT_DIR="/home/zuul/ci-framework-data/artifacts/edpm"
export CHECKOUT_FROM_OPENSTACK_REF="true"
export OPENSTACK_K8S_BRANCH="main"
export WATCHER_REPO="/home/zuul/src/github.com/openstack-k8s-operators/watcher-operator"
export WATCHER_BRANCH=""
export KUBECONFIG="/home/zuul/.crc/machines/crc/kubeconfig"
export PATH="/home/zuul/.crc/bin:/home/zuul/.crc/bin/oc:/home/zuul/bin:/home/zuul/.local/bin:/home/zuul/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin"
export DATAPLANE_REGISTRY_URL="quay.io/podified-antelope-centos9"
export DATAPLANE_CONTAINER_TAG="342265658d547b1a6f905b4d07fff936"
export DATAPLANE_COMPUTE_IP="192.168.122.100"
export DATAPLANE_SINGLE_NODE="false"
export DATAPLANE_SSHD_ALLOWED_RANGES="['0.0.0.0/0']"
export DATAPLANE_TOTAL_NODES="2"
export SSH_KEY_FILE="/home/zuul/.ssh/id_cifw"
export DATAPLANE_EXTRA_NOVA_CONFIG_FILE="/home/zuul/ci-framework-data/nova-extra-config.conf"
make edpm_deploy_prep
popd
