Merge pull request #96622 from vinayakankugoyal/groupfix

If the file already exists we need to grant group read permissions ex…
This commit is contained in:
Kubernetes Prow Robot
2020-12-08 17:29:59 -08:00
committed by GitHub

View File

@@ -622,6 +622,7 @@ function write-pki-data {
if [[ -n "${KUBE_PKI_READERS_GROUP:-}" ]]; then
(umask 027; echo "${data}" | base64 --decode > "${path}")
chgrp "${KUBE_PKI_READERS_GROUP:-}" "${path}"
chmod g+r "${path}"
else
(umask 077; echo "${data}" | base64 --decode > "${path}")
fi