fix: comment about permission bits

Kubernetes-commit: fd17dcf3876458229ac15d426eb1bd58f8c52cb4
This commit is contained in:
Khachatur Ashotyan 2023-02-03 13:40:33 +04:00 committed by Kubernetes Publisher
parent 03568a1821
commit 71253f0b35

View File

@ -58,7 +58,7 @@ func canReadFile(path string) bool {
} }
// WriteCert writes the pem-encoded certificate data to certPath. // WriteCert writes the pem-encoded certificate data to certPath.
// The certificate file will be created with file mode 000. // The certificate file will be created with file mode 0600.
// If the certificate file already exists, it will be overwritten. // If the certificate file already exists, it will be overwritten.
// The parent directory of the certPath will be created as needed with file mode 0700. // The parent directory of the certPath will be created as needed with file mode 0700.
func WriteCert(certPath string, data []byte) error { func WriteCert(certPath string, data []byte) error {