Enable csi-driver-lvm in Mariner. (#3786)

* Enable csi-driver-lvm in Mariner.

* Update spec file format to meet the standard of spec linting check.

* Update changelog & license_map.py run for check.

* Update %files section to pack csi-driver-lvm itself.

* Revision based on the comments from PR.

* Add install and file macro.

* Rebase to resolve the conflict.

* Update spec linting as required.
This commit is contained in:
Lanze Liu 2022-09-26 19:38:40 -07:00 committed by GitHub
parent 37d643c347
commit 2b79d419ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 66 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -1972,6 +1972,7 @@
"coredns-1.8.0",
"coredns-1.8.4",
"coredns-1.8.6",
"csi-driver-lvm",
"dbus-x11",
"dcos-cli",
"debugedit",

View File

@ -0,0 +1,6 @@
{
"Signatures": {
"csi-driver-lvm-0.4.1.tar.gz": "5120eb6d7efb7503b19025d735414c1d8672b969a12af4d8fd75f0c4fda8a781",
"csi-driver-lvm-0.4.1-govendor.tar.gz": "497d08975022e0eab94d1a59b2a05f9e19c7831cb233917e35a38bd8f1ee26ac"
}
}

View File

@ -0,0 +1,48 @@
Summary: Container storage interface for logical volume management
Name: csi-driver-lvm
Version: 0.4.1
Release: 1%{?dist}
License: MIT
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://github.com/metal-stack/csi-driver-lvm
Source0: https://github.com/metal-stack/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# Below is a manually created tarball, no download link.
# We're using pre-populated GO dependencies from this tarball, since network is disabled during build time.
# 1. wget https://github.com/metal-stack/%{name}/archive/refs/tags/v%{version}.tar.gz -O %%{name}-%%{version}.tar.gz
# 2. tar -xf %%{name}-%%{version}.tar.gz
# 3. cd %%{name}-%%{version}
# 4. go mod vendor
# 5. tar --sort=name \
# --mtime="2022-09-22 00:00Z" \
# --owner=0 --group=0 --numeric-owner \
# --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
# -cf %%{name}-%%{version}-govendor.tar.gz vendor
Source1: %{name}-%{version}-govendor.tar.gz
BuildRequires: golang
%description
csi-driver-lvm utilizes local storage of Kubernetes nodes to provide persistent storage for pods
%prep
%autosetup
%setup -q -T -D -a 1
%build
%make_build
%install
mkdir -p %{buildroot}%{_bindir}
install -D -m0755 bin/csi-lvmplugin-provisioner %{buildroot}%{_bindir}/
install -D -m0755 bin/lvmplugin %{buildroot}%{_bindir}/
%files
%license LICENSE
%doc README.md
%{_bindir}/csi-lvmplugin-provisioner
%{_bindir}/lvmplugin
%changelog
* Thu Sep 23 2022 Lanze Liu <lanzeliu@microsoft.com> - 0.4.1-1
- Original version for CBL-Mariner
- License Verified

View File

@ -2012,6 +2012,16 @@
}
}
},
{
"component": {
"type": "other",
"other": {
"name": "csi-driver-lvm",
"version": "0.4.1",
"downloadUrl": "https://github.com/metal-stack/csi-driver-lvm/archive/refs/tags/v0.4.1.tar.gz"
}
}
},
{
"component": {
"type": "other",