mantain default behavior of os.FileMode: 0o777

This commit is contained in:
Lorenzo Faresin 2023-12-01 18:19:08 +01:00
parent fe5a8e9a87
commit 7f8c4183e1
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func (p *nfsProvisioner) Provision(ctx context.Context, options controller.Provi
}
}
createMode := os.FileMode(0777)
createMode := os.FileMode(0o777)
annotationCreateMode, exists := metadata.annotations["nfs.io/createMode"]
if exists {
annotationCreateModeUInt, err := strconv.ParseUint(annotationCreateMode, 8, 32)