commit 87f61567cf0bf41177b61f6c6f085fdfd1943db431b4202a93688bebd99bbb78 Author: Dominique Leuenberger Date: Mon Feb 19 12:00:27 2018 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..1db486f --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + +https://github.com/kubernetes-incubator/cri-tools.git +git +cri-tools +git.%H +653cc8c6509c540b8a7c6f6b43e437c0687a93a7 + + + +*.tar +xz + + + diff --git a/cri-tools-git.653cc8c6509c540b8a7c6f6b43e437c0687a93a7.tar.xz b/cri-tools-git.653cc8c6509c540b8a7c6f6b43e437c0687a93a7.tar.xz new file mode 100644 index 0000000..518d750 --- /dev/null +++ b/cri-tools-git.653cc8c6509c540b8a7c6f6b43e437c0687a93a7.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd41086dcfef98755d31d908bf432a40b54b103e208d72df4fee27c3c083b09b +size 1303664 diff --git a/cri-tools.changes b/cri-tools.changes new file mode 100644 index 0000000..339fa6c --- /dev/null +++ b/cri-tools.changes @@ -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. diff --git a/cri-tools.spec b/cri-tools.spec new file mode 100644 index 0000000..9b0b6ab --- /dev/null +++ b/cri-tools.spec @@ -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