upgrade to istio 1.19 (#1211)

Co-authored-by: CH3CHO <ch3cho@qq.com>
Co-authored-by: rinfx <893383980@qq.com>
This commit is contained in:
澄潭
2024-08-26 09:51:47 +08:00
committed by GitHub
parent a2c2d1d521
commit f7a419770d
401 changed files with 21171 additions and 7255 deletions

View File

@@ -17,20 +17,20 @@ package annotations
import (
"strings"
"istio.io/istio/pilot/pkg/model"
"istio.io/istio/pilot/pkg/model/credentials"
"istio.io/istio/pilot/pkg/util/sets"
"istio.io/istio/pkg/util/sets"
"k8s.io/apimachinery/pkg/types"
)
func extraSecret(name string) model.NamespacedName {
result := model.NamespacedName{}
func extraSecret(name string) types.NamespacedName {
result := types.NamespacedName{}
res := strings.TrimPrefix(name, credentials.KubernetesIngressSecretTypeURI)
split := strings.Split(res, "/")
if len(split) != 3 {
return result
}
return model.NamespacedName{
return types.NamespacedName{
Namespace: split[1],
Name: split[2],
}
@@ -49,6 +49,6 @@ func splitBySeparator(content, separator string) []string {
return result
}
func toSet(slice []string) sets.Set {
return sets.NewSet(slice...)
func toSet(slice []string) sets.Set[string] {
return sets.New[string](slice...)
}