SHA256
1
0
forked from pool/cri-tools

Accepting request 575760 from devel:CaaSP:Head:ControllerNode

- Add cri-tools packaging for debugging and validating tools for the Kubelet
  CRI, including the tools crictl and critest.

OBS-URL: https://build.opensuse.org/request/show/575760
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cri-tools?expand=0&rev=1
This commit is contained in:
Dominique Leuenberger 2018-02-19 12:00:27 +00:00 committed by Git OBS Bridge
commit 87f61567cf
6 changed files with 130 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

16
_service Normal file
View File

@ -0,0 +1,16 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/kubernetes-incubator/cri-tools.git</param>
<param name="scm">git</param>
<param name="filename">cri-tools</param>
<param name="versionformat">git.%H</param>
<param name="revision">653cc8c6509c540b8a7c6f6b43e437c0687a93a7</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bd41086dcfef98755d31d908bf432a40b54b103e208d72df4fee27c3c083b09b
size 1303664

5
cri-tools.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Mon Feb 12 11:48:18 UTC 2018 - vrothberg@suse.com
- Add cri-tools packaging for debugging and validating tools for the Kubelet
CRI, including the tools crictl and critest.

82
cri-tools.spec Normal file
View File

@ -0,0 +1,82 @@
#
# spec file for package cri-tools
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define project github.com/kubernetes-incubator/cri-tools
%define commit 653cc8c6509c540b8a7c6f6b43e437c0687a93a7
# rev_list = git rev-list commit | wc -l
%define rev_list 360
Name: cri-tools
Version: 1.0.0alpha+git%{rev_list}
Release: 0
Summary: CLI and validation tools for Kubelet Container Runtime Interface
License: Apache-2.0
Group: System/Management
URL: https://%{project}
Source0: %{name}-git.%{commit}.tar.xz
BuildRequires: go-md2man
BuildRequires: golang(API) >= 1.7
BuildRequires: golang-packaging
# disable stripping of binaries
%{go_nostrip}
%description
cri-tools aims to provide a series of debugging and validation tools for
Kubelet CRI, which includes:
- crictl: CLI for kubelet CRI
- critest: validation test suites for kubelet CRI
%prep
%setup -q -n %{name}-git.%{commit}
%build
export GOPATH=$HOME/go
mkdir -pv $HOME/go/src/%{project}
rm -rf $HOME/go/src/%{project}/*
cp -avr * $HOME/go/src/%{project}
cd $HOME/go/src/%{project}
go build -buildmode=pie \
-o bin/crictl \
%{project}/cmd/crictl
go build -buildmode=pie \
-o bin/critest \
%{project}/cmd/critest
# compile the manpages
for md in docs/*.md
do
go-md2man -in $md -out $md
done
rename '.md' '.1' docs/*
%install
cd $HOME/go/src/%{project}
install -D -m 0755 bin/crictl %{buildroot}/%{_bindir}/crictl
install -D -m 0755 bin/critest %{buildroot}/%{_bindir}/critest
install -d %{buildroot}/%{_mandir}/man1
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/validation.1 %{buildroot}/%{_mandir}/man1/critest-validation.1
%files
%{_bindir}/crictl
%{_bindir}/critest
%{_mandir}/man1/*
%changelog