kubectl-execws/kubectl-execws.spec
Your Name 72ce0354cf
All checks were successful
Run CI/CD... / main (push) Successful in 7m50s
0.3.1
2025-02-10 21:00:15 +00:00

41 lines
918 B
RPMSpec

%define debug %nil
%define debug_package %nil
Name: kubectl-execws
Version: 0.3.1
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
export GOPROXY=direct
go build -o ./bin/%{name}
upx ./bin/%{name}
%install
install -Dm0755 ./bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
%doc README.md LICENSE
%{_bindir}/%{name}