Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] k0s 1.22.2.0
@ 2021-10-05 14:21 Gottox
  2021-10-05 14:24 ` [PR PATCH] [Updated] " Gottox
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Gottox @ 2021-10-05 14:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 370 bytes --]

There is a new pull request by Gottox against master on the void-packages repository

https://github.com/Gottox/void-packages k0s-1.22.2.0
https://github.com/void-linux/void-packages/pull/33345

k0s 1.22.2.0
- New package: konnectivity-server-0.0.14
- New package: k0s-1.22.2.0


A patch file from https://github.com/void-linux/void-packages/pull/33345.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-k0s-1.22.2.0-33345.patch --]
[-- Type: text/x-diff, Size: 6286 bytes --]

From ba4f3dc3cf1b2b483de3d6ff6b1a652fca400c05 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 16:35:57 +0100
Subject: [PATCH 1/2] New package: konnectivity-server-0.0.14

---
 srcpkgs/konnectivity-server/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/konnectivity-server/template

diff --git a/srcpkgs/konnectivity-server/template b/srcpkgs/konnectivity-server/template
new file mode 100644
index 000000000000..378820685c1d
--- /dev/null
+++ b/srcpkgs/konnectivity-server/template
@@ -0,0 +1,18 @@
+# Template file for 'konnectivity-server'
+pkgname=konnectivity-server
+version=0.0.14
+revision=1
+wrksrc=apiserver-network-proxy-$version
+build_style=go
+go_import_path=sigs.k8s.io/apiserver-network-proxy
+go_package="${go_import_path}/cmd/server"
+short_desc="Official reference implementation of kubernetes server network proxy"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://github.com/kubernetes-sigs/apiserver-network-proxy"
+distfiles="https://github.com/kubernetes-sigs/apiserver-network-proxy/archive/v$version.tar.gz"
+checksum=933b961ba70a76b2fec1a67020e29bbc2d7457d54f207b26df30c20d288d3bd0
+
+post_install() {
+	mv $DESTDIR/usr/bin/server $DESTDIR/usr/bin/konnectivity-server
+}

From a09cd7bb9a31d77e21e28fa2dc40477b54acca02 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 13:41:45 +0100
Subject: [PATCH 2/2] New package: k0s-1.22.2.0

---
 srcpkgs/k0s/files/k0s-controller.default |  3 ++
 srcpkgs/k0s/files/k0s-controller/run     |  7 ++++
 srcpkgs/k0s/files/k0s-worker.default     |  4 +++
 srcpkgs/k0s/files/k0s-worker/run         | 16 +++++++++
 srcpkgs/k0s/files/k0s.default            |  3 ++
 srcpkgs/k0s/files/k0s/run                |  7 ++++
 srcpkgs/k0s/template                     | 46 ++++++++++++++++++++++++
 7 files changed, 86 insertions(+)
 create mode 100644 srcpkgs/k0s/files/k0s-controller.default
 create mode 100755 srcpkgs/k0s/files/k0s-controller/run
 create mode 100644 srcpkgs/k0s/files/k0s-worker.default
 create mode 100755 srcpkgs/k0s/files/k0s-worker/run
 create mode 100644 srcpkgs/k0s/files/k0s.default
 create mode 100755 srcpkgs/k0s/files/k0s/run
 create mode 100644 srcpkgs/k0s/template

diff --git a/srcpkgs/k0s/files/k0s-controller.default b/srcpkgs/k0s/files/k0s-controller.default
new file mode 100644
index 000000000000..b3db337f0489
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-controller.default
@@ -0,0 +1,3 @@
+# K0S_ENABLE_WORKER=false
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/server.token
diff --git a/srcpkgs/k0s/files/k0s-controller/run b/srcpkgs/k0s/files/k0s-controller/run
new file mode 100755
index 000000000000..ba65b7c92064
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-controller/run
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+. /etc/default/k0s
+
+exec chpst -u _k0s:_k0s k0s -c "/etc/k0s/k0s.conf" server \
+	${K0S_ENABLE_WORKER:+--enable-worker} \
+	${K0S_PROFILE:+--profile="${K0S_PROFILE}"} \
+	${K0S_TOKEN_FILE:+--token-file="${K0S_TOKEN_FILE}"}
diff --git a/srcpkgs/k0s/files/k0s-worker.default b/srcpkgs/k0s/files/k0s-worker.default
new file mode 100644
index 000000000000..ac5abbfb3f5a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker.default
@@ -0,0 +1,4 @@
+# K0S_CRI_SOCKET=remote:/run/containerd/containerd.sock
+# K0S_ENABLE_CLOUD_PROVIDER=true
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/worker.token
diff --git a/srcpkgs/k0s/files/k0s-worker/run b/srcpkgs/k0s/files/k0s-worker/run
new file mode 100755
index 000000000000..f49359674f1a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+. /etc/default/k0s-worker
+case ${K0S_CRI_SOCKET} in
+	remote:*)
+		sv check containerd
+		;;
+	docker:*)
+		sv check docker
+		;;
+esac
+
+exec k0s -c "/etc/k0s/k0s.conf" worker \
+	${K0S_CRI_SOCKET:+--cri-socket="$K0S_CRI_SOCKET"} \
+	${K0S_ENABLE_CLOUD_PROVIDER:+--enable-cloud-provider} \
+	${K0S_PROFILE:+--profile="$K0S_PROFILE"} \
+	--token-file=${K0S_TOKEN_FILE:-/etc/k0s/worker.token}
diff --git a/srcpkgs/k0s/files/k0s.default b/srcpkgs/k0s/files/k0s.default
new file mode 100644
index 000000000000..b3db337f0489
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s.default
@@ -0,0 +1,3 @@
+# K0S_ENABLE_WORKER=false
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/server.token
diff --git a/srcpkgs/k0s/files/k0s/run b/srcpkgs/k0s/files/k0s/run
new file mode 100755
index 000000000000..ba65b7c92064
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+. /etc/default/k0s
+
+exec chpst -u _k0s:_k0s k0s -c "/etc/k0s/k0s.conf" server \
+	${K0S_ENABLE_WORKER:+--enable-worker} \
+	${K0S_PROFILE:+--profile="${K0S_PROFILE}"} \
+	${K0S_TOKEN_FILE:+--token-file="${K0S_TOKEN_FILE}"}
diff --git a/srcpkgs/k0s/template b/srcpkgs/k0s/template
new file mode 100644
index 000000000000..5a111cee2569
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,46 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=1.22.2.0
+revision=1
+_version=${version%.*}+k0s.${version##*.}
+wrksrc="${pkgname}-${_version//+/-}"
+build_style=go
+build_helper="qemu"
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes containerd konnectivity-server etcd"
+short_desc="Zero Friction Kubernetes"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://k0sproject.io/"
+distfiles="https://github.com/k0sproject/$pkgname/archive/v${_version}.tar.gz"
+checksum=42d4f52a5eddd19128648c2c5510217882e0ef0a880181a2a140bc46ed61728d
+system_accounts="_k0s"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+conf_files="
+	/etc/k0s/k0s.conf
+	/etc/default/*"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none \
+		static/gen_manifests.go \
+		pkg/assets/zz_generated_offsets_linux.go
+}
+
+post_install() {
+	vsv k0s
+	vinstall ${FILESDIR}/k0s.default 644 /etc/default/ k0s
+
+	vsv k0s-worker
+	vinstall ${FILESDIR}/k0s-worker.default 644 /etc/default/ k0s-worker
+
+	vmkdir etc/k0s
+
+	vtargetrun $DESTDIR/usr/bin/k0s default-config > $DESTDIR/etc/k0s/k0s.conf
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] k0s 1.22.2.0
  2021-10-05 14:21 [PR PATCH] k0s 1.22.2.0 Gottox
@ 2021-10-05 14:24 ` Gottox
  2021-10-07  8:33 ` Gottox
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Gottox @ 2021-10-05 14:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There is an updated pull request by Gottox against master on the void-packages repository

https://github.com/Gottox/void-packages k0s-1.22.2.0
https://github.com/void-linux/void-packages/pull/33345

k0s 1.22.2.0
- New package: konnectivity-server-0.0.14
- New package: k0s-1.22.2.0


A patch file from https://github.com/void-linux/void-packages/pull/33345.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-k0s-1.22.2.0-33345.patch --]
[-- Type: text/x-diff, Size: 7494 bytes --]

From ba4f3dc3cf1b2b483de3d6ff6b1a652fca400c05 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 16:35:57 +0100
Subject: [PATCH 1/3] New package: konnectivity-server-0.0.14

---
 srcpkgs/konnectivity-server/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/konnectivity-server/template

diff --git a/srcpkgs/konnectivity-server/template b/srcpkgs/konnectivity-server/template
new file mode 100644
index 000000000000..378820685c1d
--- /dev/null
+++ b/srcpkgs/konnectivity-server/template
@@ -0,0 +1,18 @@
+# Template file for 'konnectivity-server'
+pkgname=konnectivity-server
+version=0.0.14
+revision=1
+wrksrc=apiserver-network-proxy-$version
+build_style=go
+go_import_path=sigs.k8s.io/apiserver-network-proxy
+go_package="${go_import_path}/cmd/server"
+short_desc="Official reference implementation of kubernetes server network proxy"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://github.com/kubernetes-sigs/apiserver-network-proxy"
+distfiles="https://github.com/kubernetes-sigs/apiserver-network-proxy/archive/v$version.tar.gz"
+checksum=933b961ba70a76b2fec1a67020e29bbc2d7457d54f207b26df30c20d288d3bd0
+
+post_install() {
+	mv $DESTDIR/usr/bin/server $DESTDIR/usr/bin/konnectivity-server
+}

From a09cd7bb9a31d77e21e28fa2dc40477b54acca02 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 13:41:45 +0100
Subject: [PATCH 2/3] New package: k0s-1.22.2.0

---
 srcpkgs/k0s/files/k0s-controller.default |  3 ++
 srcpkgs/k0s/files/k0s-controller/run     |  7 ++++
 srcpkgs/k0s/files/k0s-worker.default     |  4 +++
 srcpkgs/k0s/files/k0s-worker/run         | 16 +++++++++
 srcpkgs/k0s/files/k0s.default            |  3 ++
 srcpkgs/k0s/files/k0s/run                |  7 ++++
 srcpkgs/k0s/template                     | 46 ++++++++++++++++++++++++
 7 files changed, 86 insertions(+)
 create mode 100644 srcpkgs/k0s/files/k0s-controller.default
 create mode 100755 srcpkgs/k0s/files/k0s-controller/run
 create mode 100644 srcpkgs/k0s/files/k0s-worker.default
 create mode 100755 srcpkgs/k0s/files/k0s-worker/run
 create mode 100644 srcpkgs/k0s/files/k0s.default
 create mode 100755 srcpkgs/k0s/files/k0s/run
 create mode 100644 srcpkgs/k0s/template

diff --git a/srcpkgs/k0s/files/k0s-controller.default b/srcpkgs/k0s/files/k0s-controller.default
new file mode 100644
index 000000000000..b3db337f0489
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-controller.default
@@ -0,0 +1,3 @@
+# K0S_ENABLE_WORKER=false
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/server.token
diff --git a/srcpkgs/k0s/files/k0s-controller/run b/srcpkgs/k0s/files/k0s-controller/run
new file mode 100755
index 000000000000..ba65b7c92064
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-controller/run
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+. /etc/default/k0s
+
+exec chpst -u _k0s:_k0s k0s -c "/etc/k0s/k0s.conf" server \
+	${K0S_ENABLE_WORKER:+--enable-worker} \
+	${K0S_PROFILE:+--profile="${K0S_PROFILE}"} \
+	${K0S_TOKEN_FILE:+--token-file="${K0S_TOKEN_FILE}"}
diff --git a/srcpkgs/k0s/files/k0s-worker.default b/srcpkgs/k0s/files/k0s-worker.default
new file mode 100644
index 000000000000..ac5abbfb3f5a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker.default
@@ -0,0 +1,4 @@
+# K0S_CRI_SOCKET=remote:/run/containerd/containerd.sock
+# K0S_ENABLE_CLOUD_PROVIDER=true
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/worker.token
diff --git a/srcpkgs/k0s/files/k0s-worker/run b/srcpkgs/k0s/files/k0s-worker/run
new file mode 100755
index 000000000000..f49359674f1a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+. /etc/default/k0s-worker
+case ${K0S_CRI_SOCKET} in
+	remote:*)
+		sv check containerd
+		;;
+	docker:*)
+		sv check docker
+		;;
+esac
+
+exec k0s -c "/etc/k0s/k0s.conf" worker \
+	${K0S_CRI_SOCKET:+--cri-socket="$K0S_CRI_SOCKET"} \
+	${K0S_ENABLE_CLOUD_PROVIDER:+--enable-cloud-provider} \
+	${K0S_PROFILE:+--profile="$K0S_PROFILE"} \
+	--token-file=${K0S_TOKEN_FILE:-/etc/k0s/worker.token}
diff --git a/srcpkgs/k0s/files/k0s.default b/srcpkgs/k0s/files/k0s.default
new file mode 100644
index 000000000000..b3db337f0489
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s.default
@@ -0,0 +1,3 @@
+# K0S_ENABLE_WORKER=false
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/server.token
diff --git a/srcpkgs/k0s/files/k0s/run b/srcpkgs/k0s/files/k0s/run
new file mode 100755
index 000000000000..ba65b7c92064
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+. /etc/default/k0s
+
+exec chpst -u _k0s:_k0s k0s -c "/etc/k0s/k0s.conf" server \
+	${K0S_ENABLE_WORKER:+--enable-worker} \
+	${K0S_PROFILE:+--profile="${K0S_PROFILE}"} \
+	${K0S_TOKEN_FILE:+--token-file="${K0S_TOKEN_FILE}"}
diff --git a/srcpkgs/k0s/template b/srcpkgs/k0s/template
new file mode 100644
index 000000000000..5a111cee2569
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,46 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=1.22.2.0
+revision=1
+_version=${version%.*}+k0s.${version##*.}
+wrksrc="${pkgname}-${_version//+/-}"
+build_style=go
+build_helper="qemu"
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes containerd konnectivity-server etcd"
+short_desc="Zero Friction Kubernetes"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://k0sproject.io/"
+distfiles="https://github.com/k0sproject/$pkgname/archive/v${_version}.tar.gz"
+checksum=42d4f52a5eddd19128648c2c5510217882e0ef0a880181a2a140bc46ed61728d
+system_accounts="_k0s"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+conf_files="
+	/etc/k0s/k0s.conf
+	/etc/default/*"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none \
+		static/gen_manifests.go \
+		pkg/assets/zz_generated_offsets_linux.go
+}
+
+post_install() {
+	vsv k0s
+	vinstall ${FILESDIR}/k0s.default 644 /etc/default/ k0s
+
+	vsv k0s-worker
+	vinstall ${FILESDIR}/k0s-worker.default 644 /etc/default/ k0s-worker
+
+	vmkdir etc/k0s
+
+	vtargetrun $DESTDIR/usr/bin/k0s default-config > $DESTDIR/etc/k0s/k0s.conf
+}

From 5b8905c0df6d3113c4a171a984abbcc4aad487c0 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Tue, 5 Oct 2021 16:24:08 +0200
Subject: [PATCH 3/3] konnectivity-server: update to 0.0.24.

---
 srcpkgs/konnectivity-server/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/konnectivity-server/template b/srcpkgs/konnectivity-server/template
index 378820685c1d..40ea202ca006 100644
--- a/srcpkgs/konnectivity-server/template
+++ b/srcpkgs/konnectivity-server/template
@@ -1,6 +1,6 @@
 # Template file for 'konnectivity-server'
 pkgname=konnectivity-server
-version=0.0.14
+version=0.0.24
 revision=1
 wrksrc=apiserver-network-proxy-$version
 build_style=go
@@ -11,7 +11,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="Apache-2.0"
 homepage="https://github.com/kubernetes-sigs/apiserver-network-proxy"
 distfiles="https://github.com/kubernetes-sigs/apiserver-network-proxy/archive/v$version.tar.gz"
-checksum=933b961ba70a76b2fec1a67020e29bbc2d7457d54f207b26df30c20d288d3bd0
+checksum=2cf4189451a711335e84e75ca81f6918c5ef0302df3cb3274d2331aea3afaf45
 
 post_install() {
 	mv $DESTDIR/usr/bin/server $DESTDIR/usr/bin/konnectivity-server

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] k0s 1.22.2.0
  2021-10-05 14:21 [PR PATCH] k0s 1.22.2.0 Gottox
  2021-10-05 14:24 ` [PR PATCH] [Updated] " Gottox
