containerized-data-importer/cluster-sync/ephemeral_provider.sh
Alexander Wels 0773572e5d
Refactored provider infra structure (#831)
* Remove a flaky part of the test that didn't add value.

Signed-off-by: Alexander Wels <awels@redhat.com>

Updated k8s image to latest.
Refactored cluster up to allow for adding more providers easily.

Signed-off-by: Alexander Wels <awels@redhat.com>

* Updated k8s image to latest.
Refactored cluster up to allow for adding more providers easily.
Enable OKD 4.1 provider

Signed-off-by: Alexander Wels <awels@redhat.com>
2019-06-13 14:29:42 -04:00

33 lines
1.0 KiB
Bash

#!/usr/bin/env bash
set -e
function seed_images(){
container=""
container_alias=""
images="${@:-${DOCKER_IMAGES}}"
for arg in $images; do
name=$(basename $arg)
container="${container} registry:5000/${name}:latest"
done
# We don't need to seed the nodes, but in the case of the default dev setup we'll just leave this here
for i in $(seq 1 ${KUBEVIRT_NUM_NODES}); do
./cluster-up/ssh.sh "node$(printf "%02d" ${i})" "echo \"${container}\" | xargs \-\-max-args=1 sudo docker pull"
# Temporary until image is updated with provisioner that sets this field
# This field is required by buildah tool
./cluster-up/ssh.sh "node$(printf "%02d" ${i})" "sudo sysctl \-w user.max_user_namespaces=1024"
done
}
function verify() {
echo 'Wait until all nodes are ready'
until [[ $(_kubectl get nodes --no-headers | wc -l) -eq $(_kubectl get nodes --no-headers | grep " Ready" | wc -l) ]]; do
sleep 1
done
echo "cluster node are ready!"
}
function configure_local_storage() {
echo "Local storage already configured ..."
}