update ingress interface

This commit is contained in:
ginuerzh committed 2023-11-13 20:40:42 +08:00
1 parent 696d10fc28
commit ca1f44d93c
5 files changed
+26 -17

No files matched your search

+3 -3
View File
@@ -38,11 +38,11 @@ func (w *ingressWrapper) Get(ctx context.Context, host string, opts ...ingress.G
return v.Get(ctx, host, opts...)
}
func (w *ingressWrapper) Set(ctx context.Context, host, endpoint string, opts ...ingress.SetOption) {
func (w *ingressWrapper) Set(ctx context.Context, host, endpoint string, opts ...ingress.SetOption) bool {
v := w.r.get(w.name)
if v == nil {
return
return false
}
v.Set(ctx, host, endpoint, opts...)
return v.Set(ctx, host, endpoint, opts...)
}