feat: remove namespace from generate path

This commit is contained in:
franklin 2021-03-26 14:38:45 +01:00
parent 9a6283e82e
commit 7ac7bb8b46
2 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@ package actions
import (
"github.com/foomo/squadron/util"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

View File

@ -79,7 +79,7 @@ func (sq Squadron) Config() (string, error) {
}
func (sq Squadron) Generate(units map[string]Unit) error {
chartPath := path.Join(sq.basePath, defaultOutputDir, "default", sq.name)
chartPath := path.Join(sq.basePath, defaultOutputDir, sq.name)
// cleanup old files
if err := sq.cleanupOutput(chartPath); err != nil {
return err
@ -109,8 +109,8 @@ func (sq Squadron) Down(helmArgs []string) error {
return err
}
func (sq Squadron) Up(units map[string]Unit, namespace string, helmArgs []string) error {
chartPath := path.Join(sq.basePath, defaultOutputDir, namespace, sq.name)
func (sq Squadron) Up(units map[string]Unit, helmArgs []string) error {
chartPath := path.Join(sq.basePath, defaultOutputDir, sq.name)
// cleanup old files
if err := sq.cleanupOutput(chartPath); err != nil {
return err