commit eb0b596ceed0deda2dcccb9c638c70c7699d683c3100220b9d6e9f3d520d2d67 Author: James Fehlig Date: Mon Oct 26 17:58:13 2020 +0000 - Update to version 1.24.0: * add system:authorized to groups checked for clone auth (#1415) * Fixing CDIStatus generate-verify issues (#1412) * Reserve overhead when validating that a Filesystem has enough space (#1319) * Test behavior after client-side upload failure. (#1404) * Removed hard coded registry:5000 for vddk datasource test. (#1402) * Add library function to determine if a PVC has been populated fully. (#1400) * Remove dependency update when building the OR CI build image (#1386) * Add test_id for the test cases (#1398) * Fix incorrect region parsing from aws s3 endpoint (#1395) * Add functional test for cloning if source NS has enought quota and (#1387) - Initial attempt at packaging CDI OBS-URL: https://build.opensuse.org/package/show/Virtualization/containerized-data-importer?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..a271529 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + containerized-data-importer + v1.24.0 + git + disable + https://github.com/kubevirt/containerized-data-importer + @PARENT_TAG@ + [v]?([^\+]+)(.*) + \1 + enable + + + *.tar + gz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..969c8e9 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/kubevirt/containerized-data-importer + 677a71f03f57dded2300bd06b3f8b7982e052416 \ No newline at end of file diff --git a/containerized-data-importer-1.24.0.tar.gz b/containerized-data-importer-1.24.0.tar.gz new file mode 100644 index 0000000..7da3aaf --- /dev/null +++ b/containerized-data-importer-1.24.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ebea05c20f59a5059414c88d1fdd25a5713b58b322b3859880c469fae4d8115 +size 161962859 diff --git a/containerized-data-importer.changes b/containerized-data-importer.changes new file mode 100644 index 0000000..f01a5ff --- /dev/null +++ b/containerized-data-importer.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Fri Oct 23 15:35:12 UTC 2020 - jfehlig@suse.com + +- Update to version 1.24.0: + * add system:authorized to groups checked for clone auth (#1415) + * Fixing CDIStatus generate-verify issues (#1412) + * Reserve overhead when validating that a Filesystem has enough space (#1319) + * Test behavior after client-side upload failure. (#1404) + * Removed hard coded registry:5000 for vddk datasource test. (#1402) + * Add library function to determine if a PVC has been populated fully. (#1400) + * Remove dependency update when building the OR CI build image (#1386) + * Add test_id for the test cases (#1398) + * Fix incorrect region parsing from aws s3 endpoint (#1395) + * Add functional test for cloning if source NS has enought quota and (#1387) + +------------------------------------------------------------------- +Fri Oct 23 15:27:46 UTC 2020 - James Fehlig + +- Initial attempt at packaging CDI diff --git a/containerized-data-importer.spec b/containerized-data-importer.spec new file mode 100644 index 0000000..c144980 --- /dev/null +++ b/containerized-data-importer.spec @@ -0,0 +1,177 @@ +# +# spec file for package containerized-data-importer +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: containerized-data-importer +Version: 1.24.0 +Release: 0 +Summary: Container native virtualization +License: Apache-2.0 +Group: System/Packages +URL: https://github.com/kubevirt/containerized-data-importer +Source0: %{name}-%{version}.tar.gz +BuildRequires: golang-packaging +BuildRequires: pkgconfig +BuildRequires: rsync +BuildRequires: sed +BuildRequires: golang(API) = 1.13 +ExclusiveArch: x86_64 + +%description +Containerized-Data-Importer (CDI) is a persistent storage management add-on for Kubernetes + +%package api +Summary: CDI API server +Group: System/Packages + +%description api +The containerized-data-importer-api package provides the kubernetes API extension for CDI + +%package cloner +Summary: cloner for host assisted cloning +Group: System/Packages + +%description cloner +Source and Target cloner image for host assisted cloning + +%package controller +Summary: Controller for the data fetching service +Group: System/Packages + +%description controller +Controller for the data fetching service for VM container images + +%package importer +Summary: Data fetching service +Group: System/Packages + +%description importer +Data fetching service for VM container imagess + +%package operator +Summary: Operator for the data fetching service +Group: System/Packages + +%description operator +Operator for the data fetching service for VM container images + +%package uploadproxy +Summary: Upload proxy for the data fetching service +Group: System/Packages + +%description uploadproxy +Upload proxy for the data fetching service for VM container images + +%package uploadserver +Summary: Upload server for the data fetching service +Group: System/Packages + +%description uploadserver +Upload server for the data fetching service for VM container images + +%prep +%autosetup -p1 + +%build +mkdir -p go/src/kubevirt.io go/pkg +ln -s ../../../ go/src/kubevirt.io/containerized-data-importer +export GOPATH=${PWD}/go +export GOFLAGS="-buildmode=pie -mod=vendor" +env \ +KUBEVIRT_GO_BASE_PKGDIR="${GOPATH}/pkg" \ +CDI_VERSION=%{version} \ +CDI_SOURCE_DATE_EPOCH="$(date -r LICENSE +%s)" \ +CDI_GIT_COMMIT='v%{version}' \ +CDI_GIT_VERSION='v%{version}' \ +CDI_GIT_TREE_STATE="clean" \ +./hack/build/build-go.sh build \ + cmd/cdi-apiserver \ + cmd/cdi-cloner \ + cmd/cdi-controller \ + cmd/cdi-importer \ + cmd/cdi-uploadproxy \ + cmd/cdi-uploadserver \ + cmd/cdi-operator \ + tools/csv-generator \ + %{nil} + +%install +mkdir -p %{buildroot}%{_bindir} + +chmod 0755 _out/cmd/cdi-apiserver/cdi-apiserver +install -p -m 0755 _out/cmd/cdi-apiserver/cdi-apiserver %{buildroot}%{_bindir}/ + +chmod 0755 cmd/cdi-cloner/cloner_startup.sh +install -p -m 0755 cmd/cdi-cloner/cloner_startup.sh %{buildroot}%{_bindir}/ +chmod 0755 _out/cmd/cdi-cloner/cdi-cloner +install -p -m 0755 _out/cmd/cdi-cloner/cdi-cloner %{buildroot}%{_bindir}/ + +chmod 0755 _out/cmd/cdi-controller/cdi-controller +install -p -m 0755 _out/cmd/cdi-controller/cdi-controller %{buildroot}%{_bindir}/ + +chmod 0755 _out/cmd/cdi-importer/cdi-importer +install -p -m 0755 _out/cmd/cdi-importer/cdi-importer %{buildroot}%{_bindir}/ + +chmod 0755 _out/cmd/cdi-operator/cdi-operator +install -p -m 0755 _out/cmd/cdi-operator/cdi-operator %{buildroot}%{_bindir}/ +chmod 0755 _out/tools/csv-generator/csv-generator +install -p -m 0755 _out/tools/csv-generator/csv-generator %{buildroot}%{_bindir}/ + +chmod 0755 _out/cmd/cdi-uploadproxy/cdi-uploadproxy +install -p -m 0755 _out/cmd/cdi-uploadproxy/cdi-uploadproxy %{buildroot}%{_bindir}/ + +chmod 0755 _out/cmd/cdi-uploadserver/cdi-uploadserver +install -p -m 0755 _out/cmd/cdi-uploadserver/cdi-uploadserver %{buildroot}%{_bindir}/ + +%files api +%license LICENSE +%doc README.md +%{_bindir}/cdi-apiserver + +%files cloner +%license LICENSE +%doc README.md +%{_bindir}/cloner_startup.sh +%{_bindir}/cdi-cloner + +%files controller +%license LICENSE +%doc README.md +%{_bindir}/cdi-controller + +%files importer +%license LICENSE +%doc README.md +%{_bindir}/cdi-importer + +%files uploadproxy +%license LICENSE +%doc README.md +%{_bindir}/cdi-uploadproxy + +%files uploadserver +%license LICENSE +%doc README.md +%{_bindir}/cdi-uploadserver + +%files operator +%license LICENSE +%doc README.md +%{_bindir}/cdi-operator +%{_bindir}/csv-generator + +%changelog