client-go: change permissions of directories and certs

Kubernetes-commit: c941877438c2219318b0625f5b4e321efe324171
This commit is contained in:
Khachatur Ashotyan
2023-02-17 11:16:46 +04:00
committed by Kubernetes Publisher
parent 71253f0b35
commit be82893604
4 changed files with 8 additions and 8 deletions

View File

@@ -191,7 +191,7 @@ func GenerateSelfSignedCertKeyWithFixtures(host string, alternateIPs []net.IP, a
if err := os.WriteFile(certFixturePath, certBuffer.Bytes(), 0600); err != nil {
return nil, nil, fmt.Errorf("failed to write cert fixture to %s: %v", certFixturePath, err)
}
if err := os.WriteFile(keyFixturePath, keyBuffer.Bytes(), 0600); err != nil {
if err := os.WriteFile(keyFixturePath, keyBuffer.Bytes(), 0644); err != nil {
return nil, nil, fmt.Errorf("failed to write key fixture to %s: %v", certFixturePath, err)
}
}