Accepting request 1189111 from home:ojkastl_buildservice:Branch_devel_kubic

new package talhelper: tool to help creating Talos kubernetes cluster

OBS-URL: https://build.opensuse.org/request/show/1189111
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/talhelper?expand=0&rev=1
This commit is contained in:
Johannes Kastl 2024-08-01 07:23:54 +00:00 committed by Git OBS Bridge
commit faa4cf2766
9 changed files with 199 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

22
_service Normal file
View File

@ -0,0 +1,22 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/budimanjojo/talhelper</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v3.0.4</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="manual">
</service>
<service name="go_modules" mode="manual">
</service>
<!-- services below are running at buildtime -->
<service name="tar" mode="buildtime">
</service>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">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/budimanjojo/talhelper</param>
<param name="changesrevision">cb2bec5455e03e8da917b70ca6ab2359c6a71376</param></service></servicedata>

3
talhelper-3.0.4.obscpio Normal file
View File

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

20
talhelper.changes Normal file
View File

@ -0,0 +1,20 @@
-------------------------------------------------------------------
Mon Jul 22 18:20:46 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 3.0.4:
* chore(schema): update talconfig.yaml JSON schema (#539)
* feat(config): add `noSchematicValidate` to skip schematic validation
* feat(validate): don't validate on selfhosted image factory
* chore(github-action)!: Update docker/build-push-action action to v6 (#511)
* fix: Dockerfile base image and Docker Workflow (#536)
* fix(deps): update module github.com/budimanjojo/talhelper/v3 to v3.0.3
* feat: update Scoop for talhelper version v3.0.3
* feat: update flake (#533)
* chore: bump flake to upstream go 1.22.5
* feat(validate): give information about docs on config file not found
-------------------------------------------------------------------
Mon Jul 22 18:20:13 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- new package talhelper: tool to help creating Talos kubernetes
cluster

4
talhelper.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: talhelper
version: 3.0.4
mtime: 1721012568
commit: cb2bec5455e03e8da917b70ca6ab2359c6a71376

119
talhelper.spec Normal file
View File

@ -0,0 +1,119 @@
#
# spec file for package talhelper
#
# 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
Name: talhelper
Version: 3.0.4
Release: 0
Summary: Tool to help creating Talos kubernetes cluster
License: BSD-3-Clause
URL: https://github.com/budimanjojo/talhelper
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: go >= 1.22
%description
The main reason of this tool is to help creating Talos cluster in GitOps way.
Inspired by a python script written by @bjw-s.
You can use this tool to generate Talos config file with talhelper genconfig
command. You can also use this tool to generate Talos secrets with talhelper
gensecret command.
%package -n %{name}-bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description -n %{name}-bash-completion
Bash command line completion support for %{name}.
%package -n %{name}-fish-completion
Summary: Fish Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and fish)
BuildArch: noarch
%description -n %{name}-fish-completion
Fish command line completion support for %{name}.
%package -n %{name}-zsh-completion
Summary: Zsh Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and zsh)
BuildArch: noarch
%description -n %{name}-zsh-completion
zsh command line completion support for %{name}.
%prep
%autosetup -p 1 -a 1
%build
go build \
-mod=vendor \
-buildmode=pie \
-ldflags=" \
-X github.com/budimanjojo/talhelper/v3/cmd.version=%{version}" \
-o bin/%{name}
%install
# Install the binary.
install -D -m 0755 bin/%{name} %{buildroot}/%{_bindir}/%{name}
# create the bash completion file
mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions/
%{buildroot}/%{_bindir}/%{name} completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/%{name}
# create the fish completion file
mkdir -p %{buildroot}%{_datarootdir}/fish/vendor_completions.d/
%{buildroot}/%{_bindir}/%{name} completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
# create the zsh completion file
mkdir -p %{buildroot}%{_datarootdir}/zsh_completion.d/
%{buildroot}/%{_bindir}/%{name} completion zsh > %{buildroot}%{_datarootdir}/zsh_completion.d/_%{name}
%check
./bin/%{name} --version | grep %{version}
%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%files -n %{name}-bash-completion
%dir %{_datarootdir}/bash-completion/completions/
%{_datarootdir}/bash-completion/completions/%{name}
%files -n %{name}-fish-completion
%dir %{_datarootdir}/fish
%dir %{_datarootdir}/fish/vendor_completions.d
%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
%files -n %{name}-zsh-completion
%defattr(-,root,root)
%dir %{_datarootdir}/zsh_completion.d/
%{_datarootdir}/zsh_completion.d/_%{name}
%changelog

3
vendor.tar.gz Normal file
View File

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