Commit f826e11c authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #38727 from Amey-D/gci-metadata-eof

Automatic merge from submit-queue Ensure the GCI metadata files do not have newline at the end Fixes #36708 @dchen1107 @Random-Liu can one of you help with the review? cc @kubernetes/goog-image FYI
parents aca523f5 5ec42e6a
...@@ -21,18 +21,12 @@ ...@@ -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
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment