Skip to content

Commit

Permalink
fix: hardcode k3d value
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristhian Fernández authored and Cristhian Fernández committed Nov 4, 2022
1 parent d1f1f9c commit 1b62c14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -232,7 +232,7 @@ func DetokenizeDirectory(path string, fi os.FileInfo, err error) error {
newContents = strings.Replace(newContents, "<AWS_ACCOUNT_ID>", awsAccountId, -1)
}

if cloud == flagset.CloudK3d {
if cloud == cloudK3d {
newContents = strings.Replace(newContents, "<CLOUD>", cloud, -1)
newContents = strings.Replace(newContents, "<ARGO_WORKFLOWS_URL>", config.LocalArgoWorkflowsURL, -1)
newContents = strings.Replace(newContents, "<VAULT_URL>", config.LocalVaultURL, -1)
Expand Down

0 comments on commit 1b62c14

Please sign in to comment.