Skip to content

Commit

Permalink
added default root path (#151)
Browse files Browse the repository at this point in the history
Signed-off-by: Piyush Kumar <k17piyush@gmail.com>
  • Loading branch information
kpiyush17 authored Oct 2, 2024
1 parent 02cf3bb commit 5255681
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ import (
)

func GetClusterRootPath(cluster clusterplugin.Cluster) string {
return cluster.ProviderOptions[domain.ClusterRootPath]
rootpath := cluster.ProviderOptions[domain.ClusterRootPath]
if rootpath == "" {
return "/"
}
return rootpath
}

0 comments on commit 5255681

Please sign in to comment.