@ 2021-10-07  8:33 ` Gottox
  2021-10-07  8:33 ` Gottox
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Gottox @ 2021-10-07  8:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There is an updated pull request by Gottox against master on the void-packages repository

https://github.com/Gottox/void-packages k0s-1.22.2.0
https://github.com/void-linux/void-packages/pull/33345

k0s 1.22.2.0
- New package: konnectivity-server-0.0.14
- New package: k0s-1.22.2.0


A patch file from https://github.com/void-linux/void-packages/pull/33345.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-k0s-1.22.2.0-33345.patch --]
[-- Type: text/x-diff, Size: 5180 bytes --]

From 628119d50a4682027dd449ead7f83df455cddf75 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 16:35:57 +0100
Subject: [PATCH 1/2] New package: konnectivity-server-0.0.24

---
 srcpkgs/konnectivity-server/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/konnectivity-server/template

diff --git a/srcpkgs/konnectivity-server/template b/srcpkgs/konnectivity-server/template
new file mode 100644
index 000000000000..40ea202ca006
--- /dev/null
+++ b/srcpkgs/konnectivity-server/template
@@ -0,0 +1,18 @@
+# Template file for 'konnectivity-server'
+pkgname=konnectivity-server
+version=0.0.24
+revision=1
+wrksrc=apiserver-network-proxy-$version
+build_style=go
+go_import_path=sigs.k8s.io/apiserver-network-proxy
+go_package="${go_import_path}/cmd/server"
+short_desc="Official reference implementation of kubernetes server network proxy"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://github.com/kubernetes-sigs/apiserver-network-proxy"
+distfiles="https://github.com/kubernetes-sigs/apiserver-network-proxy/archive/v$version.tar.gz"
+checksum=2cf4189451a711335e84e75ca81f6918c5ef0302df3cb3274d2331aea3afaf45
+
+post_install() {
+	mv $DESTDIR/usr/bin/server $DESTDIR/usr/bin/konnectivity-server
+}

