mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-30 21:30:16 +00:00 
			
		
		
		
	Fix shellcheck failures SC2034
This commit is contained in:
		| @@ -14,6 +14,8 @@ | |||||||
| # See the License for the specific language governing permissions and | # See the License for the specific language governing permissions and | ||||||
| # limitations under the License. | # limitations under the License. | ||||||
|  |  | ||||||
|  | # shellcheck disable=SC2034 # Variables sourced in other scripts. | ||||||
|  |  | ||||||
| # Common utilities, variables and checks for all build scripts. | # Common utilities, variables and checks for all build scripts. | ||||||
| set -o errexit | set -o errexit | ||||||
| set -o nounset | set -o nounset | ||||||
| @@ -97,10 +99,10 @@ kube::build::get_docker_wrapped_binaries() { | |||||||
|   ### If you change any of these lists, please also update DOCKERIZED_BINARIES |   ### If you change any of these lists, please also update DOCKERIZED_BINARIES | ||||||
|   ### in build/BUILD. And kube::golang::server_image_targets |   ### in build/BUILD. And kube::golang::server_image_targets | ||||||
|   local targets=( |   local targets=( | ||||||
|     kube-apiserver,"${KUBE_BASE_IMAGE_REGISTRY}/debian-base-${arch}:${debian_base_version}" |     "kube-apiserver,${KUBE_BASE_IMAGE_REGISTRY}/debian-base-${arch}:${debian_base_version}" | ||||||
|     kube-controller-manager,"${KUBE_BASE_IMAGE_REGISTRY}/debian-base-${arch}:${debian_base_version}" |     "kube-controller-manager,${KUBE_BASE_IMAGE_REGISTRY}/debian-base-${arch}:${debian_base_version}" | ||||||
|     kube-scheduler,"${KUBE_BASE_IMAGE_REGISTRY}/debian-base-${arch}:${debian_base_version}" |     "kube-scheduler,${KUBE_BASE_IMAGE_REGISTRY}/debian-base-${arch}:${debian_base_version}" | ||||||
|     kube-proxy,"${KUBE_BASE_IMAGE_REGISTRY}/debian-iptables-${arch}:${debian_iptables_version}" |     "kube-proxy,${KUBE_BASE_IMAGE_REGISTRY}/debian-iptables-${arch}:${debian_iptables_version}" | ||||||
|   ) |   ) | ||||||
|  |  | ||||||
|   echo "${targets[@]}" |   echo "${targets[@]}" | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| #!/bin/sh | #!/usr/bin/env bash | ||||||
|  |  | ||||||
| # Copyright 2016 The Kubernetes Authors. | # Copyright 2016 The Kubernetes Authors. | ||||||
| # | # | ||||||
|   | |||||||
| @@ -1,4 +1,3 @@ | |||||||
| ./build/common.sh |  | ||||||
| ./build/lib/release.sh | ./build/lib/release.sh | ||||||
| ./cluster/common.sh | ./cluster/common.sh | ||||||
| ./cluster/gce/config-default.sh | ./cluster/gce/config-default.sh | ||||||
| @@ -7,13 +6,10 @@ | |||||||
| ./cluster/gce/gci/configure.sh | ./cluster/gce/gci/configure.sh | ||||||
| ./cluster/gce/gci/health-monitor.sh | ./cluster/gce/gci/health-monitor.sh | ||||||
| ./cluster/gce/gci/master-helper.sh | ./cluster/gce/gci/master-helper.sh | ||||||
| ./cluster/gce/gci/mounter/stage-upload.sh |  | ||||||
| ./cluster/gce/upgrade.sh | ./cluster/gce/upgrade.sh | ||||||
| ./cluster/gce/util.sh | ./cluster/gce/util.sh | ||||||
| ./cluster/log-dump/log-dump.sh | ./cluster/log-dump/log-dump.sh | ||||||
| ./cluster/pre-existing/util.sh | ./cluster/pre-existing/util.sh | ||||||
| ./hack/lib/golang.sh |  | ||||||
| ./hack/lib/test.sh |  | ||||||
| ./test/cmd/apply.sh | ./test/cmd/apply.sh | ||||||
| ./test/cmd/apps.sh | ./test/cmd/apps.sh | ||||||
| ./test/cmd/core.sh | ./test/cmd/core.sh | ||||||
|   | |||||||
| @@ -14,6 +14,8 @@ | |||||||
| # See the License for the specific language governing permissions and | # See the License for the specific language governing permissions and | ||||||
| # limitations under the License. | # limitations under the License. | ||||||
|  |  | ||||||
|  | # shellcheck disable=SC2034 # Variables sourced in other scripts. | ||||||
|  |  | ||||||
| # The golang package that we are building. | # The golang package that we are building. | ||||||
| readonly KUBE_GO_PACKAGE=k8s.io/kubernetes | readonly KUBE_GO_PACKAGE=k8s.io/kubernetes | ||||||
| readonly KUBE_GOPATH="${KUBE_OUTPUT}/go" | readonly KUBE_GOPATH="${KUBE_OUTPUT}/go" | ||||||
|   | |||||||
| @@ -14,6 +14,8 @@ | |||||||
| # See the License for the specific language governing permissions and | # See the License for the specific language governing permissions and | ||||||
| # limitations under the License. | # limitations under the License. | ||||||
|  |  | ||||||
|  | # shellcheck disable=SC2034 # Variables sourced in other scripts. | ||||||
|  |  | ||||||
| # A set of helpers for tests | # A set of helpers for tests | ||||||
|  |  | ||||||
| readonly reset=$(tput sgr0) | readonly reset=$(tput sgr0) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user