summaryrefslogtreecommitdiff
path: root/sys-cluster
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/Manifest.gzbin11548 -> 11542 bytes
-rw-r--r--sys-cluster/kube-apiserver/Manifest1
-rw-r--r--sys-cluster/kube-apiserver/files/kube-apiserver-1.28.0-make-gomaxprocs-install-optional.patch78
-rw-r--r--sys-cluster/kube-proxy/Manifest1
-rw-r--r--sys-cluster/kube-proxy/files/kube-proxy-1.28.0-make-gomaxprocs-install-optional.patch78
-rw-r--r--sys-cluster/kube-scheduler/Manifest1
-rw-r--r--sys-cluster/kube-scheduler/files/kube-scheduler-1.28.0-make-gomaxprocs-install-optional.patch78
-rw-r--r--sys-cluster/kubeadm/Manifest1
-rw-r--r--sys-cluster/kubeadm/files/kubeadm-1.28.0-make-gomaxprocs-install-optional.patch78
-rw-r--r--sys-cluster/kubectl/Manifest1
-rw-r--r--sys-cluster/kubectl/files/kubectl-1.28.0-make-gomaxprocs-install-optional.patch78
-rw-r--r--sys-cluster/kubelet/Manifest1
-rw-r--r--sys-cluster/kubelet/files/kubelet-1.28.0-make-gomaxprocs-install-optional.patch78
13 files changed, 0 insertions, 474 deletions
diff --git a/sys-cluster/Manifest.gz b/sys-cluster/Manifest.gz
index 713c0a396c0b..add8cfc13cb7 100644
--- a/sys-cluster/Manifest.gz
+++ b/sys-cluster/Manifest.gz
Binary files differ
diff --git a/sys-cluster/kube-apiserver/Manifest b/sys-cluster/kube-apiserver/Manifest
index b20baaf6a64b..3db8ca0e4ac4 100644
--- a/sys-cluster/kube-apiserver/Manifest
+++ b/sys-cluster/kube-apiserver/Manifest
@@ -1,4 +1,3 @@
-AUX kube-apiserver-1.28.0-make-gomaxprocs-install-optional.patch 2835 BLAKE2B 964759a3af2afced4d5ff2ed59b1e94c2912a85ce560f3dac4e0ea59b1e308ee7b35f6d5435524e6e407d2032a1bd8783fb0b4787dbb22cfa9ace9ff723b1c40 SHA512 88b369bfda14eb03f9957f4b9105a565fa6f821e20b4743941f12f7e5b005cdef4184e0c09d54102b811e08a27f1725b0dc36e29e331f8802b7eaf52db1ce00f
AUX kube-apiserver.confd 116 BLAKE2B 2cf2dff516674ba4dc0763985a070b75e23f9af51e7334eedcb2593855e7481d5969ed458d322ac29de0e9a9c7f9f041911ee7aeca750ff77ce04fd60bf3a3d3 SHA512 302b2a7ec715967c0aa7d1c177d4e55b26e37ebba8d04dd37ecf627d20042fe91cd7e6192ff9d71422129b0ea54a9eec6046f505af550548bd450998924f37ee
AUX kube-apiserver.initd 541 BLAKE2B ddddc86735a9f90a0c232f2631ac21c028045783c737d041a808fb5012522844614a40059524c472b9b50fd077253b75e2bcf33d69518d71428fcb7e27143fba SHA512 2863ad6d1d238b5e9557874cd3f5413108ed9424604cf026e2fd8c2fd66ba867ca9a3d98f67fdac54f335bacddf0479547b28f71aaa1db6580beff49290de110
AUX kube-apiserver.logrotated 88 BLAKE2B e58f3f108f5f7dbbadacfcc1b401567ce79d511a4623f85f01830c5e40d4ad4e44fe0b3f90d4143042d82bd83b0a2b11517e89037755ef2ad7afeeb23401bb60 SHA512 1a4bcd54dafaedc614e34bbadc2a1163f003b5925d47552fb2c47049c033c147e612171e263d9659d189fc2d95688a0b7153322d8dba97c083c079fdef6c400e
diff --git a/sys-cluster/kube-apiserver/files/kube-apiserver-1.28.0-make-gomaxprocs-install-optional.patch b/sys-cluster/kube-apiserver/files/kube-apiserver-1.28.0-make-gomaxprocs-install-optional.patch
deleted file mode 100644
index 1a8935b31c9c..000000000000
--- a/sys-cluster/kube-apiserver/files/kube-apiserver-1.28.0-make-gomaxprocs-install-optional.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-From cce3f6ffa796ea416021b0d62567a3f52b979567 Mon Sep 17 00:00:00 2001
-From: Jordan Liggitt <liggitt@google.com>
-Date: Wed, 16 Aug 2023 09:33:02 -0400
-Subject: [PATCH 2/2] Make gomaxprocs install optional, limit to tests
-
----
- hack/lib/golang.sh | 25 +++++++++++++++----------
- hack/make-rules/test-e2e-node.sh | 1 +
- hack/make-rules/test.sh | 1 +
- 3 files changed, 17 insertions(+), 10 deletions(-)
-
-diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
-index 66772f08a81..983ff368e25 100755
---- a/hack/lib/golang.sh
-+++ b/hack/lib/golang.sh
-@@ -556,20 +556,25 @@ kube::golang::setup_env() {
-
- # This seems to matter to some tools
- export GO15VENDOREXPERIMENT=1
-+}
-
-+kube::golang::setup_gomaxprocs() {
- # GOMAXPROCS by default does not reflect the number of cpu(s) available
- # when running in a container, please see https://github.com/golang/go/issues/33803
-- if ! command -v ncpu >/dev/null 2>&1; then
-- # shellcheck disable=SC2164
-- pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-- GO111MODULE=on go install ./ncpu
-- # shellcheck disable=SC2164
-- popd >/dev/null
-+ if [[ -z "${GOMAXPROCS:-}" ]]; then
-+ if ! command -v ncpu >/dev/null 2>&1; then
-+ # shellcheck disable=SC2164
-+ pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-+ GO111MODULE=on go install ./ncpu || echo "Will not automatically set GOMAXPROCS"
-+ # shellcheck disable=SC2164
-+ popd >/dev/null
-+ fi
-+ if command -v ncpu >/dev/null 2>&1; then
-+ GOMAXPROCS=$(ncpu)
-+ export GOMAXPROCS
-+ kube::log::status "Set GOMAXPROCS automatically to ${GOMAXPROCS}"
-+ fi
- fi
--
-- GOMAXPROCS=${GOMAXPROCS:-$(ncpu)}
-- export GOMAXPROCS
-- kube::log::status "Setting GOMAXPROCS: ${GOMAXPROCS}"
- }
-
- # This will take binaries from $GOPATH/bin and copy them to the appropriate
-diff --git a/hack/make-rules/test-e2e-node.sh b/hack/make-rules/test-e2e-node.sh
-index 43dde0c740f..49e3e04ac71 100755
---- a/hack/make-rules/test-e2e-node.sh
-+++ b/hack/make-rules/test-e2e-node.sh
-@@ -18,6 +18,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
-diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh
-index e9074678a8f..4aa72730d83 100755
---- a/hack/make-rules/test.sh
-+++ b/hack/make-rules/test.sh
-@@ -22,6 +22,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
---
-2.41.0
-
diff --git a/sys-cluster/kube-proxy/Manifest b/sys-cluster/kube-proxy/Manifest
index 225d3c14ad99..69f0cb2d4c76 100644
--- a/sys-cluster/kube-proxy/Manifest
+++ b/sys-cluster/kube-proxy/Manifest
@@ -1,4 +1,3 @@
-AUX kube-proxy-1.28.0-make-gomaxprocs-install-optional.patch 2835 BLAKE2B 964759a3af2afced4d5ff2ed59b1e94c2912a85ce560f3dac4e0ea59b1e308ee7b35f6d5435524e6e407d2032a1bd8783fb0b4787dbb22cfa9ace9ff723b1c40 SHA512 88b369bfda14eb03f9957f4b9105a565fa6f821e20b4743941f12f7e5b005cdef4184e0c09d54102b811e08a27f1725b0dc36e29e331f8802b7eaf52db1ce00f
AUX kube-proxy.confd 53 BLAKE2B 0cd5fc844dc21f63786ef21d972210ac02ea55165b05cef8810268f894e3466cea4d82c7882e56d6a0bf425311adbf6a55e3e3fe351b9a1a7ce1d9e1e087018b SHA512 4c8c34ae8668bcfa5167c2d2af006fc46b461a5dafb3ec5b64cb8cdf2a830c22ddb5cf806c93b1404f60dabf91b4153724947fa2d2c494376f20e637eeed5018
AUX kube-proxy.initd 507 BLAKE2B 96697ce13e03c0a541bd8e7a3dc28a1c5647067d3bffe464d672d00ecf5b5fffd349a6affcd8ae3ea0ba06160be72f31cfa2d918c01050e83640fb9956917dc0 SHA512 088d91cd77e614f7857d65496f5b6d486741a8e3358b3e13bcd4203d35a76fa3aa390f658065e2826145525b6e83fcd33f8365a873e99b522f3ab7e8615ed364
AUX kube-proxy.logrotated 84 BLAKE2B d1a37cac3891f131b605edfe569ed545445d6993528059b11b4a8d20d0c958abbab8d7c6acfc7a9e0f17c64ac7f19ef2b4954ff475bededf406e718d04261d59 SHA512 7842a4585aaf9b7be0fac89dca58874354453fc6f17f00223c04aad2211217531ae6a942424a8a112808dcf9e52a499c4879730e435d2ad08931516c66d5441d
diff --git a/sys-cluster/kube-proxy/files/kube-proxy-1.28.0-make-gomaxprocs-install-optional.patch b/sys-cluster/kube-proxy/files/kube-proxy-1.28.0-make-gomaxprocs-install-optional.patch
deleted file mode 100644
index 1a8935b31c9c..000000000000
--- a/sys-cluster/kube-proxy/files/kube-proxy-1.28.0-make-gomaxprocs-install-optional.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-From cce3f6ffa796ea416021b0d62567a3f52b979567 Mon Sep 17 00:00:00 2001
-From: Jordan Liggitt <liggitt@google.com>
-Date: Wed, 16 Aug 2023 09:33:02 -0400
-Subject: [PATCH 2/2] Make gomaxprocs install optional, limit to tests
-
----
- hack/lib/golang.sh | 25 +++++++++++++++----------
- hack/make-rules/test-e2e-node.sh | 1 +
- hack/make-rules/test.sh | 1 +
- 3 files changed, 17 insertions(+), 10 deletions(-)
-
-diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
-index 66772f08a81..983ff368e25 100755
---- a/hack/lib/golang.sh
-+++ b/hack/lib/golang.sh
-@@ -556,20 +556,25 @@ kube::golang::setup_env() {
-
- # This seems to matter to some tools
- export GO15VENDOREXPERIMENT=1
-+}
-
-+kube::golang::setup_gomaxprocs() {
- # GOMAXPROCS by default does not reflect the number of cpu(s) available
- # when running in a container, please see https://github.com/golang/go/issues/33803
-- if ! command -v ncpu >/dev/null 2>&1; then
-- # shellcheck disable=SC2164
-- pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-- GO111MODULE=on go install ./ncpu
-- # shellcheck disable=SC2164
-- popd >/dev/null
-+ if [[ -z "${GOMAXPROCS:-}" ]]; then
-+ if ! command -v ncpu >/dev/null 2>&1; then
-+ # shellcheck disable=SC2164
-+ pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-+ GO111MODULE=on go install ./ncpu || echo "Will not automatically set GOMAXPROCS"
-+ # shellcheck disable=SC2164
-+ popd >/dev/null
-+ fi
-+ if command -v ncpu >/dev/null 2>&1; then
-+ GOMAXPROCS=$(ncpu)
-+ export GOMAXPROCS
-+ kube::log::status "Set GOMAXPROCS automatically to ${GOMAXPROCS}"
-+ fi
- fi
--
-- GOMAXPROCS=${GOMAXPROCS:-$(ncpu)}
-- export GOMAXPROCS
-- kube::log::status "Setting GOMAXPROCS: ${GOMAXPROCS}"
- }
-
- # This will take binaries from $GOPATH/bin and copy them to the appropriate
-diff --git a/hack/make-rules/test-e2e-node.sh b/hack/make-rules/test-e2e-node.sh
-index 43dde0c740f..49e3e04ac71 100755
---- a/hack/make-rules/test-e2e-node.sh
-+++ b/hack/make-rules/test-e2e-node.sh
-@@ -18,6 +18,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
-diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh
-index e9074678a8f..4aa72730d83 100755
---- a/hack/make-rules/test.sh
-+++ b/hack/make-rules/test.sh
-@@ -22,6 +22,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
---
-2.41.0
-
diff --git a/sys-cluster/kube-scheduler/Manifest b/sys-cluster/kube-scheduler/Manifest
index 149c352a66c8..9ecac181d05f 100644
--- a/sys-cluster/kube-scheduler/Manifest
+++ b/sys-cluster/kube-scheduler/Manifest
@@ -1,4 +1,3 @@
-AUX kube-scheduler-1.28.0-make-gomaxprocs-install-optional.patch 2835 BLAKE2B 964759a3af2afced4d5ff2ed59b1e94c2912a85ce560f3dac4e0ea59b1e308ee7b35f6d5435524e6e407d2032a1bd8783fb0b4787dbb22cfa9ace9ff723b1c40 SHA512 88b369bfda14eb03f9957f4b9105a565fa6f821e20b4743941f12f7e5b005cdef4184e0c09d54102b811e08a27f1725b0dc36e29e331f8802b7eaf52db1ce00f
AUX kube-scheduler.confd 133 BLAKE2B 6b88dfc011173f183a88a16d078cbb5d96d46c269129b483d650fd7dd63376e366825f483178c26e931db226478ce9d0b85412fc264d4d600a8232d0bac149e7 SHA512 d7326f34b26aaebf4b5c25a03abcff3bc3d397382ad4fed0f4718ee425e71399febf6fec6dc817813490671692d3f1b454fd5d14d9c47c3d41b0d3405a01a6c2
AUX kube-scheduler.initd 548 BLAKE2B dd9373f659b87fcf12dca20527aebdb304a60ec559fd9fb9efcd0db8b3c155fdba2ce8a59461cd15ed3b4294cc5b335093e12d2b8411e400927e1307b37bc6d8 SHA512 151ea6f5cc36de9b83f0e5365579e33eea8002f9a03f5f61d195a349236e6baf192f701d3fb591b769aa90e8e1e620d525b20c95a1e8cda58d062971d8f587a3
AUX kube-scheduler.logrotated 88 BLAKE2B af29a5ba84cb29787b17368105c793868a2e61a28e9a5b02361cf4833982d4489364bd1291faa136df275988f02ce78c7b785c9209a54aec5eea6180b9041da0 SHA512 3692da349dd6ed0f5acc09d7b95ac562ffecb103e2270bebdfe4a7808d48dada9d2debff262d85b11c47f9ca3f0c20000712d03629ed813ff08a3e02d69267e6
diff --git a/sys-cluster/kube-scheduler/files/kube-scheduler-1.28.0-make-gomaxprocs-install-optional.patch b/sys-cluster/kube-scheduler/files/kube-scheduler-1.28.0-make-gomaxprocs-install-optional.patch
deleted file mode 100644
index 1a8935b31c9c..000000000000
--- a/sys-cluster/kube-scheduler/files/kube-scheduler-1.28.0-make-gomaxprocs-install-optional.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-From cce3f6ffa796ea416021b0d62567a3f52b979567 Mon Sep 17 00:00:00 2001
-From: Jordan Liggitt <liggitt@google.com>
-Date: Wed, 16 Aug 2023 09:33:02 -0400
-Subject: [PATCH 2/2] Make gomaxprocs install optional, limit to tests
-
----
- hack/lib/golang.sh | 25 +++++++++++++++----------
- hack/make-rules/test-e2e-node.sh | 1 +
- hack/make-rules/test.sh | 1 +
- 3 files changed, 17 insertions(+), 10 deletions(-)
-
-diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
-index 66772f08a81..983ff368e25 100755
---- a/hack/lib/golang.sh
-+++ b/hack/lib/golang.sh
-@@ -556,20 +556,25 @@ kube::golang::setup_env() {
-
- # This seems to matter to some tools
- export GO15VENDOREXPERIMENT=1
-+}
-
-+kube::golang::setup_gomaxprocs() {
- # GOMAXPROCS by default does not reflect the number of cpu(s) available
- # when running in a container, please see https://github.com/golang/go/issues/33803
-- if ! command -v ncpu >/dev/null 2>&1; then
-- # shellcheck disable=SC2164
-- pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-- GO111MODULE=on go install ./ncpu
-- # shellcheck disable=SC2164
-- popd >/dev/null
-+ if [[ -z "${GOMAXPROCS:-}" ]]; then
-+ if ! command -v ncpu >/dev/null 2>&1; then
-+ # shellcheck disable=SC2164
-+ pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-+ GO111MODULE=on go install ./ncpu || echo "Will not automatically set GOMAXPROCS"
-+ # shellcheck disable=SC2164
-+ popd >/dev/null
-+ fi
-+ if command -v ncpu >/dev/null 2>&1; then
-+ GOMAXPROCS=$(ncpu)
-+ export GOMAXPROCS
-+ kube::log::status "Set GOMAXPROCS automatically to ${GOMAXPROCS}"
-+ fi
- fi
--
-- GOMAXPROCS=${GOMAXPROCS:-$(ncpu)}
-- export GOMAXPROCS
-- kube::log::status "Setting GOMAXPROCS: ${GOMAXPROCS}"
- }
-
- # This will take binaries from $GOPATH/bin and copy them to the appropriate
-diff --git a/hack/make-rules/test-e2e-node.sh b/hack/make-rules/test-e2e-node.sh
-index 43dde0c740f..49e3e04ac71 100755
---- a/hack/make-rules/test-e2e-node.sh
-+++ b/hack/make-rules/test-e2e-node.sh
-@@ -18,6 +18,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
-diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh
-index e9074678a8f..4aa72730d83 100755
---- a/hack/make-rules/test.sh
-+++ b/hack/make-rules/test.sh
-@@ -22,6 +22,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
---
-2.41.0
-
diff --git a/sys-cluster/kubeadm/Manifest b/sys-cluster/kubeadm/Manifest
index b64a092ca859..785992582e12 100644
--- a/sys-cluster/kubeadm/Manifest
+++ b/sys-cluster/kubeadm/Manifest
@@ -1,4 +1,3 @@
-AUX kubeadm-1.28.0-make-gomaxprocs-install-optional.patch 2835 BLAKE2B 964759a3af2afced4d5ff2ed59b1e94c2912a85ce560f3dac4e0ea59b1e308ee7b35f6d5435524e6e407d2032a1bd8783fb0b4787dbb22cfa9ace9ff723b1c40 SHA512 88b369bfda14eb03f9957f4b9105a565fa6f821e20b4743941f12f7e5b005cdef4184e0c09d54102b811e08a27f1725b0dc36e29e331f8802b7eaf52db1ce00f
DIST kubernetes-1.24.17.tar.gz 38157141 BLAKE2B 2a4c68946a446ff9f0adce53960a4282f85c4235efbd2e3f749892e7d3b3cba4e4b0ea3db770dd07772c862966da8f0b339338fa54dbb1860df424f66c24b7b0 SHA512 d5a1356d5937afcede59a54835456db7883f193ba46711a8c6a87636a7f79995458245cbe5b3b89a6c5f668febaf17ba82a21f80e49e68c86e8b87ffe4138b54
DIST kubernetes-1.25.13.tar.gz 38481625 BLAKE2B 5c820f6907581286565cc250d63878c441eb15064badb6bfb02c646f5a98473f15916cf423975f9dfca6fef0a055d5bca073ff9bdefaafe0c54ce758f1781978 SHA512 fef096489879fce03355a965fbad8680c7904714fd87747d13b489f7d8052a5ca243ce7b5965282150222f8ffc2d2dbc8e41ef3f11c5de2f4009507cb0ded9d0
DIST kubernetes-1.25.14.tar.gz 38489922 BLAKE2B f5bcd1cdee5427e1f5732bbed834a5255e5ee7cbcd0c3d7f6b36993a1c85efefe2acf9a5c8262853a5b95cdcb57ffe23a3bae8cc65a80ee19383720b4479b60a SHA512 d62ce89540c431132056d379af7ed8581afa9830801cb5d9e7741a20fd1285922d3cf671ab9dcb239420c4a19d6edeee1f24f29521681cc184cf4a71a25e53d2
diff --git a/sys-cluster/kubeadm/files/kubeadm-1.28.0-make-gomaxprocs-install-optional.patch b/sys-cluster/kubeadm/files/kubeadm-1.28.0-make-gomaxprocs-install-optional.patch
deleted file mode 100644
index 1a8935b31c9c..000000000000
--- a/sys-cluster/kubeadm/files/kubeadm-1.28.0-make-gomaxprocs-install-optional.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-From cce3f6ffa796ea416021b0d62567a3f52b979567 Mon Sep 17 00:00:00 2001
-From: Jordan Liggitt <liggitt@google.com>
-Date: Wed, 16 Aug 2023 09:33:02 -0400
-Subject: [PATCH 2/2] Make gomaxprocs install optional, limit to tests
-
----
- hack/lib/golang.sh | 25 +++++++++++++++----------
- hack/make-rules/test-e2e-node.sh | 1 +
- hack/make-rules/test.sh | 1 +
- 3 files changed, 17 insertions(+), 10 deletions(-)
-
-diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
-index 66772f08a81..983ff368e25 100755
---- a/hack/lib/golang.sh
-+++ b/hack/lib/golang.sh
-@@ -556,20 +556,25 @@ kube::golang::setup_env() {
-
- # This seems to matter to some tools
- export GO15VENDOREXPERIMENT=1
-+}
-
-+kube::golang::setup_gomaxprocs() {
- # GOMAXPROCS by default does not reflect the number of cpu(s) available
- # when running in a container, please see https://github.com/golang/go/issues/33803
-- if ! command -v ncpu >/dev/null 2>&1; then
-- # shellcheck disable=SC2164
-- pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-- GO111MODULE=on go install ./ncpu
-- # shellcheck disable=SC2164
-- popd >/dev/null
-+ if [[ -z "${GOMAXPROCS:-}" ]]; then
-+ if ! command -v ncpu >/dev/null 2>&1; then
-+ # shellcheck disable=SC2164
-+ pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-+ GO111MODULE=on go install ./ncpu || echo "Will not automatically set GOMAXPROCS"
-+ # shellcheck disable=SC2164
-+ popd >/dev/null
-+ fi
-+ if command -v ncpu >/dev/null 2>&1; then
-+ GOMAXPROCS=$(ncpu)
-+ export GOMAXPROCS
-+ kube::log::status "Set GOMAXPROCS automatically to ${GOMAXPROCS}"
-+ fi
- fi
--
-- GOMAXPROCS=${GOMAXPROCS:-$(ncpu)}
-- export GOMAXPROCS
-- kube::log::status "Setting GOMAXPROCS: ${GOMAXPROCS}"
- }
-
- # This will take binaries from $GOPATH/bin and copy them to the appropriate
-diff --git a/hack/make-rules/test-e2e-node.sh b/hack/make-rules/test-e2e-node.sh
-index 43dde0c740f..49e3e04ac71 100755
---- a/hack/make-rules/test-e2e-node.sh
-+++ b/hack/make-rules/test-e2e-node.sh
-@@ -18,6 +18,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
-diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh
-index e9074678a8f..4aa72730d83 100755
---- a/hack/make-rules/test.sh
-+++ b/hack/make-rules/test.sh
-@@ -22,6 +22,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
---
-2.41.0
-
diff --git a/sys-cluster/kubectl/Manifest b/sys-cluster/kubectl/Manifest
index 3bf320e66ef7..3e30ee7b013d 100644
--- a/sys-cluster/kubectl/Manifest
+++ b/sys-cluster/kubectl/Manifest
@@ -1,4 +1,3 @@
-AUX kubectl-1.28.0-make-gomaxprocs-install-optional.patch 2835 BLAKE2B 964759a3af2afced4d5ff2ed59b1e94c2912a85ce560f3dac4e0ea59b1e308ee7b35f6d5435524e6e407d2032a1bd8783fb0b4787dbb22cfa9ace9ff723b1c40 SHA512 88b369bfda14eb03f9957f4b9105a565fa6f821e20b4743941f12f7e5b005cdef4184e0c09d54102b811e08a27f1725b0dc36e29e331f8802b7eaf52db1ce00f
DIST kubernetes-1.24.17.tar.gz 38157141 BLAKE2B 2a4c68946a446ff9f0adce53960a4282f85c4235efbd2e3f749892e7d3b3cba4e4b0ea3db770dd07772c862966da8f0b339338fa54dbb1860df424f66c24b7b0 SHA512 d5a1356d5937afcede59a54835456db7883f193ba46711a8c6a87636a7f79995458245cbe5b3b89a6c5f668febaf17ba82a21f80e49e68c86e8b87ffe4138b54
DIST kubernetes-1.25.13.tar.gz 38481625 BLAKE2B 5c820f6907581286565cc250d63878c441eb15064badb6bfb02c646f5a98473f15916cf423975f9dfca6fef0a055d5bca073ff9bdefaafe0c54ce758f1781978 SHA512 fef096489879fce03355a965fbad8680c7904714fd87747d13b489f7d8052a5ca243ce7b5965282150222f8ffc2d2dbc8e41ef3f11c5de2f4009507cb0ded9d0
DIST kubernetes-1.25.14.tar.gz 38489922 BLAKE2B f5bcd1cdee5427e1f5732bbed834a5255e5ee7cbcd0c3d7f6b36993a1c85efefe2acf9a5c8262853a5b95cdcb57ffe23a3bae8cc65a80ee19383720b4479b60a SHA512 d62ce89540c431132056d379af7ed8581afa9830801cb5d9e7741a20fd1285922d3cf671ab9dcb239420c4a19d6edeee1f24f29521681cc184cf4a71a25e53d2
diff --git a/sys-cluster/kubectl/files/kubectl-1.28.0-make-gomaxprocs-install-optional.patch b/sys-cluster/kubectl/files/kubectl-1.28.0-make-gomaxprocs-install-optional.patch
deleted file mode 100644
index 1a8935b31c9c..000000000000
--- a/sys-cluster/kubectl/files/kubectl-1.28.0-make-gomaxprocs-install-optional.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-From cce3f6ffa796ea416021b0d62567a3f52b979567 Mon Sep 17 00:00:00 2001
-From: Jordan Liggitt <liggitt@google.com>
-Date: Wed, 16 Aug 2023 09:33:02 -0400
-Subject: [PATCH 2/2] Make gomaxprocs install optional, limit to tests
-
----
- hack/lib/golang.sh | 25 +++++++++++++++----------
- hack/make-rules/test-e2e-node.sh | 1 +
- hack/make-rules/test.sh | 1 +
- 3 files changed, 17 insertions(+), 10 deletions(-)
-
-diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
-index 66772f08a81..983ff368e25 100755
---- a/hack/lib/golang.sh
-+++ b/hack/lib/golang.sh
-@@ -556,20 +556,25 @@ kube::golang::setup_env() {
-
- # This seems to matter to some tools
- export GO15VENDOREXPERIMENT=1
-+}
-
-+kube::golang::setup_gomaxprocs() {
- # GOMAXPROCS by default does not reflect the number of cpu(s) available
- # when running in a container, please see https://github.com/golang/go/issues/33803
-- if ! command -v ncpu >/dev/null 2>&1; then
-- # shellcheck disable=SC2164
-- pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-- GO111MODULE=on go install ./ncpu
-- # shellcheck disable=SC2164
-- popd >/dev/null
-+ if [[ -z "${GOMAXPROCS:-}" ]]; then
-+ if ! command -v ncpu >/dev/null 2>&1; then
-+ # shellcheck disable=SC2164
-+ pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-+ GO111MODULE=on go install ./ncpu || echo "Will not automatically set GOMAXPROCS"
-+ # shellcheck disable=SC2164
-+ popd >/dev/null
-+ fi
-+ if command -v ncpu >/dev/null 2>&1; then
-+ GOMAXPROCS=$(ncpu)
-+ export GOMAXPROCS
-+ kube::log::status "Set GOMAXPROCS automatically to ${GOMAXPROCS}"
-+ fi
- fi
--
-- GOMAXPROCS=${GOMAXPROCS:-$(ncpu)}
-- export GOMAXPROCS
-- kube::log::status "Setting GOMAXPROCS: ${GOMAXPROCS}"
- }
-
- # This will take binaries from $GOPATH/bin and copy them to the appropriate
-diff --git a/hack/make-rules/test-e2e-node.sh b/hack/make-rules/test-e2e-node.sh
-index 43dde0c740f..49e3e04ac71 100755
---- a/hack/make-rules/test-e2e-node.sh
-+++ b/hack/make-rules/test-e2e-node.sh
-@@ -18,6 +18,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
-diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh
-index e9074678a8f..4aa72730d83 100755
---- a/hack/make-rules/test.sh
-+++ b/hack/make-rules/test.sh
-@@ -22,6 +22,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
---
-2.41.0
-
diff --git a/sys-cluster/kubelet/Manifest b/sys-cluster/kubelet/Manifest
index 124c34f3ee7b..8cc7409a4105 100644
--- a/sys-cluster/kubelet/Manifest
+++ b/sys-cluster/kubelet/Manifest
@@ -1,4 +1,3 @@
-AUX kubelet-1.28.0-make-gomaxprocs-install-optional.patch 2835 BLAKE2B 964759a3af2afced4d5ff2ed59b1e94c2912a85ce560f3dac4e0ea59b1e308ee7b35f6d5435524e6e407d2032a1bd8783fb0b4787dbb22cfa9ace9ff723b1c40 SHA512 88b369bfda14eb03f9957f4b9105a565fa6f821e20b4743941f12f7e5b005cdef4184e0c09d54102b811e08a27f1725b0dc36e29e331f8802b7eaf52db1ce00f
AUX kubelet.confd 58 BLAKE2B 5c01a2146beacf3a024f312d1bd3422055887ba48d5d869a32a2be99585f260f9d9b9946e57290345e0d57870f7d4509892c53fe4c7a63b0111b1fa8f464daf0 SHA512 2ae3bbc8a66da644b59d7f753294ad43d5675edbe2e4769b91d7c988d0eeffd5b4209a10650ad937f9698b1b6050279d448c75274815a6b348ad2023f2fef08e
AUX kubelet.env 547 BLAKE2B db9144a0e155450f08a665700edbb05f3fa093d209f72320fdbcd54756afb857928a1d5828e79d3a54f958ddc41e8129a1489927115d1fc7712cd682699d3ac6 SHA512 3359ef337a27ea41b3db216808bb0baa571916bab37f913da79e0c9270199d75cfbb1a5730739b9207525e6027e38e8467e4c0b98567499d36130804f218e006
AUX kubelet.initd 520 BLAKE2B 50edf888fed020a02f099189f8a5bdde54a4bfa2a00585489864c262d90ad8347763753f99eccec6fe6670c6fa016674dee4dea0fa838991abb503db97bd983a SHA512 c6b9bcdb6d063728ef2e9d67673ea29c0972e70e446be9c020cfd277a7bbcfc955a5ad7a72ab0ca1579a4d04b0fc4ac71ee20e6dba9d9a9a9099efcad3c139d0
diff --git a/sys-cluster/kubelet/files/kubelet-1.28.0-make-gomaxprocs-install-optional.patch b/sys-cluster/kubelet/files/kubelet-1.28.0-make-gomaxprocs-install-optional.patch
deleted file mode 100644
index 1a8935b31c9c..000000000000
--- a/sys-cluster/kubelet/files/kubelet-1.28.0-make-gomaxprocs-install-optional.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-From cce3f6ffa796ea416021b0d62567a3f52b979567 Mon Sep 17 00:00:00 2001
-From: Jordan Liggitt <liggitt@google.com>
-Date: Wed, 16 Aug 2023 09:33:02 -0400
-Subject: [PATCH 2/2] Make gomaxprocs install optional, limit to tests
-
----
- hack/lib/golang.sh | 25 +++++++++++++++----------
- hack/make-rules/test-e2e-node.sh | 1 +
- hack/make-rules/test.sh | 1 +
- 3 files changed, 17 insertions(+), 10 deletions(-)
-
-diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
-index 66772f08a81..983ff368e25 100755
---- a/hack/lib/golang.sh
-+++ b/hack/lib/golang.sh
-@@ -556,20 +556,25 @@ kube::golang::setup_env() {
-
- # This seems to matter to some tools
- export GO15VENDOREXPERIMENT=1
-+}
-
-+kube::golang::setup_gomaxprocs() {
- # GOMAXPROCS by default does not reflect the number of cpu(s) available
- # when running in a container, please see https://github.com/golang/go/issues/33803
-- if ! command -v ncpu >/dev/null 2>&1; then
-- # shellcheck disable=SC2164
-- pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-- GO111MODULE=on go install ./ncpu
-- # shellcheck disable=SC2164
-- popd >/dev/null
-+ if [[ -z "${GOMAXPROCS:-}" ]]; then
-+ if ! command -v ncpu >/dev/null 2>&1; then
-+ # shellcheck disable=SC2164
-+ pushd "${KUBE_ROOT}/hack/tools" >/dev/null
-+ GO111MODULE=on go install ./ncpu || echo "Will not automatically set GOMAXPROCS"
-+ # shellcheck disable=SC2164
-+ popd >/dev/null
-+ fi
-+ if command -v ncpu >/dev/null 2>&1; then
-+ GOMAXPROCS=$(ncpu)
-+ export GOMAXPROCS
-+ kube::log::status "Set GOMAXPROCS automatically to ${GOMAXPROCS}"
-+ fi
- fi
--
-- GOMAXPROCS=${GOMAXPROCS:-$(ncpu)}
-- export GOMAXPROCS
-- kube::log::status "Setting GOMAXPROCS: ${GOMAXPROCS}"
- }
-
- # This will take binaries from $GOPATH/bin and copy them to the appropriate
-diff --git a/hack/make-rules/test-e2e-node.sh b/hack/make-rules/test-e2e-node.sh
-index 43dde0c740f..49e3e04ac71 100755
---- a/hack/make-rules/test-e2e-node.sh
-+++ b/hack/make-rules/test-e2e-node.sh
-@@ -18,6 +18,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
-diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh
-index e9074678a8f..4aa72730d83 100755
---- a/hack/make-rules/test.sh
-+++ b/hack/make-rules/test.sh
-@@ -22,6 +22,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
- source "${KUBE_ROOT}/hack/lib/init.sh"
-
- kube::golang::setup_env
-+kube::golang::setup_gomaxprocs
-
- # start the cache mutation detector by default so that cache mutators will be found
- KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
---
-2.41.0
-