2021-05-21 20:30:04 +00:00
|
|
|
From 1228a2f14f4f3aeab91a43f7a71a74ecf61fb8f9 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Vasiliy Ulyanov <vulyanov@suse.de>
|
|
|
|
Date: Thu, 20 May 2021 10:48:30 +0200
|
|
|
|
Subject: [PATCH 2/2] Don't use Bazel in build-manifests.sh
|
2021-03-03 16:43:36 +00:00
|
|
|
|
|
|
|
This is a partial revert of the commit
|
|
|
|
|
|
|
|
e410cdd77968dae258e83ccc0171e855b8678063
|
|
|
|
|
|
|
|
which switches to using Bazel during manifests build. That in turn
|
|
|
|
does not work well during OBS build since Bazel tends to download
|
|
|
|
dependencies from the web.
|
|
|
|
|
2021-05-21 20:30:04 +00:00
|
|
|
Signed-off-by: Vasiliy Ulyanov <vulyanov@suse.de>
|
|
|
|
---
|
|
|
|
hack/build-manifests.sh | 9 +++------
|
|
|
|
1 file changed, 3 insertions(+), 6 deletions(-)
|
|
|
|
|
2021-03-03 16:43:36 +00:00
|
|
|
diff --git a/hack/build-manifests.sh b/hack/build-manifests.sh
|
2021-05-21 20:30:04 +00:00
|
|
|
index c93f19e3f..abfd6fa07 100755
|
2021-03-03 16:43:36 +00:00
|
|
|
--- a/hack/build-manifests.sh
|
|
|
|
+++ b/hack/build-manifests.sh
|
2021-05-21 20:30:04 +00:00
|
|
|
@@ -33,19 +33,16 @@ kubevirt_logo_path="assets/kubevirt_logo.png"
|
2021-03-03 16:43:36 +00:00
|
|
|
rm -rf ${MANIFESTS_OUT_DIR}
|
|
|
|
rm -rf ${MANIFEST_TEMPLATES_OUT_DIR}
|
|
|
|
|
|
|
|
-rm -rf "${TESTS_OUT_DIR}/tools"
|
|
|
|
-mkdir -p "${TESTS_OUT_DIR}/tools"
|
|
|
|
-templator=${TESTS_OUT_DIR}/tools/manifest-templator
|
2021-05-21 20:30:04 +00:00
|
|
|
+templator=${KUBEVIRT_DIR}/tools/manifest-templator/manifest-templator
|
|
|
|
|
2021-03-03 16:43:36 +00:00
|
|
|
-bazel run \
|
2021-05-21 20:30:04 +00:00
|
|
|
- --config=${HOST_ARCHITECTURE} \
|
2021-03-03 16:43:36 +00:00
|
|
|
- //:build-manifest-templator -- ${templator}
|
|
|
|
+(cd ${KUBEVIRT_DIR}/tools/manifest-templator/ && go_build)
|
|
|
|
|
|
|
|
# first process file includes only
|
|
|
|
args=$(cd ${KUBEVIRT_DIR}/manifests && find . -type f -name "*.yaml.in" -not -path "./generated/*")
|
|
|
|
for arg in $args; do
|
|
|
|
infile=${KUBEVIRT_DIR}/manifests/${arg}
|
|
|
|
outfile=${KUBEVIRT_DIR}/manifests/${arg}.tmp
|
|
|
|
+
|
2021-05-21 20:30:04 +00:00
|
|
|
${templator} \
|
2021-03-03 16:43:36 +00:00
|
|
|
--process-files \
|
|
|
|
--generated-manifests-dir=${KUBEVIRT_DIR}/manifests/generated/ \
|
2021-05-21 20:30:04 +00:00
|
|
|
--
|
|
|
|
2.31.1
|
|
|
|
|