Sync from SUSE:ALP:Source:Standard:1.0 elemental-system-agent revision 40c3be068a173ea91b7c119af32339d0

This commit is contained in:
Adrian Schröter 2024-02-22 13:14:04 +01:00
commit 8ecd7bea73
7 changed files with 254 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

20
_service Normal file
View File

@ -0,0 +1,20 @@
<services>
<service name="tar_scm" mode="manual">
<param name="url">https://github.com/rancher/system-agent</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="versionformat">v0.3.4</param>
<param name="revision">v0.3.4</param>
<param name="filename">elemental-system-agent</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="manual">
<param name="file">elemental-system-agent-*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="manual">
<param name="basename">elemental-system-agent</param>
</service>
<service name="go_modules" mode="manual"/>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/rancher/system-agent</param>
<param name="changesrevision">63eb11a35d568c634420643aa1306f459e0f8c07</param></service></servicedata>

BIN
elemental-system-agent-0.3.4.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,112 @@
-------------------------------------------------------------------
Mon Feb 19 14:36:53 UTC 2024 - kkaempf@suse.com
- Update to version 0.3.4:
* Add initial Renovate configuration (#117)
* bump docker version and go deps to fix CVEs
* Fix repeated time parse error on probes that have not yet run successfully
- switched _service from 'disabled' to 'manual'
-------------------------------------------------------------------
Mon Sep 25 05:07:37 UTC 2023 - David Cassany <dcassany@suse.com>
- Remove the systemd unit file as this is now included as part of
elemental package
-------------------------------------------------------------------
Tue Jul 18 15:34:57 UTC 2023 - Klaus Kämpf <kkaempf@suse.com>
- Fix .spec to build and install on non-SUSE distributions
-------------------------------------------------------------------
Mon Jul 17 16:52:06 UTC 2023 - kkaempf@suse.com
- Update to version 0.3.3:
* Add CATTLE_AGENT_ATTEMPT_NUMBER environment variable that corresponds to failure count for K8s plan application (#115)
* Retry update with latest secret if plan still matches the applied plan (#114)
* Add support for transactional-update based systems (#105)
* Add error handling logic that handles edge cases to force the system-agent to restart if we encounter non-transient errors. Disallow the K8s watcher from manipulating a secret when the UID changes. (#112)
* Update CODEOWNERS
* Add CODEOWNERS
* Update wrangler to v1.1.0
-------------------------------------------------------------------
Wed Apr 12 12:11:51 UTC 2023 - kkaempf@suse.com
- Update to version 0.3.2:
* Convert uname aarch64 to k8s arm64 before downloading kubectl
* Only try to get the client version with kubectl
* Make curl fail on non 2xx codes
* Use `kubectl version` to make sure the downloaded binary works
-------------------------------------------------------------------
Wed Feb 01 09:45:00 UTC 2023 - kkaempf@suse.com
- Update to version 0.3.1:
* Use plugins/docker for arm64 instead of custom image
* Update pipelines to support suc for arm64 and remove all arm support
* Bump golang to 1.19.4-alpine3.17, rancher/wharfie to v0.5.3, and dapper to v0.6.0 (#102)
* Add docker-publish-suc for s390x (#91)
* fix(run.sh): cleanup temp folder when script fail (#100)
-------------------------------------------------------------------
Thu Nov 03 13:12:34 UTC 2022 - kkaempf@suse.com
- Update to version 0.2.13:
* Add back TLSClientConfig to transport
* Add proxy to validate rest config
* This fixes the TLS handshake on Windows.
* Reuse version if found for binary, and add uninstall to suc entrypoint
* Bump to go1.18 and client-go 1.24, remove windows-specific x509 logic (#86)
* Fix nil-pointer dereference on windows context
* add windows support for root CA cert stores (#84)
-------------------------------------------------------------------
Tue Oct 04 06:35:01 UTC 2022 - kkaempf@suse.com
- Update to version 0.2.11+git20220927.99069d7:
* Add proxy to validate rest config
-------------------------------------------------------------------
Mon Aug 29 13:29:09 UTC 2022 - kkaempf@suse.com
- Update to version 0.2.10+git20220801.6a89e30:
* This fixes the TLS handshake on Windows.
* Reuse version if found for binary, and add uninstall to suc entrypoint
-------------------------------------------------------------------
Tue Jul 19 06:59:19 UTC 2022 - Klaus Kämpf <kkaempf@suse.com>
- don't run in live mode or if rancher-system-agent is already present
-------------------------------------------------------------------
Fri Jul 15 05:58:08 UTC 2022 - kkaempf@suse.com
- Update to version 0.2.9+git20220713.bbb6969:
* Bump to go1.18 and client-go 1.24, remove windows-specific x509 logic (#86)
-------------------------------------------------------------------
Fri Jun 24 08:59:58 UTC 2022 - kkaempf@suse.com
- renamed to elemental-system-agent
- Update to version 0.2.8+git20220623.5b9b848:
* Renamed uninstall.sh to system-agent-uninstall.sh
* Implemented uninstall script and added to install script
-------------------------------------------------------------------
Fri May 20 08:59:33 UTC 2022 - kkaempf@suse.com
- Update to version 0.2.7+git20220506.65aac83:
* Fix nil-pointer dereference on windows context
* add windows support for root CA cert stores (#84)
* Increase max periodic cooldown duration, tidy applyinator, and add debug messages (#81)
* add max-retries and periodic cooldown (#80)
* Correctly pick up on failed apply (#79)
* Move log messages around to prevent unnecessarily redundant messages (#78)
* create directory for applied plans before listing the directory (#77)
* Only write applied plan contents if the plan actually changes (#75)
* Set default log level to info (#76)
* change field name (#73)

View File

@ -0,0 +1,89 @@
#
# spec file for package elemental-system-agent
#
# 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-system-agent
%define gitname system-agent
Version: 0.3.4
Release: 0
Summary: Rancher system agent to apply 'plans' to a system
License: Apache-2.0
Group: System/Management
URL: https://github.com/rancher/%{gitname}
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
%if 0%{?suse_version}
BuildRequires: golang-packaging
BuildRequires: golang(API) >= 1.16
%{go_provides}
%else
%global goipath github.com/rancher/system-agent
%global forgeurl https://github.com/rancher/system-agent
%global goname %{name}
%gometa
%if (0%{?centos_version} == 800) || (0%{?rhel_version} == 800)
BuildRequires: go1.20
%else
BuildRequires: compiler(go-compiler)
%endif
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
elemental-system-agent is a daemon designed to run on a system and apply
"plans" to the system. elemental-system-agent can support both local and
remote plans, and was built to be integrated with the Rancher2 project
for provisioning next-generation, CAPI driven clusters.
%prep
%setup -q
tar xf %{S:1}
%build
%if 0%{?suse_version}
%goprep .
%endif
mkdir -p bin
if [ "$(uname)" = "Linux" ]; then
OTHER_LINKFLAGS="-extldflags -static -s"
fi
CGO_ENABLED=0 go build -ldflags "$LINKFLAGS $OTHER_LINKFLAGS" -o bin/%{name}
%install
%if 0%{?suse_version}
%goinstall
%endif
# /usr/sbin
%{__install} -d -m 755 %{buildroot}/%{_sbindir}
# elemental-system-agent
%{__install} -m 755 bin/%{name} %{buildroot}%{_sbindir}
%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%{_sbindir}/%{name}
%changelog

BIN
vendor.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.