Accepting request 953752 from home:ojkastl_buildservice:Branch_devel_kubic

new package kubeseal: CLI part for using Bitnami's SealedSecrets in Kubernetes

OBS-URL: https://build.opensuse.org/request/show/953752
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/kubeseal?expand=0&rev=1
This commit is contained in:
Richard Brown 2022-02-14 13:29:31 +00:00 committed by Git OBS Bridge
commit c00c41c219
8 changed files with 117 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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

21
_service Normal file
View File

@ -0,0 +1,21 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/bitnami-labs/sealed-secrets</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v0.17.3</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="disabled">
<param name="basename">sealed-secrets</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="go_modules" mode="disabled">
<param name="archive">sealed-secrets-0.17.3.tar.gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/bitnami-labs/sealed-secrets</param>
<param name="changesrevision">a509b7054df8410d0581f8086fc02098a442c154</param></service></servicedata>

4
kubeseal.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Feb 11 14:09:29 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
- new package kubeseal: CLI part for using Bitnami's SealedSecrets in Kubernetes

58
kubeseal.spec Normal file
View File

@ -0,0 +1,58 @@
#
# spec file for package kubeseal
#
# 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/
#
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
%define archive_name sealed-secrets
Name: kubeseal
Version: 0.17.3
Release: 0
Summary: CLI for encrypting secrets to SealedSecrets
License: Apache-2.0
URL: https://github.com/bitnami-labs/sealed-secrets
Source: %{archive_name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: go >= 1.17
%description
Problem: "I can manage all my K8s config in git, except Secrets."
Solution: Encrypt your Secret into a SealedSecret, which is safe to store - even to a public repository. The SealedSecret can be decrypted only by the controller running in the target cluster and nobody else (not even the original author) is able to obtain the original Secret from the SealedSecret.
%prep
%setup -q -n %{archive_name}-%{version}
%setup -q -n %{archive_name}-%{version} -T -D -a 1
%build
go build \
-mod=vendor \
-buildmode=pie \
-ldflags="-X main.VERSION=%{version}" \
-o bin/kubeseal ./cmd/kubeseal
%install
# Install the binary.
install -D -m 0755 bin/%{name} "%{buildroot}/%{_bindir}/%{name}"
%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%changelog

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bcba961782462330c154545a4abcaf7e233e305c075c6d5eaa8991e542e4599b
size 170334

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:922ca1e19774fe04a2f621f0bd7993d56e83c7bc71c3a6b1ba365427279b4d89
size 7452960