diff --git a/pkg/helpers.go b/pkg/helpers.go index d755cc9d9..a05989210 100644 --- a/pkg/helpers.go +++ b/pkg/helpers.go @@ -15,7 +15,6 @@ import ( "time" "github.com/kubefirst/kubefirst/configs" - "github.com/kubefirst/kubefirst/internal/flagset" "github.com/spf13/viper" "golang.org/x/exp/slices" yaml2 "gopkg.in/yaml.v2" @@ -118,6 +117,7 @@ func DetokenizeDirectory(path string, fi os.FileInfo, err error) error { newContents := string(read) config := configs.ReadConfig() + cloudK3d := "k3d" cloud := viper.GetString("cloud") botPublicKey := viper.GetString("botpublickey") hostedZoneId := viper.GetString("aws.hostedzoneid") @@ -232,7 +232,7 @@ func DetokenizeDirectory(path string, fi os.FileInfo, err error) error { newContents = strings.Replace(newContents, "", awsAccountId, -1) } - if cloud == flagset.CloudK3d { + if cloud == cloudK3d { newContents = strings.Replace(newContents, "", cloud, -1) newContents = strings.Replace(newContents, "", config.LocalArgoWorkflowsURL, -1) newContents = strings.Replace(newContents, "", config.LocalVaultURL, -1)