mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Drop -r for variable within loop
using `local -r` will blow up, example output: ``` /home/kubernetes/bin/configure.sh: line 388: local: manifest_name: readonly variable ``` Change-Id: Id379180803d44dd9c7ac0da41c1cd56de0fe54a4
This commit is contained in:
parent
b9615d5bbc
commit
6b06084df6
@ -385,7 +385,7 @@ function load-docker-images {
|
||||
# The resource manifest is expecting something like 'registry/kube-controller-manager:v1.2.3', no arch specified.
|
||||
local -r images=$(docker images --format "{{.Repository}}:{{.Tag}}" | egrep 'kube-apiserver|kube-controller-manager|kube-scheduler|kube-proxy' | grep amd64)
|
||||
for image in $images ; do
|
||||
local -r manifest_name="${image/-amd64/}"
|
||||
local manifest_name="${image/-amd64/}"
|
||||
if ! docker images --format "{{.Repository}}:{{.Tag}}" | grep -q ${manifest_name} ; then
|
||||
docker tag $image $manifest_name
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user