mirror of
https://github.com/foomo/squadron.git
synced 2025-10-16 12:35:42 +00:00
feat: remove namespace from generate path
This commit is contained in:
parent
9a6283e82e
commit
7ac7bb8b46
@ -2,6 +2,7 @@ package actions
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/foomo/squadron/util"
|
"github.com/foomo/squadron/util"
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|||||||
@ -79,7 +79,7 @@ func (sq Squadron) Config() (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (sq Squadron) Generate(units map[string]Unit) 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
|
// cleanup old files
|
||||||
if err := sq.cleanupOutput(chartPath); err != nil {
|
if err := sq.cleanupOutput(chartPath); err != nil {
|
||||||
return err
|
return err
|
||||||
@ -109,8 +109,8 @@ func (sq Squadron) Down(helmArgs []string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sq Squadron) Up(units map[string]Unit, namespace string, helmArgs []string) error {
|
func (sq Squadron) Up(units map[string]Unit, helmArgs []string) error {
|
||||||
chartPath := path.Join(sq.basePath, defaultOutputDir, namespace, sq.name)
|
chartPath := path.Join(sq.basePath, defaultOutputDir, sq.name)
|
||||||
// cleanup old files
|
// cleanup old files
|
||||||
if err := sq.cleanupOutput(chartPath); err != nil {
|
if err := sq.cleanupOutput(chartPath); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user