mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
fix broken find command
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
6f3765b731
commit
08af9935a5
@ -427,9 +427,9 @@ function install-kube-manifests {
|
||||
tar xzf "${KUBE_HOME}/${manifests_tar}" -C "${dst_dir}" --overwrite
|
||||
local -r kube_addon_registry="${KUBE_ADDON_REGISTRY:-k8s.gcr.io}"
|
||||
if [[ "${kube_addon_registry}" != "k8s.gcr.io" ]]; then
|
||||
find "${dst_dir}" \(-name '*.yaml' -or -name '*.yaml.in'\) -print0 | \
|
||||
find "${dst_dir}" \( -name '*.yaml' -or -name '*.yaml.in' \) -print0 | \
|
||||
xargs -0 sed -ri "s@(image:\s.*)k8s.gcr.io@\1${kube_addon_registry}@"
|
||||
find "${dst_dir}" \(-name '*.manifest' -or -name '*.json'\) -print0 | \
|
||||
find "${dst_dir}" \( -name '*.manifest' -or -name '*.json' \) -print0 | \
|
||||
xargs -0 sed -ri "s@(image\":\s+\")k8s.gcr.io@\1${kube_addon_registry}@"
|
||||
fi
|
||||
cp "${dst_dir}/kubernetes/gci-trusty/gci-configure-helper.sh" "${KUBE_BIN}/configure-helper.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user