From 922f8e1dfdbae250da79910d8e48a1dd03747487356bda5e37c6eaf8bdb2e005 Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Tue, 19 Sep 2023 11:31:10 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++++++++ _service | 23 ++++++++++++++++ _servicedata | 4 +++ kube-capacity-0.7.4.obscpio | 3 ++ kube-capacity.obsinfo | 4 +++ kubectl-capacity.changes | 6 ++++ kubectl-capacity.spec | 55 +++++++++++++++++++++++++++++++++++++ vendor.tar.gz | 3 ++ 8 files changed, 121 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 _servicedata create mode 100644 kube-capacity-0.7.4.obscpio create mode 100644 kube-capacity.obsinfo create mode 100644 kubectl-capacity.changes create mode 100644 kubectl-capacity.spec create mode 100644 vendor.tar.gz 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/_service b/_service new file mode 100644 index 0000000..403425a --- /dev/null +++ b/_service @@ -0,0 +1,23 @@ + + + https://github.com/robscott/kube-capacity + git + .git + v0.7.4 + @PARENT_TAG@ + enable + v(.*) + + + kube-capacity + + + + + *.tar + gz + + + kube-capacity-0.7.4.obscpio + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..3991cdf --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/robscott/kube-capacity + 807764563371f82047bed8f55f5a037aae3e1298 \ No newline at end of file diff --git a/kube-capacity-0.7.4.obscpio b/kube-capacity-0.7.4.obscpio new file mode 100644 index 0000000..b1771f7 --- /dev/null +++ b/kube-capacity-0.7.4.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01b7cbb7d25f658bb2831019fac1742420239ccfcca40dbad844d8a48efdff80 +size 142347 diff --git a/kube-capacity.obsinfo b/kube-capacity.obsinfo new file mode 100644 index 0000000..b7d653a --- /dev/null +++ b/kube-capacity.obsinfo @@ -0,0 +1,4 @@ +name: kube-capacity +version: 0.7.4 +mtime: 1676269463 +commit: 807764563371f82047bed8f55f5a037aae3e1298 diff --git a/kubectl-capacity.changes b/kubectl-capacity.changes new file mode 100644 index 0000000..782e658 --- /dev/null +++ b/kubectl-capacity.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Mon Sep 18 13:38:08 UTC 2023 - Johannes Kastl + +- new package kubectl-capacity: CLI that provides an overview of + the resource requests, limits, and utilization in a Kubernetes + cluster diff --git a/kubectl-capacity.spec b/kubectl-capacity.spec new file mode 100644 index 0000000..4cf69ef --- /dev/null +++ b/kubectl-capacity.spec @@ -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 diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..5d99d0e --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3e4bd4495b7175d191f5c58346f6e846bc1022c25354f920d31b236b2caad1f +size 5606948