forked from pool/csi-external-resizer
5ecfafafac
OBS-URL: https://build.opensuse.org/package/show/filesystems:ceph/csi-external-resizer?expand=0&rev=3
60 lines
1.7 KiB
RPMSpec
60 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package csi-external-resizer
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{go_nostrip}
|
|
|
|
%define project github.com/kubernetes-csi/external-resizer
|
|
%define package csi-resizer
|
|
%define source external-resizer
|
|
|
|
Name: csi-%{source}
|
|
Version: 0.4.0
|
|
Release: 0
|
|
Summary: Allows volume expansion after creation
|
|
License: Apache-2.0
|
|
Group: System/Management
|
|
URL: https://%{project}
|
|
Source: %{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.gz
|
|
BuildRequires: golang-packaging
|
|
BuildRequires: golang(API) >= 1.13
|
|
|
|
%description
|
|
The CSI external-resizer is a sidecar container that watches the Kubernetes API server for PersistentVolumeClaim updates and triggers ControllerExpandVolume operations against a CSI endpoint if user requested more storage on PersistentVolumeClaim object.
|
|
|
|
%prep
|
|
%setup -q
|
|
%setup -q -T -D -a 1
|
|
|
|
%build
|
|
%goprep %{project}
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
%gobuild -a -mod=vendor -ldflags="-X main.version=%{version}" cmd/%{package}
|
|
|
|
%install
|
|
%goinstall
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/%{package}
|
|
|
|
%changelog
|