Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: k0s-0.9.1
@ 2021-02-04 12:45 Gottox
  2021-02-04 12:47 ` [PR PATCH] [Updated] " Gottox
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 12:45 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

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

---
 srcpkgs/k0s/INSTALL                  |  5 ++++
 srcpkgs/k0s/files/k0s-worker.default |  4 +++
 srcpkgs/k0s/files/k0s-worker/run     | 16 ++++++++++
 srcpkgs/k0s/files/k0s.default        |  2 ++
 srcpkgs/k0s/files/k0s/run            |  7 +++++
 srcpkgs/k0s/template                 | 44 ++++++++++++++++++++++++++++
 6 files changed, 78 insertions(+)
 create mode 100644 srcpkgs/k0s/INSTALL
 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/INSTALL b/srcpkgs/k0s/INSTALL
new file mode 100644
index 00000000000..bbf002e847e
--- /dev/null
+++ b/srcpkgs/k0s/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+	chmod 755 var/lib/k0s
+	;;
+esac
diff --git a/srcpkgs/k0s/files/k0s-worker.default b/srcpkgs/k0s/files/k0s-worker.default
new file mode 100644
index 00000000000..98722f4fa32
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker.default
@@ -0,0 +1,4 @@
+# CRI_SOCKET=remote:/run/containerd/containerd.sock
+# ENABLE_CLOUD_PROVIDER=true
+# PROFILE=default
+# 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 00000000000..a61549f8779
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh
+. /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 00000000000..a5e01dbf7c4
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s.default
@@ -0,0 +1,2 @@
+# ENABLE_WORKER=false
+# 
diff --git a/srcpkgs/k0s/files/k0s/run b/srcpkgs/k0s/files/k0s/run
new file mode 100755
index 00000000000..406d066b5d7
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+. /etc/default/k0s-worker
+
+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 00000000000..baae346a23c
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,44 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+build_style=go
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes>1.20_1 containerd>=1.3.9_1"
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_shell="/bin/nologin"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0750 _k0s _k0s"
+conf_files="/etc/k0s/k0s.conf"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none generate-bindata
+}
+
+post_install() {
+	local K0S=$DESTDIR/usr/bin/k0s
+	if [ "$CROSS_BUILD" ]; then
+		K0S=k0s
+	fi
+	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
+
+	$K0S default-config > $DESTDIR/etc/k0s/k0s.conf
+}

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

* Re: [PR PATCH] [Updated] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
@ 2021-02-04 12:47 ` Gottox
  2021-02-04 12:49 ` Gottox
                   ` (20 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 12:47 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

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

---
 srcpkgs/k0s/INSTALL                  |  5 ++++
 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                 | 44 ++++++++++++++++++++++++++++
 6 files changed, 79 insertions(+)
 create mode 100644 srcpkgs/k0s/INSTALL
 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/INSTALL b/srcpkgs/k0s/INSTALL
new file mode 100644
index 00000000000..bbf002e847e
--- /dev/null
+++ b/srcpkgs/k0s/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+	chmod 755 var/lib/k0s
+	;;
+esac
diff --git a/srcpkgs/k0s/files/k0s-worker.default b/srcpkgs/k0s/files/k0s-worker.default
new file mode 100644
index 00000000000..ac5abbfb3f5
--- /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 00000000000..a61549f8779
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh
+. /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 00000000000..b3db337f048
--- /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 00000000000..406d066b5d7
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+. /etc/default/k0s-worker
+
+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 00000000000..baae346a23c
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,44 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+build_style=go
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes>1.20_1 containerd>=1.3.9_1"
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_shell="/bin/nologin"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0750 _k0s _k0s"
+conf_files="/etc/k0s/k0s.conf"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none generate-bindata
+}
+
+post_install() {
+	local K0S=$DESTDIR/usr/bin/k0s
+	if [ "$CROSS_BUILD" ]; then
+		K0S=k0s
+	fi
+	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
+
+	$K0S default-config > $DESTDIR/etc/k0s/k0s.conf
+}

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

