Imported from SRPM

This commit is contained in:
Sergey Zhemoytel 2022-08-31 19:01:56 +03:00
commit b729888285
2 changed files with 42 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
kubectl-execws-0.1.0.tar.gz: e211a9a491f2aeb825b8d2fe0ef8d8c2c401e814

40
kubectl-execws.spec Normal file
View file

@ -0,0 +1,40 @@
%define debug %nil
%define debug_package %nil
Name: kubectl-execws
Version: 0.1.0
Release: 1
Summary: "Kubectl exec" that works over WebSocket connections
URL: https://github.com/jpts/kubectl-execws
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
License: MIT
Group: Development/Other
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
%description
A replacement for "kubectl exec" that works over WebSocket
connections.
The Kubernetes API server has support for exec over
WebSockets, but it has yet to land in kubectl. Although
some proposals exist to add the functionality, they seem
quite far away from landing. This plugin is designed to
be a stopgap until they do.
%prep
%setup -q
%build
go build -o ./bin/%{name}
upx ./bin/%{name}
%install
install -Dm0755 ./bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
%doc README.md LICENSE
%{_bindir}/%{name}