Skip to content

Commit

Permalink
Added flag to skip j2 template generation, they are not needed always
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Sluiter <[email protected]>
  • Loading branch information
slintes committed Apr 17, 2019
1 parent 419096a commit e9aad6f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hack/build-manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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 }}" \
Expand All @@ -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}
Expand Down

0 comments on commit e9aad6f

Please sign in to comment.