Add a chart directory

This commit is contained in:
Nikolai Rodionov 2024-07-25 19:34:10 +02:00
parent 6e08510b3d
commit 5b6a503fd1
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,9 @@ func (g *Git) CloneRepo(workdir, gitURL string, dry bool) error {
if err != nil {
return err
}
if err := os.Mkdir(workdir+"/charts", os.ModePerm); err != nil {
return err
}
r, err := git.PlainInit(workdir, false)
if err != nil {
return err

View File

@ -27,7 +27,10 @@ func CreateWorkdir(ctx context.Context, path string) (workdir string, err error)
if err != nil {
return workdir, err
}
}
if err := os.Mkdir(workdir+"/.charts", os.ModePerm); err != nil {
return "", err
}
return workdir, nil
}