From nobody Fri Jan 20 11:50:36 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NyyVh63X1z2v4CM; Fri, 20 Jan 2023 11:50:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NyyVh4tgTz3Qbn; Fri, 20 Jan 2023 11:50:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674215436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=740Hy41o/3cly3yvayK6hr9PpF5gttwe99RAcu68lQY=; b=N61fiHSviRytZnWMLVgch5t/hsYVzE1D+irzdcAURxuPKGvT6Nl14rvzY129PWq/i8uyXr 0OWZWaU0PmuOdjW0Fr2lwZ8sP4zkh8eG+uR0I0wwER3StMtG9YSpvf2sBEBPUp2wuanDrj crkow0bJD70QnblKQivsw6jSmj06QQQenBcQwHobyJzvpT9p37cSX3rfL6dEbxQCegkRnO BNkW2hen0hEpXJ8el1p0FqjEEACRbgD1GTqO/W+7KKq8YgBduPRVRUwbdalxaEniXJUal+ W8/5YXoiF/7lzDTJjMo462RCJNhnzzFQdIIJpTrMs7j7HzqndIW+1IKPxRQFaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674215436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=740Hy41o/3cly3yvayK6hr9PpF5gttwe99RAcu68lQY=; b=TINBE1ha2iCvk92LcwN5QW6gIK8jcyKS1GZNZfoYUWRj01FJyudSCL93vRomjF25HnJjAY eq/I4cJWdjVnt2s/xV0ZHIUg1GMIKL03fOIXWKjca0lOHnhvDACpinwyrWojWb8YawdAl7 PL47eVKBF/prQINuYAFNCxSiZs3sVGX46LZ2Io33krJrfIcwZ1VVGTMftFNzeTEvaEgKvv NUY1Oq0LAfhg1goZY13jMjC6mlh12YxuA8ZF049P7Nlxsks+qaN2yIXUQCmw/EkYDQct/U 0nJR53pd+N4+CXjLyZk0sMjhyJj86scTXuR724jKEH9xSH+UVxWlLPafL5cI2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674215436; a=rsa-sha256; cv=none; b=oH7OOaT4xgolOTQWKJHx7SKeyUwerU02LoxwR7qTWtuP27+Dy7beqyUQi9z8aUzxZHqReZ l5GLmyWD2EnijJiqwWGGrzfTbok0j599EI11s8jBOGY53+AsAzX+UwFyMHRhFDHdHUd29H iIeMIdfRgNfoPvypnTEQVh4i6gbcRLy1iY5k7z5LEyGn6mBnFlU28yAYdfk2ITliBlYVIq LW5jXE4utFv01Q/EIZDOeHXt2JSPFL5d8yG9r/lw8RtpqjbEsiF5IToIQVBBCpv4vuDJOq lCsvWZHBRKlSiUSfwHEoPnzeioeF0d+tfB/KhuBrhSvfsoD+JNjO65G47NqL1A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NyyVh3FVjzTQ6; Fri, 20 Jan 2023 11:50:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30KBoaeD066093; Fri, 20 Jan 2023 11:50:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30KBoaka066092; Fri, 20 Jan 2023 11:50:36 GMT (envelope-from git) Date: Fri, 20 Jan 2023 11:50:36 GMT Message-Id: <202301201150.30KBoaka066092@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mikael Urankar Subject: git: db9dab9d84dd - main - net/kube-apiserver: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mikael X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: db9dab9d84dd2470d070b9b6e2b387185f132f1e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=db9dab9d84dd2470d070b9b6e2b387185f132f1e commit db9dab9d84dd2470d070b9b6e2b387185f132f1e Author: Loic Blot AuthorDate: 2023-01-17 19:32:43 +0000 Commit: Mikael Urankar CommitDate: 2023-01-20 11:50:24 +0000 net/kube-apiserver: Add new port The Kubernetes API server validates and configures data for the api objects which include pods, services, replicationcontrollers, and others. The API Server services REST operations and provides the frontend to the cluster's shared state through which all other components interact. Note: while testing this as a replacement of a Linux based on my lab, I only saw Webhooks not working due to Kubernetes network mesh not implemented. I added a notice about this for people who want to test it. PR: 267308 --- net/Makefile | 1 + net/kube-apiserver/Makefile | 45 ++++++++++++++++++++++++++++++ net/kube-apiserver/distinfo | 3 ++ net/kube-apiserver/files/kube-apiserver.in | 24 ++++++++++++++++ net/kube-apiserver/pkg-descr | 5 ++++ net/kube-apiserver/pkg-message | 12 ++++++++ 6 files changed, 90 insertions(+) diff --git a/net/Makefile b/net/Makefile index bacf08db86c3..3cab3a106599 100644 --- a/net/Makefile +++ b/net/Makefile @@ -339,6 +339,7 @@ SUBDIR += krill SUBDIR += ksmtp SUBDIR += ktnef + SUBDIR += kube-apiserver SUBDIR += kube-controller-manager SUBDIR += kube-scheduler SUBDIR += l2tpd diff --git a/net/kube-apiserver/Makefile b/net/kube-apiserver/Makefile new file mode 100644 index 000000000000..34bd6be54ca7 --- /dev/null +++ b/net/kube-apiserver/Makefile @@ -0,0 +1,45 @@ +PORTNAME= kube-apiserver +PORTVERSION= 1.26.0 +DISTVERSIONPREFIX= v +CATEGORIES= net + +MAINTAINER= loic.blot@unix-experience.fr +COMMENT= Kubernetes API service +WWW= https://github.com/kubernetes/kubernetes + +LICENSE= APACHE20 + +USES= cpe go +CPE_VENDOR= jenkins +CPE_PRODUCT= kubernetes + +USE_GITHUB= yes +GH_ACCOUNT= kubernetes +GH_PROJECT= kubernetes + +BUILD_DATE= $$(date +'%Y-%m-%dT%H:%M:%SZ') + +GO_PKGNAME= k8s.io/kubernetes +GO_TARGET= ${GO_PKGNAME}/cmd/kube-apiserver +GO_BUILDFLAGS= -ldflags="-X k8s.io/kubernetes/vendor/k8s.io/client-go/pkg/version.buildDate=${BUILD_DATE} \ + -X k8s.io/kubernetes/vendor/k8s.io/component-base/version.buildDate=${BUILD_DATE} \ + -X k8s.io/client-go/pkg/version.buildDate=${BUILD_DATE} \ + -X k8s.io/component-base/version.buildDate=${BUILD_DATE} \ + -X k8s.io/kubernetes/vendor/k8s.io/client-go/pkg/version.gitMinor=${PORTVERSION:R:E} \ + -X k8s.io/kubernetes/vendor/k8s.io/component-base/version.gitMinor=${PORTVERSION:R:E} \ + -X k8s.io/client-go/pkg/version.gitMinor=${PORTVERSION:R:E} \ + -X k8s.io/component-base/version.gitMinor=${PORTVERSION:R:E} \ + -X k8s.io/kubernetes/vendor/k8s.io/client-go/pkg/version.gitMajor=${PORTVERSION:R:R} \ + -X k8s.io/kubernetes/vendor/k8s.io/component-base/version.gitMajor=${PORTVERSION:R:R} \ + -X k8s.io/client-go/pkg/version.gitMajor=${PORTVERSION:R:R} \ + -X k8s.io/component-base/version.gitMajor=${PORTVERSION:R:R} \ + -X k8s.io/kubernetes/vendor/k8s.io/client-go/pkg/version.gitVersion=${DISTVERSIONPREFIX}${PORTVERSION} \ + -X k8s.io/kubernetes/vendor/k8s.io/component-base/version.gitVersion=${DISTVERSIONPREFIX}${PORTVERSION} \ + -X k8s.io/client-go/pkg/version.gitVersion=${DISTVERSIONPREFIX}${PORTVERSION} \ + -X k8s.io/component-base/version.gitVersion=${DISTVERSIONPREFIX}${PORTVERSION}" + +USE_RC_SUBR= kube-apiserver + +PLIST_FILES= bin/${PORTNAME} + +.include diff --git a/net/kube-apiserver/distinfo b/net/kube-apiserver/distinfo new file mode 100644 index 000000000000..73ca67366738 --- /dev/null +++ b/net/kube-apiserver/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1670573676 +SHA256 (kubernetes-kubernetes-v1.26.0_GH0.tar.gz) = a0de781db6d09d91f39306740420f150c5912606f52e4c9a859649f4313fe508 +SIZE (kubernetes-kubernetes-v1.26.0_GH0.tar.gz) = 40269668 diff --git a/net/kube-apiserver/files/kube-apiserver.in b/net/kube-apiserver/files/kube-apiserver.in new file mode 100755 index 000000000000..06acf8c90d6a --- /dev/null +++ b/net/kube-apiserver/files/kube-apiserver.in @@ -0,0 +1,24 @@ +#!/bin/sh +# +# PROVIDE: kube-apiserver +# REQUIRE: DAEMON +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable kube-apiserver: +# +# kube-apiserver_enable="YES" + +. /etc/rc.subr + +name="kube_apiserver" +rcvar="kube_apiserver_enable" + +load_rc_config $name +: ${kube_apiserver_enable:=no} +: ${kube_apiserver_args:="--bind-address=0.0.0.0 --v=2"} + +pidfile="/var/run/${name}.pid" +command="/usr/sbin/daemon" +command_args="-P ${pidfile} -r -S -t ${name} -T ${name} /usr/local/bin/kube-apiserver ${kube_apiserver_args}" + +run_rc_command "$1" diff --git a/net/kube-apiserver/pkg-descr b/net/kube-apiserver/pkg-descr new file mode 100644 index 000000000000..dc49c218d62a --- /dev/null +++ b/net/kube-apiserver/pkg-descr @@ -0,0 +1,5 @@ +The Kubernetes API server validates and configures data for the api +objects which include pods, services, replicationcontrollers, +and others. The API Server services REST operations and provides +the frontend to the cluster's shared state through which all other +components interact. diff --git a/net/kube-apiserver/pkg-message b/net/kube-apiserver/pkg-message new file mode 100644 index 000000000000..c7f597251f49 --- /dev/null +++ b/net/kube-apiserver/pkg-message @@ -0,0 +1,12 @@ +[ +{ type: install + message: <