* Re: [PR PATCH] [Updated] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
  2021-02-04 12:47 ` [PR PATCH] [Updated] " Gottox
@ 2021-02-04 12:49 ` Gottox
  2021-02-04 12:51 ` Gottox
                   ` (19 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 12:49 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

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

---
 srcpkgs/k0s/INSTALL                  |  5 ++++
 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                 | 44 ++++++++++++++++++++++++++++
 6 files changed, 79 insertions(+)
 create mode 100644 srcpkgs/k0s/INSTALL
 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/INSTALL b/srcpkgs/k0s/INSTALL
new file mode 100644
index 00000000000..bbf002e847e
--- /dev/null
+++ b/srcpkgs/k0s/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+	chmod 755 var/lib/k0s
+	;;
+esac
diff --git a/srcpkgs/k0s/files/k0s-worker.default b/srcpkgs/k0s/files/k0s-worker.default
new file mode 100644
index 00000000000..ac5abbfb3f5
--- /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 00000000000..a61549f8779
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh
+. /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 00000000000..b3db337f048
--- /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 00000000000..1ac5addf5a6
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+. /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 00000000000..baae346a23c
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,44 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+build_style=go
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes>1.20_1 containerd>=1.3.9_1"
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_shell="/bin/nologin"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0750 _k0s _k0s"
+conf_files="/etc/k0s/k0s.conf"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none generate-bindata
+}
+
+post_install() {
+	local K0S=$DESTDIR/usr/bin/k0s
+	if [ "$CROSS_BUILD" ]; then
+		K0S=k0s
+	fi
+	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
+
+	$K0S default-config > $DESTDIR/etc/k0s/k0s.conf
+}

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

* Re: [PR PATCH] [Updated] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
  2021-02-04 12:47 ` [PR PATCH] [Updated] " Gottox
  2021-02-04 12:49 ` Gottox
@ 2021-02-04 12:51 ` Gottox
  2021-02-04 12:53 ` [PR REVIEW] " ericonr
                   ` (18 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 12:51 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

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

---
 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                 | 44 ++++++++++++++++++++++++++++
 5 files changed, 74 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..a61549f8779c
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh
+. /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..1ac5addf5a62
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+. /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..c967cb5f9971
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,44 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+build_style=go
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes>1.20_1 containerd>=1.3.9_1"
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_shell="/bin/nologin"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+conf_files="/etc/k0s/k0s.conf"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none generate-bindata
+}
+
+post_install() {
+	local K0S=$DESTDIR/usr/bin/k0s
+	if [ "$CROSS_BUILD" ]; then
+		K0S=k0s
+	fi
+	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
+
+	$K0S default-config > $DESTDIR/etc/k0s/k0s.conf
+}

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

* Re: [PR REVIEW] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (2 preceding siblings ...)
  2021-02-04 12:51 ` Gottox
@ 2021-02-04 12:53 ` ericonr
  2021-02-04 12:53 ` ericonr
                   ` (17 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-02-04 12:53 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28478#discussion_r570198353

Comment:
I don't think it's necessary to specify these versions, unless you believe people are likely to be holding the packages manually?

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

* Re: [PR REVIEW] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (3 preceding siblings ...)
  2021-02-04 12:53 ` [PR REVIEW] " ericonr
@ 2021-02-04 12:53 ` ericonr
  2021-02-04 12:53 ` ericonr
                   ` (16 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-02-04 12:53 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28478#discussion_r570197982

Comment:
You could try and use `vtargetrun` instead of depending on itself.

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

* Re: [PR REVIEW] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (4 preceding siblings ...)
  2021-02-04 12:53 ` ericonr
@ 2021-02-04 12:53 ` ericonr
  2021-02-04 12:56 ` Gottox
                   ` (15 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-02-04 12:53 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28478#discussion_r570199219

Comment:
Isn't this default?

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

* Re: [PR REVIEW] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (5 preceding siblings ...)
  2021-02-04 12:53 ` ericonr
@ 2021-02-04 12:56 ` Gottox
  2021-02-04 12:56 ` Gottox
                   ` (14 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 12:56 UTC (permalink / raw)
  To: ml

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

New review comment by Gottox on void-packages repository

https://github.com/void-linux/void-packages/pull/28478#discussion_r570201115

Comment:
I'd really like to depend on the same versions k0s bundles (I deactiveted bundling for the void packages)

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

* Re: [PR REVIEW] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (6 preceding siblings ...)
  2021-02-04 12:56 ` Gottox
