mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00

- Generate OLM related manifests for CDI in _out/manifests/release/olm OLM bundle: - cdi CSV manifest - cdi crd manifest - cdi package manifest - operatorsource manifest - subscription manifest - operatorgroup manifest - Modify cdi-operator role not to be cluster-admin but more specific - Move all final manifests to _out/manifests directory and update travis with new manifests location - Provide API for vendoring CDI OLM manifests generation code Note: - OLM CSV update to be supported in a separate PR - OLM bundle integration in travis is to be supported together with CSV update
51 lines
1.6 KiB
Bash
Executable File
51 lines
1.6 KiB
Bash
Executable File
#!/bin/bash -e
|
|
|
|
cdi=$1
|
|
cdi="${cdi##*/}"
|
|
|
|
echo $cdi
|
|
|
|
source ./hack/build/config.sh
|
|
source ./cluster/gocli.sh
|
|
|
|
CDI_NAMESPACE=${CDI_NAMESPACE:-cdi}
|
|
|
|
# Set controller verbosity to 3 for functional tests.
|
|
export VERBOSITY=3
|
|
|
|
registry_port=$($gocli ports registry | tr -d '\r')
|
|
registry=localhost:$registry_port
|
|
|
|
DOCKER_REPO=${registry} make docker push
|
|
DOCKER_REPO="registry:5000" PULL_POLICY=$(getTestPullPolicy) make manifests
|
|
|
|
# Make sure that all nodes use the newest images
|
|
container=""
|
|
container_alias=""
|
|
images="${@:-${DOCKER_IMAGES}}"
|
|
for arg in $images; do
|
|
name=$(basename $arg)
|
|
container="${container} registry:5000/${name}:latest"
|
|
done
|
|
for i in $(seq 1 ${KUBEVIRT_NUM_NODES}); do
|
|
echo "node$(printf "%02d" ${i})" "echo \"${container}\" | xargs \-\-max-args=1 sudo docker pull"
|
|
./cluster/cli.sh ssh "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/cli.sh ssh "node$(printf "%02d" ${i})" "sudo sysctl -w user.max_user_namespaces=1024"
|
|
done
|
|
|
|
|
|
./cluster/kubectl.sh apply -f "./_out/manifests/release/cdi-operator.yaml"
|
|
./cluster/kubectl.sh apply -f "./_out/manifests/release/cdi-operator-cr.yaml"
|
|
|
|
|
|
./cluster/kubectl.sh wait cdis.cdi.kubevirt.io/cdi --for=condition=running --timeout=120s
|
|
|
|
# Start functional test HTTP server.
|
|
./cluster/kubectl.sh apply -f "./_out/manifests/file-host.yaml"
|
|
./cluster/kubectl.sh apply -f "./_out/manifests/registry-host.yaml"
|
|
./cluster/kubectl.sh apply -f "./_out/manifests/block-device.yaml"
|
|
|
|
|