Skip to content

Commit

Permalink
refactor: move provider utils to provider repo (#1779)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian authored Mar 17, 2023
1 parent c7ebe4c commit 9096baf
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions sdl/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,3 @@ func ComputeCommittedResources(factor float64, rv atypes.ResourceValue) atypes.R

return result
}

// func AllHostnamesOfManifestGroup(mgroup manifest.Group) []string {
// allHostnames := make([]string, 0)
// for _, service := range mgroup.Services {
// for _, expose := range service.Expose {
// allHostnames = append(allHostnames, expose.Hosts...)
// }
// }
//
// return allHostnames
// }

// func IngressHost(lid mtypes.LeaseID, svcName string) string {
// uid := uuid.NewV5(uuid.NamespaceDNS, lid.String()+svcName).Bytes()
// return strings.ToLower(base32.HexEncoding.WithPadding(base32.NoPadding).EncodeToString(uid))
// }

0 comments on commit 9096baf

Please sign in to comment.