From 6d2e85da6febbe7418cbf2bb6c7ba589afc091db Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 13:41:45 +0100
Subject: [PATCH 2/2] New package: k0s-1.22.2.0

---
 srcpkgs/k0s/files/k0s-worker.default |  4 +++
 srcpkgs/k0s/files/k0s-worker/run     | 16 +++++++++++
 srcpkgs/k0s/files/k0s.default        |  3 ++
 srcpkgs/k0s/files/k0s/run            |  7 +++++
 srcpkgs/k0s/template                 | 43 ++++++++++++++++++++++++++++
 5 files changed, 73 insertions(+)
 create mode 100644 srcpkgs/k0s/files/k0s-worker.default
 create mode 100755 srcpkgs/k0s/files/k0s-worker/run
 create mode 100644 srcpkgs/k0s/files/k0s.default
 create mode 100755 srcpkgs/k0s/files/k0s/run
 create mode 100644 srcpkgs/k0s/template

diff --git a/srcpkgs/k0s/files/k0s-worker.default b/srcpkgs/k0s/files/k0s-worker.default
new file mode 100644
index 000000000000..ac5abbfb3f5a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker.default
@@ -0,0 +1,4 @@
+# K0S_CRI_SOCKET=remote:/run/containerd/containerd.sock
+# K0S_ENABLE_CLOUD_PROVIDER=true
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/worker.token
diff --git a/srcpkgs/k0s/files/k0s-worker/run b/srcpkgs/k0s/files/k0s-worker/run
new file mode 100755
index 000000000000..f49359674f1a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+. /etc/default/k0s-worker
+case ${K0S_CRI_SOCKET} in
+	remote:*)
+		sv check containerd
+		;;
+	docker:*)
+		sv check docker
+		;;
+esac
+
+exec k0s -c "/etc/k0s/k0s.conf" worker \
+	${K0S_CRI_SOCKET:+--cri-socket="$K0S_CRI_SOCKET"} \
+	${K0S_ENABLE_CLOUD_PROVIDER:+--enable-cloud-provider} \
+	${K0S_PROFILE:+--profile="$K0S_PROFILE"} \
+	--token-file=${K0S_TOKEN_FILE:-/etc/k0s/worker.token}
diff --git a/srcpkgs/k0s/files/k0s.default b/srcpkgs/k0s/files/k0s.default
new file mode 100644
index 000000000000..b3db337f0489
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s.default
@@ -0,0 +1,3 @@
+# K0S_ENABLE_WORKER=false
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/server.token
diff --git a/srcpkgs/k0s/files/k0s/run b/srcpkgs/k0s/files/k0s/run
new file mode 100755
index 000000000000..ba65b7c92064
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+. /etc/default/k0s
+
+exec chpst -u _k0s:_k0s k0s -c "/etc/k0s/k0s.conf" server \
+	${K0S_ENABLE_WORKER:+--enable-worker} \
+	${K0S_PROFILE:+--profile="${K0S_PROFILE}"} \
+	${K0S_TOKEN_FILE:+--token-file="${K0S_TOKEN_FILE}"}
diff --git a/srcpkgs/k0s/template b/srcpkgs/k0s/template
new file mode 100644
index 000000000000..99c973f8d7c2
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,43 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=1.22.2.0
+revision=1
+_version=${version%.*}+k0s.${version##*.}
+wrksrc="${pkgname}-${_version//+/-}"
+build_style=go
+build_helper="qemu"
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes containerd konnectivity-server etcd"
+short_desc="Zero Friction Kubernetes"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://k0sproject.io/"
+distfiles="https://github.com/k0sproject/$pkgname/archive/v${_version}.tar.gz"
+checksum=42d4f52a5eddd19128648c2c5510217882e0ef0a880181a2a140bc46ed61728d
+system_accounts="_k0s"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+conf_files="
+	/etc/default/*"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none \
+		static/gen_manifests.go \
+		pkg/assets/zz_generated_offsets_linux.go
+}
+
+post_install() {
+	vsv k0s
+	vinstall ${FILESDIR}/k0s.default 644 /etc/default/ k0s
+
+	vsv k0s-worker
+	vinstall ${FILESDIR}/k0s-worker.default 644 /etc/default/ k0s-worker
+
+	vmkdir etc/k0s
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] k0s 1.22.2.0
  2021-10-05 14:21 [PR PATCH] k0s 1.22.2.0 Gottox
  2021-10-05 14:24 ` [PR PATCH] [Updated] " Gottox
  2021-10-07  8:33 ` Gottox
@ 2021-10-07  8:33 ` Gottox
  2021-10-07  8:40 ` Gottox
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Gottox @ 2021-10-07  8:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There is an updated pull request by Gottox against master on the void-packages repository

https://github.com/Gottox/void-packages k0s-1.22.2.0
https://github.com/void-linux/void-packages/pull/33345

k0s 1.22.2.0
- New package: konnectivity-server-0.0.14
- New package: k0s-1.22.2.0


A patch file from https://github.com/void-linux/void-packages/pull/33345.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-k0s-1.22.2.0-33345.patch --]
[-- Type: text/x-diff, Size: 5159 bytes --]

From 628119d50a4682027dd449ead7f83df455cddf75 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 16:35:57 +0100
Subject: [PATCH 1/2] New package: konnectivity-server-0.0.24

---
 srcpkgs/konnectivity-server/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/konnectivity-server/template

diff --git a/srcpkgs/konnectivity-server/template b/srcpkgs/konnectivity-server/template
new file mode 100644
index 000000000000..40ea202ca006
--- /dev/null
+++ b/srcpkgs/konnectivity-server/template
@@ -0,0 +1,18 @@
+# Template file for 'konnectivity-server'
+pkgname=konnectivity-server
+version=0.0.24
+revision=1
+wrksrc=apiserver-network-proxy-$version
+build_style=go
+go_import_path=sigs.k8s.io/apiserver-network-proxy
+go_package="${go_import_path}/cmd/server"
+short_desc="Official reference implementation of kubernetes server network proxy"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://github.com/kubernetes-sigs/apiserver-network-proxy"
+distfiles="https://github.com/kubernetes-sigs/apiserver-network-proxy/archive/v$version.tar.gz"
+checksum=2cf4189451a711335e84e75ca81f6918c5ef0302df3cb3274d2331aea3afaf45
+
+post_install() {
+	mv $DESTDIR/usr/bin/server $DESTDIR/usr/bin/konnectivity-server
+}

From cb9f10c98daf93a88562193df38051a3c749b7f1 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 13:41:45 +0100
Subject: [PATCH 2/2] New package: k0s-1.22.2.0

---
 srcpkgs/k0s/files/k0s-worker.default |  4 +++
 srcpkgs/k0s/files/k0s-worker/run     | 16 +++++++++++
 srcpkgs/k0s/files/k0s.default        |  3 ++
 srcpkgs/k0s/files/k0s/run            |  7 +++++
 srcpkgs/k0s/template                 | 42 ++++++++++++++++++++++++++++
 5 files changed, 72 insertions(+)
 create mode 100644 srcpkgs/k0s/files/k0s-worker.default
 create mode 100755 srcpkgs/k0s/files/k0s-worker/run
 create mode 100644 srcpkgs/k0s/files/k0s.default
 create mode 100755 srcpkgs/k0s/files/k0s/run
 create mode 100644 srcpkgs/k0s/template

diff --git a/srcpkgs/k0s/files/k0s-worker.default b/srcpkgs/k0s/files/k0s-worker.default
new file mode 100644
index 000000000000..ac5abbfb3f5a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker.default
@@ -0,0 +1,4 @@
+# K0S_CRI_SOCKET=remote:/run/containerd/containerd.sock
+# K0S_ENABLE_CLOUD_PROVIDER=true
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/worker.token
diff --git a/srcpkgs/k0s/files/k0s-worker/run b/srcpkgs/k0s/files/k0s-worker/run
new file mode 100755
index 000000000000..f49359674f1a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+. /etc/default/k0s-worker
+case ${K0S_CRI_SOCKET} in
+	remote:*)
+		sv check containerd
+		;;
+	docker:*)
+		sv check docker
+		;;
+esac
+
+exec k0s -c "/etc/k0s/k0s.conf" worker \
+	${K0S_CRI_SOCKET:+--cri-socket="$K0S_CRI_SOCKET"} \
+	${K0S_ENABLE_CLOUD_PROVIDER:+--enable-cloud-provider} \
+	${K0S_PROFILE:+--profile="$K0S_PROFILE"} \
+	--token-file=${K0S_TOKEN_FILE:-/etc/k0s/worker.token}
diff --git a/srcpkgs/k0s/files/k0s.default b/srcpkgs/k0s/files/k0s.default
new file mode 100644
index 000000000000..b3db337f0489
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s.default
@@ -0,0 +1,3 @@
+# K0S_ENABLE_WORKER=false
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/server.token
diff --git a/srcpkgs/k0s/files/k0s/run b/srcpkgs/k0s/files/k0s/run
new file mode 100755
index 000000000000..ba65b7c92064
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+. /etc/default/k0s
+
+exec chpst -u _k0s:_k0s k0s -c "/etc/k0s/k0s.conf" server \
+	${K0S_ENABLE_WORKER:+--enable-worker} \
+	${K0S_PROFILE:+--profile="${K0S_PROFILE}"} \
+	${K0S_TOKEN_FILE:+--token-file="${K0S_TOKEN_FILE}"}
diff --git a/srcpkgs/k0s/template b/srcpkgs/k0s/template
new file mode 100644
index 000000000000..5739d1236ad1
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,42 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=1.22.2.0
+revision=1
+_version=${version%.*}+k0s.${version##*.}
+wrksrc="${pkgname}-${_version//+/-}"
+build_style=go
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes containerd konnectivity-server etcd"
+short_desc="Zero Friction Kubernetes"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://k0sproject.io/"
+distfiles="https://github.com/k0sproject/$pkgname/archive/v${_version}.tar.gz"
+checksum=42d4f52a5eddd19128648c2c5510217882e0ef0a880181a2a140bc46ed61728d
+system_accounts="_k0s"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+conf_files="
+	/etc/default/*"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none \
+		static/gen_manifests.go \
+		pkg/assets/zz_generated_offsets_linux.go
+}
+
+post_install() {
+	vsv k0s
+	vinstall ${FILESDIR}/k0s.default 644 /etc/default/ k0s
+
+	vsv k0s-worker
+	vinstall ${FILESDIR}/k0s-worker.default 644 /etc/default/ k0s-worker
+
+	vmkdir etc/k0s
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] k0s 1.22.2.0
  2021-10-05 14:21 [PR PATCH] k0s 1.22.2.0 Gottox
                   ` (2 preceding siblings ...)
  2021-10-07  8:33 ` Gottox
@ 2021-10-07  8:40 ` Gottox
  2021-10-07  8:46 ` Gottox
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Gottox @ 2021-10-07  8:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There is an updated pull request by Gottox against master on the void-packages repository

https://github.com/Gottox/void-packages k0s-1.22.2.0
https://github.com/void-linux/void-packages/pull/33345

k0s 1.22.2.0
- New package: konnectivity-server-0.0.14
- New package: k0s-1.22.2.0


A patch file from https://github.com/void-linux/void-packages/pull/33345.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-k0s-1.22.2.0-33345.patch --]
[-- Type: text/x-diff, Size: 5141 bytes --]

From 628119d50a4682027dd449ead7f83df455cddf75 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 16:35:57 +0100
Subject: [PATCH 1/2] New package: konnectivity-server-0.0.24

---
 srcpkgs/konnectivity-server/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/konnectivity-server/template

diff --git a/srcpkgs/konnectivity-server/template b/srcpkgs/konnectivity-server/template
new file mode 100644
index 000000000000..40ea202ca006
--- /dev/null
+++ b/srcpkgs/konnectivity-server/template
@@ -0,0 +1,18 @@
+# Template file for 'konnectivity-server'
+pkgname=konnectivity-server
+version=0.0.24
+revision=1
+wrksrc=apiserver-network-proxy-$version
+build_style=go
+go_import_path=sigs.k8s.io/apiserver-network-proxy
+go_package="${go_import_path}/cmd/server"
+short_desc="Official reference implementation of kubernetes server network proxy"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://github.com/kubernetes-sigs/apiserver-network-proxy"
+distfiles="https://github.com/kubernetes-sigs/apiserver-network-proxy/archive/v$version.tar.gz"
+checksum=2cf4189451a711335e84e75ca81f6918c5ef0302df3cb3274d2331aea3afaf45
+
+post_install() {
+	mv $DESTDIR/usr/bin/server $DESTDIR/usr/bin/konnectivity-server
+}

From 83b687078b948445e39c33c0db5078f14c72acc2 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 13:41:45 +0100
Subject: [PATCH 2/2] New package: k0s-1.22.2.0

---
 srcpkgs/k0s/files/k0s-worker.default |  4 +++
 srcpkgs/k0s/files/k0s-worker/run     | 16 +++++++++++
 srcpkgs/k0s/files/k0s.default        |  3 +++
 srcpkgs/k0s/files/k0s/run            |  7 +++++
 srcpkgs/k0s/template                 | 40 ++++++++++++++++++++++++++++
 5 files changed, 70 insertions(+)
 create mode 100644 srcpkgs/k0s/files/k0s-worker.default
 create mode 100755 srcpkgs/k0s/files/k0s-worker/run
 create mode 100644 srcpkgs/k0s/files/k0s.default
 create mode 100755 srcpkgs/k0s/files/k0s/run
 create mode 100644 srcpkgs/k0s/template

diff --git a/srcpkgs/k0s/files/k0s-worker.default b/srcpkgs/k0s/files/k0s-worker.default
new file mode 100644
index 000000000000..ac5abbfb3f5a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker.default
@@ -0,0 +1,4 @@
+# K0S_CRI_SOCKET=remote:/run/containerd/containerd.sock
+# K0S_ENABLE_CLOUD_PROVIDER=true
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/worker.token
diff --git a/srcpkgs/k0s/files/k0s-worker/run b/srcpkgs/k0s/files/k0s-worker/run
new file mode 100755
index 000000000000..f49359674f1a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+. /etc/default/k0s-worker
+case ${K0S_CRI_SOCKET} in
+	remote:*)
+		sv check containerd
+		;;
+	docker:*)
+		sv check docker
+		;;
+esac
+
+exec k0s -c "/etc/k0s/k0s.conf" worker \
+	${K0S_CRI_SOCKET:+--cri-socket="$K0S_CRI_SOCKET"} \
+	${K0S_ENABLE_CLOUD_PROVIDER:+--enable-cloud-provider} \
+	${K0S_PROFILE:+--profile="$K0S_PROFILE"} \
+	--token-file=${K0S_TOKEN_FILE:-/etc/k0s/worker.token}
diff --git a/srcpkgs/k0s/files/k0s.default b/srcpkgs/k0s/files/k0s.default
new file mode 100644
index 000000000000..b3db337f0489
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s.default
@@ -0,0 +1,3 @@
+# K0S_ENABLE_WORKER=false
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/server.token
diff --git a/srcpkgs/k0s/files/k0s/run b/srcpkgs/k0s/files/k0s/run
new file mode 100755
index 000000000000..ba65b7c92064
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+. /etc/default/k0s
+
+exec chpst -u _k0s:_k0s k0s -c "/etc/k0s/k0s.conf" server \
+	${K0S_ENABLE_WORKER:+--enable-worker} \
+	${K0S_PROFILE:+--profile="${K0S_PROFILE}"} \
+	${K0S_TOKEN_FILE:+--token-file="${K0S_TOKEN_FILE}"}
diff --git a/srcpkgs/k0s/template b/srcpkgs/k0s/template
new file mode 100644
index 000000000000..9124cebd8219
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,40 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=1.22.2.0
+revision=1
+_version=${version%.*}+k0s.${version##*.}
+wrksrc="${pkgname}-${_version//+/-}"
+build_style=go
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes containerd konnectivity-server etcd"
+short_desc="Zero Friction Kubernetes"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://k0sproject.io/"
+distfiles="https://github.com/k0sproject/$pkgname/archive/v${_version}.tar.gz"
+checksum=42d4f52a5eddd19128648c2c5510217882e0ef0a880181a2a140bc46ed61728d
+system_accounts="_k0s"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+conf_files="
+	/etc/default/*"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none \
+		static/gen_manifests.go \
+		pkg/assets/zz_generated_offsets_linux.go
+}
+
+post_install() {
+	vsv k0s
+	vinstall ${FILESDIR}/k0s.default 644 /etc/default/ k0s
+
+	vsv k0s-worker
+	vinstall ${FILESDIR}/k0s-worker.default 644 /etc/default/ k0s-worker
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] k0s 1.22.2.0
  2021-10-05 14:21 [PR PATCH] k0s 1.22.2.0 Gottox
                   ` (3 preceding siblings ...)
  2021-10-07  8:40 ` Gottox
@ 2021-10-07  8:46 ` Gottox
  2022-06-07  2:12 ` github-actions
  2022-06-21  2:12 ` [PR PATCH] [Closed]: " github-actions
  6 siblings, 0 replies; 8+ messages in thread
From: Gottox @ 2021-10-07  8:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There is an updated pull request by Gottox against master on the void-packages repository

https://github.com/Gottox/void-packages k0s-1.22.2.0
https://github.com/void-linux/void-packages/pull/33345

k0s 1.22.2.0
- New package: konnectivity-server-0.0.14
- New package: k0s-1.22.2.0


A patch file from https://github.com/void-linux/void-packages/pull/33345.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-k0s-1.22.2.0-33345.patch --]
[-- Type: text/x-diff, Size: 5140 bytes --]

From 628119d50a4682027dd449ead7f83df455cddf75 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 16:35:57 +0100
Subject: [PATCH 1/2] New package: konnectivity-server-0.0.24

---
 srcpkgs/konnectivity-server/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/konnectivity-server/template

diff --git a/srcpkgs/konnectivity-server/template b/srcpkgs/konnectivity-server/template
new file mode 100644
index 000000000000..40ea202ca006
--- /dev/null
+++ b/srcpkgs/konnectivity-server/template
@@ -0,0 +1,18 @@
+# Template file for 'konnectivity-server'
+pkgname=konnectivity-server
+version=0.0.24
+revision=1
+wrksrc=apiserver-network-proxy-$version
+build_style=go
+go_import_path=sigs.k8s.io/apiserver-network-proxy
+go_package="${go_import_path}/cmd/server"
+short_desc="Official reference implementation of kubernetes server network proxy"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://github.com/kubernetes-sigs/apiserver-network-proxy"
+distfiles="https://github.com/kubernetes-sigs/apiserver-network-proxy/archive/v$version.tar.gz"
+checksum=2cf4189451a711335e84e75ca81f6918c5ef0302df3cb3274d2331aea3afaf45
+
+post_install() {
+	mv $DESTDIR/usr/bin/server $DESTDIR/usr/bin/konnectivity-server
+}

From fd06c7ff18832c45ae11e7ee309757009f3eb00f Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Thu, 4 Feb 2021 13:41:45 +0100
Subject: [PATCH 2/2] New package: k0s-1.22.2.0

---
 srcpkgs/k0s/files/k0s-worker.default |  4 +++
 srcpkgs/k0s/files/k0s-worker/run     | 16 +++++++++++
 srcpkgs/k0s/files/k0s.default        |  3 +++
 srcpkgs/k0s/files/k0s/run            |  7 +++++
 srcpkgs/k0s/template                 | 40 ++++++++++++++++++++++++++++
 5 files changed, 70 insertions(+)
 create mode 100644 srcpkgs/k0s/files/k0s-worker.default
 create mode 100755 srcpkgs/k0s/files/k0s-worker/run
 create mode 100644 srcpkgs/k0s/files/k0s.default
 create mode 100755 srcpkgs/k0s/files/k0s/run
 create mode 100644 srcpkgs/k0s/template

diff --git a/srcpkgs/k0s/files/k0s-worker.default b/srcpkgs/k0s/files/k0s-worker.default
new file mode 100644
index 000000000000..ac5abbfb3f5a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker.default
@@ -0,0 +1,4 @@
+# K0S_CRI_SOCKET=remote:/run/containerd/containerd.sock
+# K0S_ENABLE_CLOUD_PROVIDER=true
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/worker.token
diff --git a/srcpkgs/k0s/files/k0s-worker/run b/srcpkgs/k0s/files/k0s-worker/run
new file mode 100755
index 000000000000..f49359674f1a
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+. /etc/default/k0s-worker
+case ${K0S_CRI_SOCKET} in
+	remote:*)
+		sv check containerd
+		;;
+	docker:*)
+		sv check docker
+		;;
+esac
+
+exec k0s -c "/etc/k0s/k0s.conf" worker \
+	${K0S_CRI_SOCKET:+--cri-socket="$K0S_CRI_SOCKET"} \
+	${K0S_ENABLE_CLOUD_PROVIDER:+--enable-cloud-provider} \
+	${K0S_PROFILE:+--profile="$K0S_PROFILE"} \
+	--token-file=${K0S_TOKEN_FILE:-/etc/k0s/worker.token}
diff --git a/srcpkgs/k0s/files/k0s.default b/srcpkgs/k0s/files/k0s.default
new file mode 100644
index 000000000000..5411f31e96d9
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s.default
@@ -0,0 +1,3 @@
+# K0S_ENABLE_WORKER=true
+# K0S_PROFILE=default
+# K0S_TOKEN_FILE=/etc/k0s/server.token
diff --git a/srcpkgs/k0s/files/k0s/run b/srcpkgs/k0s/files/k0s/run
new file mode 100755
index 000000000000..ba65b7c92064
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+. /etc/default/k0s
+
+exec chpst -u _k0s:_k0s k0s -c "/etc/k0s/k0s.conf" server \
+	${K0S_ENABLE_WORKER:+--enable-worker} \
+	${K0S_PROFILE:+--profile="${K0S_PROFILE}"} \
+	${K0S_TOKEN_FILE:+--token-file="${K0S_TOKEN_FILE}"}
diff --git a/srcpkgs/k0s/template b/srcpkgs/k0s/template
new file mode 100644
index 000000000000..9124cebd8219
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,40 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=1.22.2.0
+revision=1
+_version=${version%.*}+k0s.${version##*.}
+wrksrc="${pkgname}-${_version//+/-}"
+build_style=go
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes containerd konnectivity-server etcd"
+short_desc="Zero Friction Kubernetes"
+maintainer="Enno Boland <gottox@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://k0sproject.io/"
+distfiles="https://github.com/k0sproject/$pkgname/archive/v${_version}.tar.gz"
+checksum=42d4f52a5eddd19128648c2c5510217882e0ef0a880181a2a140bc46ed61728d
+system_accounts="_k0s"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+conf_files="
+	/etc/default/*"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none \
+		static/gen_manifests.go \
+		pkg/assets/zz_generated_offsets_linux.go
+}
+
+post_install() {
+	vsv k0s
+	vinstall ${FILESDIR}/k0s.default 644 /etc/default/ k0s
+
+	vsv k0s-worker
+	vinstall ${FILESDIR}/k0s-worker.default 644 /etc/default/ k0s-worker
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: k0s 1.22.2.0
  2021-10-05 14:21 [PR PATCH] k0s 1.22.2.0 Gottox
                   ` (4 preceding siblings ...)
  2021-10-07  8:46 ` Gottox
@ 2022-06-07  2:12 ` github-actions
  2022-06-21  2:12 ` [PR PATCH] [Closed]: " github-actions
  6 siblings, 0 replies; 8+ messages in thread
From: github-actions @ 2022-06-07  2:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/33345#issuecomment-1148116328

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Closed]: k0s 1.22.2.0
  2021-10-05 14:21 [PR PATCH] k0s 1.22.2.0 Gottox
                   ` (5 preceding siblings ...)
  2022-06-07  2:12 ` github-actions
@ 2022-06-21  2:12 ` github-actions
  6 siblings, 0 replies; 8+ messages in thread
From: github-actions @ 2022-06-21  2:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

There's a closed pull request on the void-packages repository

k0s 1.22.2.0
https://github.com/void-linux/void-packages/pull/33345

Description:
- New package: konnectivity-server-0.0.14
- New package: k0s-1.22.2.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-06-21  2:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 14:21 [PR PATCH] k0s 1.22.2.0 Gottox
2021-10-05 14:24 ` [PR PATCH] [Updated] " Gottox
2021-10-07  8:33 ` Gottox
2021-10-07  8:33 ` Gottox
2021-10-07  8:40 ` Gottox
2021-10-07  8:46 ` Gottox
2022-06-07  2:12 ` github-actions
2022-06-21  2:12 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).