Skip to content

Commit

Permalink
Adds a suffix to the default podman site name
Browse files Browse the repository at this point in the history
  • Loading branch information
fgiorgetti committed Nov 29, 2023
1 parent 61b1962 commit b702f6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/skupper/skupper_podman_site.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"os"
"strings"

"github.com/google/uuid"
"github.com/skupperproject/skupper/api/types"
"github.com/skupperproject/skupper/client/container"
"github.com/skupperproject/skupper/pkg/domain"
Expand Down Expand Up @@ -149,7 +150,8 @@ Recommendation:

func getUserDefaultPodmanName() (string, error) {
hostname, _ := os.Hostname()
return hostname + "-" + strings.ToLower(podman.Username), nil
defaultName := fmt.Sprintf("%s-%s-%s", hostname, strings.ToLower(podman.Username), uuid.NewString()[:5])
return defaultName, nil
}

func (s *SkupperPodmanSite) CreateFlags(cmd *cobra.Command) {
Expand Down

0 comments on commit b702f6d

Please sign in to comment.