sets.String is deprecated: use generic Set instead. new ways: s1 := Set[string]{} s2 := New[string]() (#9589)
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
This commit is contained in:
parent
1cdd61fb94
commit
ac8dd3dd53
8 changed files with 18 additions and 18 deletions
|
|
@ -177,7 +177,7 @@ type redirect struct {
|
|||
|
||||
// BuildRedirects build the redirects of servers based on configurations and certificates
|
||||
func BuildRedirects(servers []*ingress.Server) []*redirect {
|
||||
names := sets.String{}
|
||||
names := sets.Set[string]{}
|
||||
redirectServers := make([]*redirect, 0)
|
||||
|
||||
for _, srv := range servers {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue