From dd867900e33690cefc4c872d2b8e3c5e0fc7b8e5 Mon Sep 17 00:00:00 2001 From: yzamir Date: Sat, 10 Feb 2024 11:25:23 +0200 Subject: [PATCH] Allow partial deploy Signed-off-by: yzamir --- ci/deploy-all.sh | 5 ++++- ci/deploy-forklift.sh | 9 ++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ci/deploy-all.sh b/ci/deploy-all.sh index f5525a007..0553ce0b2 100755 --- a/ci/deploy-all.sh +++ b/ci/deploy-all.sh @@ -21,6 +21,7 @@ you may not be able to start a virtual machine or use some network interfaces. --with-openstack-provider will install packstack simulator. --no-kubevirt don't install kubebirt. --no-console don't install OKD console. + --no-cluster-up don't install Kind cluster. " exit 0 fi @@ -47,7 +48,9 @@ echo "Found: ${CONTAINER_CMD}" # --------------- # Create kind cluster -bash ${script_dir}/deploy-cluster.sh +if [[ $@ != *'--no-cluster-up'* ]]; then + bash ${script_dir}/deploy-cluster.sh +fi # Install volume poplulator bash ${script_dir}/deploy-volume-populator.sh diff --git a/ci/deploy-forklift.sh b/ci/deploy-forklift.sh index 5e742bc31..0facaeb41 100755 --- a/ci/deploy-forklift.sh +++ b/ci/deploy-forklift.sh @@ -16,6 +16,7 @@ echo "============================" FORKLIFT_IMAGE=quay.io/kubev2v/forklift-operator-index:latest FORKLIFT_NAMESPACE=konveyor-forklift +MIGRATION_NAMESPACE=konveyor-migration cat << EOF | kubectl apply -f - --- @@ -98,4 +99,10 @@ kubectl patch service -n ${FORKLIFT_NAMESPACE} forklift-inventory --type='merge' -p '{"spec":{"type":"NodePort","ports":[{"name":"api-https","protocol":"TCP","targetPort":8443,"port":8443,"nodePort":30444}]}}' # secondary namespace used in test data -kubectl create namespace konveyor-migration \ No newline at end of file +cat << EOF | kubectl apply -f - +--- +apiVersion: v1 +kind: Namespace +metadata: + name: ${MIGRATION_NAMESPACE} +EOF