mirror of
https://abf.rosa.ru/djam/kubepug.git
synced 2025-02-23 23:02:50 +00:00
Imported from SRPM
This commit is contained in:
commit
65d81de485
2 changed files with 48 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
kubepug-1.5.1.tar.gz: 419a544350d57e8b09c9c7bae0bccdffd07d1277
|
46
kubepug.spec
Normal file
46
kubepug.spec
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
%define debug %nil
|
||||||
|
%define debug_package %nil
|
||||||
|
|
||||||
|
Name: kubepug
|
||||||
|
Version: 1.5.1
|
||||||
|
Release: 1
|
||||||
|
Summary: Kubernetes PreUpGrade (Checker)
|
||||||
|
URL: https://github.com/rikatz/kubepug
|
||||||
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
License: Apache-2.0
|
||||||
|
Group: Development/Other
|
||||||
|
BuildRequires: go
|
||||||
|
BuildRequires: git-core
|
||||||
|
BuildRequires: upx
|
||||||
|
|
||||||
|
%description
|
||||||
|
KubePug/Deprecations is intended to be a kubectl plugin,
|
||||||
|
which:
|
||||||
|
|
||||||
|
- Downloads a swagger.json from a specific Kubernetes
|
||||||
|
version
|
||||||
|
- Parses this Json finding deprecation notices
|
||||||
|
- Verifies the current kubernetes cluster or input files
|
||||||
|
checking whether exists objects in this deprecated API
|
||||||
|
Versions, allowing the user to check before migrating
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
CGO_ENABLED=0 go build -trimpath -ldflags "-X sigs.k8s.io/release-utils/version.gitVersion=%{version}" -o ./bin/kubepug .
|
||||||
|
upx bin/%{name}
|
||||||
|
|
||||||
|
# gen completion
|
||||||
|
./bin/%{name} completion bash > %{name}.completion
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||||
|
install -Dm0644 %{name}.completion %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md LICENSE
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_datadir}/bash-completion/completions/%{name}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue