File kubectl-view-utilization.spec of Package kubectl-view-utilization

#
# spec file for package kubectl-view-utilization
#
# 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-view-utilization
Version:        0.3.3
Release:        0
Summary:        Kubectl plugin to show cluster CPU and Memory requests utilization
License:        Apache-2.0
URL:            https://github.com/etopeter/kubectl-view-utilization
Source:         %{name}-%{version}.tar.gz
Requires:       bash
Requires:       /usr/bin/kubectl
Requires:       gawk
Buildarch:      noarch

%description
view-utilization kubectl plugin that shows cluster resource utilization. It is written in BASH/awk and uses kubectl tool to gather information. You can use it to estimate cluster capacity and see at a glance overprovisioned resoures with this simple command kubectl view-utilization.

%prep
%autosetup -p1

%build
sed -i 's/env bash/bash/g' %{name}

%install
install -D -m 0755 %{name} %{buildroot}/%{_bindir}/%{name}

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by