mirror of
https://abf.rosa.ru/djam/version-checker.git
synced 2025-02-23 15:22:48 +00:00
Imported from SRPM
This commit is contained in:
commit
a91c5b842d
2 changed files with 41 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
version-checker-0.5.1.tar.gz: 368713e4c081ce78586b12a12e460dfed133de7f
|
39
version-checker.spec
Normal file
39
version-checker.spec
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
%define debug %nil
|
||||||
|
%define debug_package %nil
|
||||||
|
|
||||||
|
Name: version-checker
|
||||||
|
Version: 0.5.1
|
||||||
|
Release: 1
|
||||||
|
Summary: Kubernetes utility for exposing image versions in use
|
||||||
|
URL: https://jetstack.io
|
||||||
|
Source0: https://github.com/jetstack/version-checker/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
License: ASL-2.0
|
||||||
|
Group: Development/Other
|
||||||
|
BuildRequires: go
|
||||||
|
BuildRequires: git-core
|
||||||
|
BuildRequires: upx
|
||||||
|
|
||||||
|
%description
|
||||||
|
version-checker is a Kubernetes utility for observing the
|
||||||
|
current versions of images running in the cluster, as well
|
||||||
|
as the latest available upstream. These checks get exposed
|
||||||
|
as Prometheus metrics to be viewed on a dashboard, or soft
|
||||||
|
alert cluster operators
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
export GOPROXY=direct
|
||||||
|
CGO_ENABLED=0 go build -ldflags="-s -w" -o ./bin/%{name} ./cmd/.
|
||||||
|
|
||||||
|
upx ./bin/%{name}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -Dm0755 ./bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md LICENSE deploy/
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
|
Loading…
Add table
Reference in a new issue