@ 2021-02-04 12:56 ` Gottox
  2021-02-04 12:56 ` Gottox
                   ` (13 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 12:56 UTC (permalink / raw)
  To: ml

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

New review comment by Gottox on void-packages repository

https://github.com/void-linux/void-packages/pull/28478#discussion_r570201304

Comment:
Yes, this can actually be removed.

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

* Re: [PR REVIEW] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (7 preceding siblings ...)
  2021-02-04 12:56 ` Gottox
@ 2021-02-04 12:56 ` Gottox
  2021-02-04 12:57 ` Gottox
                   ` (12 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 12:56 UTC (permalink / raw)
  To: ml

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

New review comment by Gottox on void-packages repository

https://github.com/void-linux/void-packages/pull/28478#discussion_r570201115

Comment:
I'd really like to depend on the same versions k0s bundles (or greater). I deactiveted bundling for the void packages.

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

* Re: [PR REVIEW] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (8 preceding siblings ...)
  2021-02-04 12:56 ` Gottox
@ 2021-02-04 12:57 ` Gottox
  2021-02-04 12:58 ` [PR PATCH] [Updated] " Gottox
                   ` (11 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 12:57 UTC (permalink / raw)
  To: ml

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

New review comment by Gottox on void-packages repository

https://github.com/void-linux/void-packages/pull/28478#discussion_r570201906

Comment:
I'm not sure what's the prettier solution here.

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

* Re: [PR PATCH] [Updated] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (9 preceding siblings ...)
  2021-02-04 12:57 ` Gottox
@ 2021-02-04 12:58 ` Gottox
  2021-02-04 12:59 ` [PR REVIEW] " Gottox
                   ` (10 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 12:58 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

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

---
 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 00000000000..ac5abbfb3f5
--- /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 00000000000..a61549f8779
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh
+. /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 00000000000..b3db337f048
--- /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 00000000000..1ac5addf5a6
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+. /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 00000000000..4b0baf164c5
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,43 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+build_style=go
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes>1.20_1 containerd>=1.3.9_1"
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+conf_files="/etc/k0s/k0s.conf"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none generate-bindata
+}
+
+post_install() {
+	local K0S=$DESTDIR/usr/bin/k0s
+	if [ "$CROSS_BUILD" ]; then
+		K0S=k0s
+	fi
+	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
+
+	$K0S default-config > $DESTDIR/etc/k0s/k0s.conf
+}

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

* Re: [PR REVIEW] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (10 preceding siblings ...)
  2021-02-04 12:58 ` [PR PATCH] [Updated] " Gottox
@ 2021-02-04 12:59 ` Gottox
  2021-02-04 14:02 ` [PR PATCH] [Updated] " Gottox
                   ` (9 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 12:59 UTC (permalink / raw)
  To: ml

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

New review comment by Gottox on void-packages repository

https://github.com/void-linux/void-packages/pull/28478#discussion_r570203136

Comment:
Actually, I even needed to depend on 1.3.9 instead of the bundled 1.4 release, but it seems to work with the older release as well.

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

* Re: [PR PATCH] [Updated] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (11 preceding siblings ...)
  2021-02-04 12:59 ` [PR REVIEW] " Gottox
@ 2021-02-04 14:02 ` Gottox
  2021-02-04 14:03 ` [PR REVIEW] " Gottox
                   ` (8 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 14:02 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

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

---
 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 00000000000..ac5abbfb3f5
--- /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 00000000000..a61549f8779
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh
+. /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 00000000000..b3db337f048
--- /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 00000000000..1ac5addf5a6
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+. /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 00000000000..6f30a61b6b1
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,40 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+build_style=go
+build_helper="qemu"
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes>1.20_1 containerd>=1.3.9_1"
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+conf_files="/etc/k0s/k0s.conf"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none generate-bindata
+}
+
+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] 23+ messages in thread

* Re: [PR REVIEW] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (12 preceding siblings ...)
  2021-02-04 14:02 ` [PR PATCH] [Updated] " Gottox
@ 2021-02-04 14:03 ` Gottox
  2021-02-04 14:06 ` [PR PATCH] [Updated] " Gottox
                   ` (7 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 14:03 UTC (permalink / raw)
  To: ml

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

New review comment by Gottox on void-packages repository

https://github.com/void-linux/void-packages/pull/28478#discussion_r570246596

Comment:
Changed to `vtargetrun`.

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

* Re: [PR PATCH] [Updated] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (13 preceding siblings ...)
  2021-02-04 14:03 ` [PR REVIEW] " Gottox
