kubectl-execws/kubectl-execws.spec

42 lines
918 B
RPMSpec
Raw Normal View History

2022-08-31 19:01:56 +03:00
%define debug %nil
%define debug_package %nil
Name: kubectl-execws
2025-02-10 21:00:15 +00:00
Version: 0.3.1
2022-08-31 19:01:56 +03:00
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
2025-02-10 21:00:15 +00:00
export GOPROXY=direct
2022-08-31 19:01:56 +03:00
go build -o ./bin/%{name}
upx ./bin/%{name}
%install
install -Dm0755 ./bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
%doc README.md LICENSE
%{_bindir}/%{name}