Sync from SUSE:SLFO:Main elemental-operator revision b1dd9dcdc894894e330fefe68e7c0688
This commit is contained in:
commit
de02774758
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
16
_service
Normal file
16
_service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<services>
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="url">https://github.com/rancher/elemental-operator</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="exclude">.git</param>
|
||||||
|
<param name="revision">v1.6.x</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="versionrewrite-pattern">v([^-]*)-?.*</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
<param name="extract">.obs/specfile/elemental-operator.spec</param>
|
||||||
|
</service>
|
||||||
|
<service name="tar" mode="buildtime"/>
|
||||||
|
<service name="set_version" mode="manual">
|
||||||
|
<param name="basename">elemental-operator</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<servicedata>
|
||||||
|
<service name="tar_scm">
|
||||||
|
<param name="url">https://github.com/rancher/elemental-operator</param>
|
||||||
|
<param name="changesrevision">9020287b764a91ec99a85b788ad3fcc74fac6986</param></service></servicedata>
|
BIN
elemental-operator-1.6.0.obscpio
(Stored with Git LFS)
Normal file
BIN
elemental-operator-1.6.0.obscpio
(Stored with Git LFS)
Normal file
Binary file not shown.
1079
elemental-operator.changes
Normal file
1079
elemental-operator.changes
Normal file
File diff suppressed because it is too large
Load Diff
4
elemental-operator.obsinfo
Normal file
4
elemental-operator.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: elemental-operator
|
||||||
|
version: 1.6.0
|
||||||
|
mtime: 1712244903
|
||||||
|
commit: 9020287b764a91ec99a85b788ad3fcc74fac6986
|
163
elemental-operator.spec
Normal file
163
elemental-operator.spec
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
#
|
||||||
|
# spec file for package elemental-operator
|
||||||
|
#
|
||||||
|
# Copyright (c) 2022 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: elemental-operator
|
||||||
|
Version: 1.6.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Kubernetes operator to support OS management
|
||||||
|
License: Apache-2.0
|
||||||
|
Group: System/Management
|
||||||
|
URL: https://github.com/rancher/%{name}
|
||||||
|
Source: %{name}-%{version}.tar
|
||||||
|
Source1: %{name}.obsinfo
|
||||||
|
|
||||||
|
# go-tpm-tools aren't _that_ portable :-(
|
||||||
|
ExclusiveArch: x86_64 aarch64
|
||||||
|
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: grep
|
||||||
|
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
BuildRequires: golang(API) >= 1.22
|
||||||
|
BuildRequires: golang-packaging
|
||||||
|
%{go_provides}
|
||||||
|
%else
|
||||||
|
%global goipath google.golang.org/api
|
||||||
|
%global forgeurl https://github.com/rancher/elemental-operator
|
||||||
|
%global commit 25abcdc57b9409d4c5b2009cf0a2f9aa6ff647ad
|
||||||
|
%gometa
|
||||||
|
%if (0%{?centos_version} == 800) || (0%{?rhel_version} == 800)
|
||||||
|
BuildRequires: go1.22
|
||||||
|
%else
|
||||||
|
BuildRequires: compiler(go-compiler) >= 1.22
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%define systemdir /system
|
||||||
|
%define oemdir %{systemdir}/oem
|
||||||
|
|
||||||
|
%package -n elemental-register
|
||||||
|
Summary: The registration client
|
||||||
|
|
||||||
|
%description
|
||||||
|
The Elemental operator is responsible for managing the OS
|
||||||
|
versions and maintaining a machine inventory to assist with edge or
|
||||||
|
baremetal installations.
|
||||||
|
|
||||||
|
%description -n elemental-register
|
||||||
|
The elemental-register command is responsible of the node registration
|
||||||
|
against an elemental-operator instance running under Rancher.
|
||||||
|
|
||||||
|
%package -n elemental-support
|
||||||
|
Summary: Collect important logs for support
|
||||||
|
|
||||||
|
%description -n elemental-support
|
||||||
|
This collects essential configuration files and logs to improve issue
|
||||||
|
resolution.
|
||||||
|
|
||||||
|
%package -n elemental-httpfy
|
||||||
|
Summary: Simple http server
|
||||||
|
|
||||||
|
%description -n elemental-httpfy
|
||||||
|
httpfy starts a simple http server, serving files from the current dir.
|
||||||
|
|
||||||
|
%package -n elemental-seedimage-hooks
|
||||||
|
Summary: Hooks used in SeedImage builder
|
||||||
|
|
||||||
|
%description -n elemental-seedimage-hooks
|
||||||
|
Hooks used in SeedImage builder to copy firmware when building disk-images.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{version}
|
||||||
|
cp %{S:1} .
|
||||||
|
|
||||||
|
%build
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
%goprep .
|
||||||
|
%endif
|
||||||
|
|
||||||
|
mkdir -p bin
|
||||||
|
if [ "$(uname)" = "Linux" ]; then
|
||||||
|
OTHER_LINKFLAGS="-extldflags -static -s"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export GIT_TAG=`echo "%{version}" | cut -d "+" -f 1`
|
||||||
|
GIT_COMMIT=$(cat %{name}.obsinfo | grep commit: | cut -d" " -f 2)
|
||||||
|
export GIT_COMMIT=${GIT_COMMIT:0:8}
|
||||||
|
MTIME=$(cat %{name}.obsinfo | grep mtime: | cut -d" " -f 2)
|
||||||
|
export COMMITDATE=$(date -d @${MTIME} +%Y%m%d)
|
||||||
|
|
||||||
|
# build binaries
|
||||||
|
CGO_ENABLED=0 make operator
|
||||||
|
CGO_ENABLED=1 make register
|
||||||
|
make support
|
||||||
|
make httpfy
|
||||||
|
|
||||||
|
%install
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
%goinstall
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# /usr/sbin
|
||||||
|
%{__install} -d -m 755 %{buildroot}/%{_sbindir}
|
||||||
|
|
||||||
|
|
||||||
|
# binary
|
||||||
|
%{__install} -m 755 build/elemental-operator %{buildroot}%{_sbindir}
|
||||||
|
%{__install} -m 755 build/elemental-register %{buildroot}%{_sbindir}
|
||||||
|
%{__install} -m 755 build/elemental-support %{buildroot}%{_sbindir}
|
||||||
|
%{__install} -m 755 build/elemental-httpfy %{buildroot}%{_sbindir}
|
||||||
|
|
||||||
|
# hooks
|
||||||
|
mkdir -p %{buildroot}%{oemdir}
|
||||||
|
%{__install} -m 755 hooks/*.yaml %{buildroot}%{oemdir}/
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%license LICENSE
|
||||||
|
%{_sbindir}/%{name}
|
||||||
|
|
||||||
|
%files -n elemental-register
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%license LICENSE
|
||||||
|
%{_sbindir}/elemental-register
|
||||||
|
|
||||||
|
%files -n elemental-support
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%license LICENSE
|
||||||
|
%{_sbindir}/elemental-support
|
||||||
|
|
||||||
|
|
||||||
|
%files -n elemental-httpfy
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%license LICENSE
|
||||||
|
%{_sbindir}/elemental-httpfy
|
||||||
|
|
||||||
|
%files -n elemental-seedimage-hooks
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%license LICENSE
|
||||||
|
%dir %{systemdir}
|
||||||
|
%dir %{oemdir}
|
||||||
|
%{oemdir}/*
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user