SHA256
1
0
forked from pool/cri-tools

Accepting request 628893 from devel:kubic

OBS-URL: https://build.opensuse.org/request/show/628893
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cri-tools?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2018-08-15 08:35:08 +00:00 committed by Git OBS Bridge
commit 45dc4e0d3e
3 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Aug 13 08:54:30 UTC 2018 - vrothberg@suse.com
- Generate and install bash completion for crictl.
- Provide /etc/crictl.yaml config.
bsc#1104598
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 2 09:00:47 UTC 2018 - vrothberg@suse.com Thu Aug 2 09:00:47 UTC 2018 - vrothberg@suse.com

View File

@ -25,6 +25,7 @@ License: Apache-2.0
Group: System/Management Group: System/Management
Url: https://github.com/kubernetes-incubator/cri-tools Url: https://github.com/kubernetes-incubator/cri-tools
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
Source1: crictl.yaml
BuildRequires: go-go-md2man BuildRequires: go-go-md2man
BuildRequires: golang-packaging BuildRequires: golang-packaging
BuildRequires: golang(API) >= 1.9 BuildRequires: golang(API) >= 1.9
@ -62,6 +63,9 @@ do
done done
rename '.md' '.1' docs/* rename '.md' '.1' docs/*
# generate bash-completion
./bin/crictl completion > crictl-completion
%install %install
cd $HOME/go/src/%{project} cd $HOME/go/src/%{project}
install -D -m 0755 bin/crictl %{buildroot}/%{_bindir}/crictl install -D -m 0755 bin/crictl %{buildroot}/%{_bindir}/crictl
@ -70,11 +74,13 @@ install -d %{buildroot}/%{_mandir}/man1
install -D -m 0644 docs/crictl.1 %{buildroot}/%{_mandir}/man1/crictl.1 install -D -m 0644 docs/crictl.1 %{buildroot}/%{_mandir}/man1/crictl.1
install -D -m 0644 docs/benchmark.1 %{buildroot}/%{_mandir}/man1/critest-benchmark.1 install -D -m 0644 docs/benchmark.1 %{buildroot}/%{_mandir}/man1/critest-benchmark.1
install -D -m 0644 docs/validation.1 %{buildroot}/%{_mandir}/man1/critest-validation.1 install -D -m 0644 docs/validation.1 %{buildroot}/%{_mandir}/man1/critest-validation.1
install -D -m 0644 crictl-completion %{buildroot}/%{_datadir}/bash-completion/completions/crictl
%files %files
%{_bindir}/crictl %{_bindir}/crictl
%{_bindir}/critest %{_bindir}/critest
%{_mandir}/man1/* %{_mandir}/man1/*
%{_datadir}/bash-completion/completions/crictl
%license LICENSE %license LICENSE
%changelog %changelog

1
crictl.yaml Normal file
View File

@ -0,0 +1 @@
runtime-endpoint: unix:///var/run/crio/crio.sock