Skip to content

Commit

Permalink
feat: SKIP_ARGOCD_LAUNCH env var set to true will suppress argocd lau…
Browse files Browse the repository at this point in the history
…nch when development (#2080)

* feat: SKIP_ARGOCD_LAUNCH env var set to true will suppress argocd launch when development

* feat: export SKIP_ARGOCD_LAUNCH=true will suppress argocd launching when development
  • Loading branch information
johndietz authored Feb 6, 2024
1 parent 1360f6a commit c13e11f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions cmd/k3d/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -1004,9 +1004,11 @@ func runK3d(cmd *cobra.Command, args []string) error {
log.Error().Err(err).Msg("")
}

err = pkg.OpenBrowser(pkg.ArgoCDLocalURLTLS)
if err != nil {
log.Error().Err(err).Msg("")
if os.Getenv("SKIP_ARGOCD_LAUNCH") != "true" {
err = pkg.OpenBrowser(pkg.ArgoCDLocalURLTLS)
if err != nil {
log.Error().Err(err).Msg("")
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/launch/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const (
helmChartName = "kubefirst"
helmChartRepoName = "kubefirst"
helmChartRepoURL = "https://charts.kubefirst.com"
helmChartVersion = "2.3.8-rc44"
helmChartVersion = "2.3.8-rc49"
namespace = "kubefirst"
secretName = "kubefirst-initial-secrets"
)

0 comments on commit c13e11f

Please sign in to comment.