Add a new OpenAPI v3 REST API to warewulfd at /api
Co-authored-by: jason yang <jasonyangshadow@gmail.com> Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global api 0
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%global tftpdir /srv/tftpboot
|
||||
%else
|
||||
@@ -73,9 +71,6 @@ BuildRequires: git
|
||||
BuildRequires: make
|
||||
BuildRequires: gpgme-devel
|
||||
BuildRequires: python3-devel
|
||||
%if %{api}
|
||||
BuildRequires: libassuan-devel
|
||||
%endif
|
||||
|
||||
Recommends: logrotate
|
||||
Recommends: ipmitool
|
||||
@@ -113,9 +108,6 @@ make defaults \
|
||||
SOSPLUGINS=%{python3_sitelib}/sos/report/plugins \
|
||||
CACHEDIR=%{_localstatedir}/cache
|
||||
make build
|
||||
%if %{api}
|
||||
make api
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
@@ -123,10 +115,6 @@ export OFFLINE_BUILD=1
|
||||
export NO_BRP_STALE_LINK_ERROR=yes
|
||||
make install \
|
||||
DESTDIR=%{buildroot}
|
||||
%if %{api}
|
||||
make installapi \
|
||||
DESTDIR=%{buildroot}
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} || 0%{?sle_version}
|
||||
yq e '
|
||||
@@ -162,6 +150,7 @@ getent group %{wwgroup} >/dev/null || groupadd -r %{wwgroup}
|
||||
%dir %{_sysconfdir}/warewulf
|
||||
%config(noreplace) %{_sysconfdir}/warewulf/warewulf.conf
|
||||
%config(noreplace) %attr(0640,-,%{wwgroup}) %{_sysconfdir}/warewulf/nodes.conf
|
||||
%config(noreplace) %attr(0600,-,-) %{_sysconfdir}/warewulf/auth.conf
|
||||
%config(noreplace) %{_sysconfdir}/warewulf/examples
|
||||
%config(noreplace) %{_sysconfdir}/warewulf/ipxe
|
||||
%config(noreplace) %{_sysconfdir}/warewulf/grub
|
||||
@@ -208,11 +197,6 @@ getent group %{wwgroup} >/dev/null || groupadd -r %{wwgroup}
|
||||
%dir %{_docdir}/warewulf
|
||||
%license %{_docdir}/warewulf/LICENSE.md
|
||||
|
||||
%if %{api}
|
||||
%{_bindir}/wwapi*
|
||||
%config(noreplace) %{_sysconfdir}/warewulf/wwapi*.conf
|
||||
%endif
|
||||
|
||||
|
||||
%package dracut
|
||||
Summary: dracut module for loading a Warewulf image
|
||||
@@ -260,6 +244,9 @@ about Warewulf in an sos report.
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Apr 1 2025 Jonathon Anderson <janderson@ciq.com>
|
||||
- Remove gRPC API
|
||||
|
||||
* Thu Feb 20 2025 Stephen Simpson <ssimpson@ciq.com>
|
||||
- Added sos plugin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user