mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Ensure the GCI metadata files do not have whitespace at the end
Fixes #36708
This commit is contained in:
parent
641654836b
commit
5ec42e6a25
@ -21,18 +21,12 @@
|
|||||||
# KUBE_TEMP
|
# KUBE_TEMP
|
||||||
function ensure-gci-metadata-files {
|
function ensure-gci-metadata-files {
|
||||||
if [[ ! -f "${KUBE_TEMP}/gci-update.txt" ]]; then
|
if [[ ! -f "${KUBE_TEMP}/gci-update.txt" ]]; then
|
||||||
cat >"${KUBE_TEMP}/gci-update.txt" << EOF
|
echo -n "update_disabled" > "${KUBE_TEMP}/gci-update.txt"
|
||||||
update_disabled
|
|
||||||
EOF
|
|
||||||
fi
|
fi
|
||||||
if [[ ! -f "${KUBE_TEMP}/gci-ensure-gke-docker.txt" ]]; then
|
if [[ ! -f "${KUBE_TEMP}/gci-ensure-gke-docker.txt" ]]; then
|
||||||
cat >"${KUBE_TEMP}/gci-ensure-gke-docker.txt" << EOF
|
echo -n "true" > "${KUBE_TEMP}/gci-ensure-gke-docker.txt"
|
||||||
true
|
|
||||||
EOF
|
|
||||||
fi
|
fi
|
||||||
if [[ ! -f "${KUBE_TEMP}/gci-docker-version.txt" ]]; then
|
if [[ ! -f "${KUBE_TEMP}/gci-docker-version.txt" ]]; then
|
||||||
cat >"${KUBE_TEMP}/gci-docker-version.txt" << EOF
|
echo -n "${GCI_DOCKER_VERSION:-}" > "${KUBE_TEMP}/gci-docker-version.txt"
|
||||||
${GCI_DOCKER_VERSION:-}
|
|
||||||
EOF
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user