Accepting request 1111995 from home:ojkastl_buildservice:Branch_devel_kubic

new package kubectl-capacity: CLI that provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster

OBS-URL: https://build.opensuse.org/request/show/1111995
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/kubectl-capacity?expand=0&rev=1
This commit is contained in:
Richard Brown 2023-09-19 11:31:10 +00:00 committed by Git OBS Bridge
commit 922f8e1dfd
8 changed files with 121 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

23
_service Normal file
View File

@ -0,0 +1,23 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/robscott/kube-capacity</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v0.7.4</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="manual">
<param name="basename">kube-capacity</param>
</service>
<service name="tar" mode="buildtime">
</service>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="go_modules" mode="manual">
<param name="archive">kube-capacity-0.7.4.obscpio</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/robscott/kube-capacity</param>
<param name="changesrevision">807764563371f82047bed8f55f5a037aae3e1298</param></service></servicedata>

View File

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

4
kube-capacity.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: kube-capacity
version: 0.7.4
mtime: 1676269463
commit: 807764563371f82047bed8f55f5a037aae3e1298

6
kubectl-capacity.changes Normal file
View File

@ -0,0 +1,6 @@
-------------------------------------------------------------------
Mon Sep 18 13:38:08 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- new package kubectl-capacity: CLI that provides an overview of
the resource requests, limits, and utilization in a Kubernetes
cluster

55
kubectl-capacity.spec Normal file
View File

@ -0,0 +1,55 @@
#
# spec file for package kubectl-capacity
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
Name: kubectl-capacity
Version: 0.7.4
Release: 0
Summary: Overview of the resource requests, limits, and utilization in a Kubernetes cluster
License: Apache-2.0
URL: https://github.com/robscott/kube-capacity
Source: kube-capacity-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: go >= 1.19
%description
This is a simple CLI that provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster. It attempts to combine the best parts of the output from kubectl top and kubectl describe into an easy to use CLI focused on cluster resources.
%prep -n kube-capacity-%{version}
%setup -q -n kube-capacity-%{version}
%setup -q -T -D -a 1 -n kube-capacity-%{version}
%build
go build \
-mod=vendor \
-buildmode=pie \
-ldflags="-X main.Version=%{version}"
%install
# Install the binary.
install -D -m 0755 kube-capacity "%{buildroot}/%{_bindir}/%{name}"
ln -s %{name} "%{buildroot}/%{_bindir}/kube-capacity"
%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_bindir}/kube-capacity
%changelog

3
vendor.tar.gz Normal file
View File

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