@ 2021-02-04 14:06 ` Gottox
  2021-02-04 14:10 ` Gottox
                   ` (6 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 14:06 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

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

---
 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 00000000000..ac5abbfb3f5
--- /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 00000000000..a61549f8779
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s-worker/run
@@ -0,0 +1,16 @@
+#!/bin/sh
+. /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 00000000000..b3db337f048
--- /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 00000000000..1ac5addf5a6
--- /dev/null
+++ b/srcpkgs/k0s/files/k0s/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+. /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 00000000000..6f30a61b6b1
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,40 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+build_style=go
+build_helper="qemu"
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes>1.20_1 containerd>=1.3.9_1"
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+conf_files="/etc/k0s/k0s.conf"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none generate-bindata
+}
+
+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] 23+ messages in thread

* Re: [PR PATCH] [Updated] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (14 preceding siblings ...)
  2021-02-04 14:06 ` [PR PATCH] [Updated] " Gottox
@ 2021-02-04 14:10 ` Gottox
  2021-02-04 14:25 ` Gottox
                   ` (5 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 14:10 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

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

---
 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 00000000000..ac5abbfb3f5
--- /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 00000000000..f49359674f1
--- /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 00000000000..b3db337f048
--- /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 00000000000..ba65b7c9206
--- /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 00000000000..6f30a61b6b1
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,40 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+build_style=go
+build_helper="qemu"
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes>1.20_1 containerd>=1.3.9_1"
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+conf_files="/etc/k0s/k0s.conf"
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" k0s"
+fi
+
+pre_build() {
+	# Make sure files are generated correctly before actually building
+	make EMBEDDED_BINS_BUILDMODE=none generate-bindata
+}
+
+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] 23+ messages in thread

* Re: [PR PATCH] [Updated] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (15 preceding siblings ...)
  2021-02-04 14:10 ` Gottox
@ 2021-02-04 14:25 ` Gottox
  2021-02-04 15:37 ` Gottox
                   ` (4 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 14:25 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

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

---
 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 00000000000..ac5abbfb3f5
--- /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 00000000000..f49359674f1
--- /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 00000000000..b3db337f048
--- /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 00000000000..ba65b7c9206
--- /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 00000000000..94f86a28150
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,42 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+build_style=go
+build_helper="qemu"
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes>1.20_1 containerd>=1.3.9_1"
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+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 generate-bindata
+}
+
+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] 23+ messages in thread

* Re: [PR PATCH] [Updated] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (16 preceding siblings ...)
  2021-02-04 14:25 ` Gottox
@ 2021-02-04 15:37 ` Gottox
  2021-02-04 15:54 ` Gottox
                   ` (3 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 15:37 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

From b32d2f5241e71164d6dbca16f981c87e4eb914e9 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 00000000000..6c66533e0ef
--- /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
+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
+wrksrc=apiserver-network-proxy-$version
+
+post_install() {
+	mv $DESTDIR/usr/bin/server $DESTDIR/usr/bin/konnectivity-server
+}

From 01b3ef4696fafbdd569960385b35a3647b9d9054 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-0.9.1

---
 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 00000000000..ac5abbfb3f5
--- /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 00000000000..f49359674f1
--- /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 00000000000..b3db337f048
--- /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 00000000000..ba65b7c9206
--- /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 00000000000..94f86a28150
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,42 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+build_style=go
+build_helper="qemu"
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes>1.20_1 containerd>=1.3.9_1"
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+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 generate-bindata
+}
+
+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] 23+ messages in thread

* Re: [PR PATCH] [Updated] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (17 preceding siblings ...)
  2021-02-04 15:37 ` Gottox
@ 2021-02-04 15:54 ` Gottox
  2021-02-04 16:12 ` Gottox
                   ` (2 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 15:54 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

From d78896d434fa3f518a2984a64fae8176130cada5 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 00000000000..378820685c1
--- /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 b6d648b807e78eb7984fca70ddb5913f0a1fdf73 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-0.9.1

---
 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 00000000000..ac5abbfb3f5
--- /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 00000000000..f49359674f1
--- /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 00000000000..b3db337f048
--- /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 00000000000..ba65b7c9206
--- /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 00000000000..94f86a28150
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,42 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+build_style=go
+build_helper="qemu"
+go_import_path=github.com/k0sproject/k0s
+hostmakedepends="which golangci-lint"
+depends="kubernetes>1.20_1 containerd>=1.3.9_1"
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+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 generate-bindata
+}
+
+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] 23+ messages in thread

* Re: [PR PATCH] [Updated] New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (18 preceding siblings ...)
  2021-02-04 15:54 ` Gottox
