Skip to content

Commit

Permalink
remove unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Nov 14, 2024
1 parent e48c687 commit f653365
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions ziti/cmd/edge/quickstart.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"io"
"net"
"net/http"
"net/url"
"os"
"os/signal"
"os/user"
Expand Down Expand Up @@ -73,7 +72,6 @@ type QuickstartOpts struct {
verbose bool
nonVoter bool
routerless bool
ha bool
}

func addCommonQuickstartFlags(cmd *cobra.Command, options *QuickstartOpts) {
Expand Down Expand Up @@ -665,27 +663,6 @@ func (o *QuickstartOpts) instHome() string {
return path.Join(o.Home, o.InstanceID)
}

var configuredTrustDomain = fmt.Sprintf("spiffe://%s", uuid.New().String())

func (o *QuickstartOpts) trustDomaina() string {
if strings.TrimSpace(o.TrustDomain) != "" {
spiffeId, err := url.Parse(o.TrustDomain)
if spiffeId == nil || err != nil {
logrus.Fatal("spiffe id is invalid: " + o.TrustDomain)
return "" // placate the foolish warning checker that doesn't realize Fatal is 'fatal'
}
if spiffeId.Scheme != "" && spiffeId.Scheme != "spiffe" {
logrus.Fatal("spiffe id scheme is invalid: " + spiffeId.Scheme)
}
configuredTrustDomain = fmt.Sprintf("spiffe://%s", spiffeId.Hostname())
configuredTrustDomain = strings.TrimSuffix(configuredTrustDomain, "/")
} else {
logrus.Fatal("trust domain is invalid: " + o.TrustDomain)
}

return configuredTrustDomain
}

func (o *QuickstartOpts) configureOverlay() {
if o.joinCommand {
return
Expand Down

0 comments on commit f653365

Please sign in to comment.