fix(permission): globalize and fixes
Permission alert frop OpenGrep is wrong, as the directory must use 0755. To make things working and to ease futur changes, I set the default permission in a constant.
This commit is contained in:
@@ -14,6 +14,9 @@ import (
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
)
|
||||
|
||||
// Default values for permissions apply to created directories.
|
||||
const DirectoryPermission = 0o755
|
||||
|
||||
// TplName returns the name of the kubernetes resource as a template string.
|
||||
// It is used in the templates and defined in _helper.tpl file.
|
||||
func TplName(serviceName, appname string, suffix ...string) string {
|
||||
|
Reference in New Issue
Block a user