From 9b4bee964d3ce1bd1d8283f003990bd5963907aa Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Tue, 12 Mar 2024 23:24:26 +0200 Subject: [PATCH] +talos.dev (#5561) * new file: projects/talos.dev/package.yml * modified: projects/talos.dev/package.yml --- projects/talos.dev/package.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 projects/talos.dev/package.yml diff --git a/projects/talos.dev/package.yml b/projects/talos.dev/package.yml new file mode 100644 index 00000000..0f65385d --- /dev/null +++ b/projects/talos.dev/package.yml @@ -0,0 +1,33 @@ +distributable: + url: https://github.com/siderolabs/talos/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: siderolabs/talos + +build: + dependencies: + go.dev: ^1.21 + linux: + # invalid linker name in argument '-fuse-ld=gold' + gnu.org/gcc: '*' + script: + go build $ARGS -ldflags="$LDFLAGS" ./cmd/talosctl + env: + ARGS: + - -trimpath + - -o={{prefix}}/bin/talosctl + LDFLAGS: + - -s + - -w + linux: + LDFLAGS: + - -buildmode=pie + +provides: + - bin/talosctl + +test: + - talosctl help | grep 'A CLI for out-of-band management of Kubernetes nodes created by Talos' + - talosctl gen config --version v1alpha1 test_cluster 127.0.0.1:2222 2>out.log || true + - cat out.log | grep 'https://127.0.0.1:2222'