Dominique Leuenberger 2022-01-14 22:13:38 +00:00 committed by Git OBS Bridge
commit 74260976fa
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 13 11:11:41 UTC 2022 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Enable build on aarch64
-------------------------------------------------------------------
Mon Jan 10 11:16:13 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>

View File

@ -32,7 +32,7 @@ BuildRequires: pkgconfig
BuildRequires: rsync
BuildRequires: sed
BuildRequires: golang(API) = 1.17
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%description
Containerized-Data-Importer (CDI) is a persistent storage management add-on for Kubernetes
@ -115,6 +115,9 @@ the CDI container images.
%setup -n go/src/kubevirt.io/%{name} -c -T
tar --strip-components=1 -xf %{S:0}
# Fix aarch64 - https://github.com/kubevirt/containerized-data-importer/issues/2048
sed -i "s#GOARCH=amd64 ##" hack/build/build-go.sh
%build
# Hackery to determine which registry path to use in cdi-operator.yaml
# when building the manifests