From 591b55429104a156e85b6cdbc14a4b3ea2ebc37ea3aa803b38f25e331355d65b Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Sun, 15 Dec 2024 10:26:25 +0000 Subject: [PATCH] Accepting request 1231203 from home:ojkastl_buildservice:Branch_devel_kubic update to 2.11.3 OBS-URL: https://build.opensuse.org/request/show/1231203 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/k8up-cli?expand=0&rev=7 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + _service | 23 +++++++++++++ _servicedata | 4 +++ k8up-cli-2.11.1.obscpio | 3 ++ k8up-cli-2.11.2.obscpio | 3 ++ k8up-cli-2.11.3.obscpio | 3 ++ k8up-cli.changes | 21 ++++++++++++ k8up-cli.obsinfo | 4 +++ k8up-cli.spec | 72 +++++++++++++++++++++++++++++++++++++++++ vendor.tar.gz | 3 ++ 11 files changed, 160 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 k8up-cli-2.11.1.obscpio create mode 100644 k8up-cli-2.11.2.obscpio create mode 100644 k8up-cli-2.11.3.obscpio create mode 100644 k8up-cli.changes create mode 100644 k8up-cli.obsinfo create mode 100644 k8up-cli.spec create mode 100644 vendor.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..9c342e0 --- /dev/null +++ b/_service @@ -0,0 +1,23 @@ + + + https://github.com/k8up-io/k8up/ + git + .git + v2.11.3 + @PARENT_TAG@ + v(.*) + enable + k8up-cli + + + + + + + + + + *.tar + gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..c46d4b7 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/k8up-io/k8up/ + be9529f1242148b614a3d0911e7c655955b2835e \ No newline at end of file diff --git a/k8up-cli-2.11.1.obscpio b/k8up-cli-2.11.1.obscpio new file mode 100644 index 0000000..a057c1d --- /dev/null +++ b/k8up-cli-2.11.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65d609c7b1b2a48a3c72e96a79acab5edd2560eedb1dbd9d0638337ba7dec143 +size 7771149 diff --git a/k8up-cli-2.11.2.obscpio b/k8up-cli-2.11.2.obscpio new file mode 100644 index 0000000..b7fcbc6 --- /dev/null +++ b/k8up-cli-2.11.2.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:694eb50b0e7f0611fc6f491656861bd5b2a32b7eaf655715b99de8f88f0a68df +size 7774733 diff --git a/k8up-cli-2.11.3.obscpio b/k8up-cli-2.11.3.obscpio new file mode 100644 index 0000000..e9daf24 --- /dev/null +++ b/k8up-cli-2.11.3.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9af00ba9433476d6e5c465a2afb5e1abca017e3e4ad6bcd7fe01a1358209784 +size 7776781 diff --git a/k8up-cli.changes b/k8up-cli.changes new file mode 100644 index 0000000..c7f313c --- /dev/null +++ b/k8up-cli.changes @@ -0,0 +1,21 @@ +------------------------------------------------------------------- +Sun Dec 15 10:14:29 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 2.11.3: + * Make sure the backup cleanup is always triggered + * Fix tag + * Bump K8up version + +------------------------------------------------------------------- +Tue Dec 10 08:46:26 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 2.11.2: + * Fail whole prebackup if command exit != 0 + * pin the mariadb prebackuppod image to a working one + * chore: Address linter issues + +------------------------------------------------------------------- +Tue Sep 10 07:25:08 UTC 2024 - Johannes Kastl + +- new package k8up-cli: CLI for the K8up Kubernetes and OpenShift + Backup Operator diff --git a/k8up-cli.obsinfo b/k8up-cli.obsinfo new file mode 100644 index 0000000..252eb4d --- /dev/null +++ b/k8up-cli.obsinfo @@ -0,0 +1,4 @@ +name: k8up-cli +version: 2.11.3 +mtime: 1734103260 +commit: be9529f1242148b614a3d0911e7c655955b2835e diff --git a/k8up-cli.spec b/k8up-cli.spec new file mode 100644 index 0000000..d2ca0c7 --- /dev/null +++ b/k8up-cli.spec @@ -0,0 +1,72 @@ +# +# spec file for package k8up-cli +# +# Copyright (c) 2024 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/ +# + + +%define __arch_install_post export NO_BRP_STRIP_DEBUG=true + +%define executable_name k8up + +Name: k8up-cli +Version: 2.11.3 +Release: 0 +Summary: CLI for the K8up Kubernetes and OpenShift Backup Operator +License: Apache-2.0 +URL: https://github.com/k8up-io/k8up +Source: %{name}-%{version}.tar.gz +Source1: vendor.tar.gz +BuildRequires: go >= 1.21 + +%description +K8up is a Kubernetes backup operator based on Restic that will handle PVC and +application backups on a Kubernetes or OpenShift cluster. + +Just create a schedule and a credentials object in the namespace you’d like to +backup. It’s that easy. K8up takes care of the rest. It also provides a +Prometheus endpoint for monitoring. + +K8up is production ready. It is used in production deployments since 2019. + +This package contains the CLI. + +%prep +%autosetup -p 1 -a 1 + +%build +COMMIT_HASH="$(sed -n 's/commit: \(.*\)/\1/p' %_sourcedir/%{name}.obsinfo)" + +DATE_FMT="+%%Y-%%m-%%dT%%H:%%M:%%SZ" +BUILD_DATE=$(date -u -d "@${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u -r "${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u "${DATE_FMT}") + +go build \ + -mod=vendor \ + -buildmode=pie \ + -ldflags=" \ + -X main.version=v%{version} \ + -X main.commit=${COMMIT_HASH} \ + -X main.date=${BUILD_DATE}" \ + -o bin/%{executable_name} ./cmd/%{executable_name} + +%install +# Install the binary. +install -D -m 0755 bin/%{executable_name} %{buildroot}/%{_bindir}/%{executable_name} + +%files +%doc README.md +%license LICENSE +%{_bindir}/%{executable_name} + +%changelog diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..0b29d46 --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da8e6fa41996686001d5a909a67245a659664e15cca23d2e6b7a9bb11aa6784c +size 7987092