mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
Add comment explaining why 0755
This commit is contained in:
committed by
Benjamin Elder
parent
84eac63e7c
commit
475916dd89
@@ -225,6 +225,7 @@ func (nh *nodeHandle) WriteKubeConfig(dest string) error {
|
||||
}
|
||||
|
||||
// create the directory to contain the KUBECONFIG file.
|
||||
// 0755 is taken from client-go's config handling logic: https://github.com/kubernetes/client-go/blob/5d107d4ebc00ee0ea606ad7e39fd6ce4b0d9bf9e/tools/clientcmd/loader.go#L412
|
||||
err = os.MkdirAll(filepath.Dir(dest), 0755)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to create kubeconfig output directory")
|
||||
|
||||
Reference in New Issue
Block a user