From: Gottox <Gottox@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] k0s 1.22.2.0
Date: Thu, 07 Oct 2021 10:33:44 +0200 [thread overview]
Message-ID: <20211007083344.Eh7wHClv0kDbLgsiLfdDOdYzFxNN2Ig0eXo-A-5OQp8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33345@inbox.vuxu.org>
[-- 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
+}
next prev parent reply other threads:[~2021-10-07 8:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-05 14:21 [PR PATCH] " Gottox
2021-10-05 14:24 ` [PR PATCH] [Updated] " Gottox
2021-10-07 8:33 ` Gottox
2021-10-07 8:33 ` Gottox [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211007083344.Eh7wHClv0kDbLgsiLfdDOdYzFxNN2Ig0eXo-A-5OQp8@z \
--to=gottox@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).