update ingress interface

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

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...)
}