Added flag to skip j2 template generation, they are not needed always
@@ -22,6 +22,11 @@ set -e
source hack/common.sh
source hack/config.sh
+skipj2=false
+if [ "$1" == "--skipj2" ]; then
+ skipj2=true
+fi
+
manifest_docker_prefix=${manifest_docker_prefix-${docker_prefix}}
kubevirt_logo_path="assets/kubevirt_logo.png"
@@ -77,6 +82,11 @@ for arg in $args; do
--bundle-out-dir=${bundle_out_dir} \
--quay-repository=${QUAY_REPOSITORY} >${outfile}
+ if [ "$skipj2" = true ] ; then
+ echo "skipping j2 template for $infile"
+ continue
+ fi
+
${KUBEVIRT_DIR}/tools/manifest-templator/manifest-templator \
--process-vars \
--namespace="{{ namespace }}" \
@@ -99,6 +109,10 @@ done
find ${MANIFESTS_OUT_DIR}/ -type f -exec sed -i {} -e '${/^$/d;}' \;
find ${MANIFEST_TEMPLATES_OUT_DIR}/ -type f -exec sed -i {} -e '${/^$/d;}' \;
+if [ "$skipj2" = true ] ; then
+ exit 0
+fi
+
# make sure that template manifests align with release manifests
export namespace=${namespace}
export cdi_namespace=${cdi_namespace}
