From faa4cf27669c26b908279b77912d8914f8cfec7db1501c3b2c73b73b211d560c Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Thu, 1 Aug 2024 07:23:54 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++ .gitignore | 1 + _service | 22 ++++++++ _servicedata | 4 ++ talhelper-3.0.4.obscpio | 3 + talhelper.changes | 20 +++++++ talhelper.obsinfo | 4 ++ talhelper.spec | 119 ++++++++++++++++++++++++++++++++++++++++ vendor.tar.gz | 3 + 9 files changed, 199 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 talhelper-3.0.4.obscpio create mode 100644 talhelper.changes create mode 100644 talhelper.obsinfo create mode 100644 talhelper.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..ddbf9f5 --- /dev/null +++ b/_service @@ -0,0 +1,22 @@ + + + https://github.com/budimanjojo/talhelper + git + .git + v3.0.4 + @PARENT_TAG@ + enable + v(.*) + + + + + + + + + + *.tar + gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..2f52574 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/budimanjojo/talhelper + cb2bec5455e03e8da917b70ca6ab2359c6a71376 \ No newline at end of file diff --git a/talhelper-3.0.4.obscpio b/talhelper-3.0.4.obscpio new file mode 100644 index 0000000..f5b9cb7 --- /dev/null +++ b/talhelper-3.0.4.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3fefbbb3c2cd8cb2a714b00f1b67fb7f653d831fffd13775aa7435971df8d06 +size 789004 diff --git a/talhelper.changes b/talhelper.changes new file mode 100644 index 0000000..7dc45c7 --- /dev/null +++ b/talhelper.changes @@ -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 + +- new package talhelper: tool to help creating Talos kubernetes + cluster diff --git a/talhelper.obsinfo b/talhelper.obsinfo new file mode 100644 index 0000000..78b9116 --- /dev/null +++ b/talhelper.obsinfo @@ -0,0 +1,4 @@ +name: talhelper +version: 3.0.4 +mtime: 1721012568 +commit: cb2bec5455e03e8da917b70ca6ab2359c6a71376 diff --git a/talhelper.spec b/talhelper.spec new file mode 100644 index 0000000..6824a0b --- /dev/null +++ b/talhelper.spec @@ -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 diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..377694e --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:706dca8f0b708b4e960fee60eb938269577a779668ca7d0fc873aa2e7ed5a66c +size 7887776