mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #77985 from adisky/patch-2
fix unbound variable build/lib/release.sh bash 4.3
This commit is contained in:
commit
d45cc1019e
@ -165,6 +165,8 @@ kube::golang::dedup() {
|
|||||||
# KUBE_SUPPORTED* vars at the top of this file.
|
# KUBE_SUPPORTED* vars at the top of this file.
|
||||||
declare -a -g KUBE_SERVER_PLATFORMS
|
declare -a -g KUBE_SERVER_PLATFORMS
|
||||||
declare -a -g KUBE_CLIENT_PLATFORMS
|
declare -a -g KUBE_CLIENT_PLATFORMS
|
||||||
|
declare -a -g KUBE_NODE_PLATFORMS
|
||||||
|
declare -a -g KUBE_TEST_PLATFORMS
|
||||||
kube::golang::setup_platforms() {
|
kube::golang::setup_platforms() {
|
||||||
if [[ -n "${KUBE_BUILD_PLATFORMS:-}" ]]; then
|
if [[ -n "${KUBE_BUILD_PLATFORMS:-}" ]]; then
|
||||||
# KUBE_BUILD_PLATFORMS needs to be read into an array before the next
|
# KUBE_BUILD_PLATFORMS needs to be read into an array before the next
|
||||||
@ -206,19 +208,22 @@ kube::golang::setup_platforms() {
|
|||||||
elif [[ "${KUBE_FASTBUILD:-}" == "true" ]]; then
|
elif [[ "${KUBE_FASTBUILD:-}" == "true" ]]; then
|
||||||
KUBE_SERVER_PLATFORMS=(linux/amd64)
|
KUBE_SERVER_PLATFORMS=(linux/amd64)
|
||||||
readonly KUBE_SERVER_PLATFORMS
|
readonly KUBE_SERVER_PLATFORMS
|
||||||
readonly KUBE_NODE_PLATFORMS=(linux/amd64)
|
KUBE_NODE_PLATFORMS=(linux/amd64)
|
||||||
|
readonly KUBE_NODE_PLATFORMS
|
||||||
if [[ "${KUBE_BUILDER_OS:-}" == "darwin"* ]]; then
|
if [[ "${KUBE_BUILDER_OS:-}" == "darwin"* ]]; then
|
||||||
readonly KUBE_TEST_PLATFORMS=(
|
KUBE_TEST_PLATFORMS=(
|
||||||
darwin/amd64
|
darwin/amd64
|
||||||
linux/amd64
|
linux/amd64
|
||||||
)
|
)
|
||||||
|
readonly KUBE_TEST_PLATFORMS
|
||||||
KUBE_CLIENT_PLATFORMS=(
|
KUBE_CLIENT_PLATFORMS=(
|
||||||
darwin/amd64
|
darwin/amd64
|
||||||
linux/amd64
|
linux/amd64
|
||||||
)
|
)
|
||||||
readonly KUBE_CLIENT_PLATFORMS
|
readonly KUBE_CLIENT_PLATFORMS
|
||||||
else
|
else
|
||||||
readonly KUBE_TEST_PLATFORMS=(linux/amd64)
|
KUBE_TEST_PLATFORMS=(linux/amd64)
|
||||||
|
readonly KUBE_TEST_PLATFORMS
|
||||||
KUBE_CLIENT_PLATFORMS=(linux/amd64)
|
KUBE_CLIENT_PLATFORMS=(linux/amd64)
|
||||||
readonly KUBE_CLIENT_PLATFORMS
|
readonly KUBE_CLIENT_PLATFORMS
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user