diff --git a/generator/chart.go b/generator/chart.go index 45f3791..93ff1b0 100644 --- a/generator/chart.go +++ b/generator/chart.go @@ -95,7 +95,7 @@ func (chart *HelmChart) SaveTemplates(templateDir string) { } servicename := template.Servicename - if err := os.MkdirAll(filepath.Join(templateDir, servicename), 0o755); err != nil { + if err := os.MkdirAll(filepath.Join(templateDir, servicename), 0o600); err != nil { fmt.Println(utils.IconFailure, err) os.Exit(1) } @@ -103,7 +103,7 @@ func (chart *HelmChart) SaveTemplates(templateDir string) { // if the name is a path, create the directory if strings.Contains(name, string(filepath.Separator)) { name = filepath.Join(templateDir, name) - err := os.MkdirAll(filepath.Dir(name), 0o755) + err := os.MkdirAll(filepath.Dir(name), 0o600) if err != nil { fmt.Println(utils.IconFailure, err) os.Exit(1) diff --git a/generator/converter.go b/generator/converter.go index 77ceb73..45b90bb 100644 --- a/generator/converter.go +++ b/generator/converter.go @@ -173,7 +173,7 @@ func Convert(config ConvertOptions, dockerComposeFile ...string) error { os.RemoveAll(config.OutputDir) // create the chart directory - if err := os.MkdirAll(templateDir, 0o755); err != nil { + if err := os.MkdirAll(templateDir, 0o600); err != nil { fmt.Println(utils.IconFailure, err) os.Exit(1) }