@ 2021-02-04 16:12 ` Gottox
  2021-02-04 16:47 ` Gottox
  2021-05-21 13:50 ` [PR PATCH] [Closed]: " Gottox
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 16:12 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Gottox/void-packages k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

New package: k0s-0.9.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

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

From d78896d434fa3f518a2984a64fae8176130cada5 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 00000000000..378820685c1
--- /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 b5ef7153917b66cdc8d6011ed57cfc0af8a8b176 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-0.9.1

---
 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 00000000000..ac5abbfb3f5
--- /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 00000000000..f49359674f1
--- /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 00000000000..b3db337f048
--- /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 00000000000..ba65b7c9206
--- /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 00000000000..49f66275cbb
--- /dev/null
+++ b/srcpkgs/k0s/template
@@ -0,0 +1,42 @@
+# Template file for 'k0s'
+pkgname=k0s
+version=0.9.1
+revision=1
+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=d67c48a61370610554d15fc61e23ac6b819f73c9dcb2c4d19fdde494e3d55dc9
+system_accounts="_k0s"
+_k0s_homedir="/var/lib/k0s"
+_k0s_descr="k0s server user"
+make_dirs="/var/lib/k0s 0755 _k0s _k0s"
+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 generate-bindata
+}
+
+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] 23+ messages in thread

* Re: New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (19 preceding siblings ...)
  2021-02-04 16:12 ` Gottox
@ 2021-02-04 16:47 ` Gottox
  2021-05-21 13:50 ` [PR PATCH] [Closed]: " Gottox
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-02-04 16:47 UTC (permalink / raw)
  To: ml

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

New comment by Gottox on void-packages repository

https://github.com/void-linux/void-packages/pull/28478#issuecomment-773449331

Comment:
There are still some issues, please wait before merging!

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

* Re: [PR PATCH] [Closed]: New package: k0s-0.9.1
  2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
                   ` (20 preceding siblings ...)
  2021-02-04 16:47 ` Gottox
@ 2021-05-21 13:50 ` Gottox
  21 siblings, 0 replies; 23+ messages in thread
From: Gottox @ 2021-05-21 13:50 UTC (permalink / raw)
  To: ml

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

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

New package: k0s-0.9.1
https://github.com/void-linux/void-packages/pull/28478

Description:
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl (kubernetes is cross-broken)
  - [ ] armv7l (kubernetes is cross-broken)
  - [ ] armv6l-musl (kubernetes is cross-broken)
-->

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

end of thread, other threads:[~2021-05-21 13:50 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 12:45 [PR PATCH] New package: k0s-0.9.1 Gottox
2021-02-04 12:47 ` [PR PATCH] [Updated] " Gottox
2021-02-04 12:49 ` Gottox
2021-02-04 12:51 ` Gottox
2021-02-04 12:53 ` [PR REVIEW] " ericonr
2021-02-04 12:53 ` ericonr
2021-02-04 12:53 ` ericonr
2021-02-04 12:56 ` Gottox
2021-02-04 12:56 ` Gottox
2021-02-04 12:56 ` Gottox
2021-02-04 12:57 ` Gottox
2021-02-04 12:58 ` [PR PATCH] [Updated] " Gottox
2021-02-04 12:59 ` [PR REVIEW] " Gottox
2021-02-04 14:02 ` [PR PATCH] [Updated] " Gottox
2021-02-04 14:03 ` [PR REVIEW] " Gottox
2021-02-04 14:06 ` [PR PATCH] [Updated] " Gottox
2021-02-04 14:10 ` Gottox
2021-02-04 14:25 ` Gottox
2021-02-04 15:37 ` Gottox
2021-02-04 15:54 ` Gottox
2021-02-04 16:12 ` Gottox
2021-02-04 16:47 ` Gottox
2021-05-21 13:50 ` [PR PATCH] [Closed]: " Gottox

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).