Do not attempt to create objects for URL ingresses as the ingress service will do so (#3491)
This commit is contained in:
@@ -190,10 +190,8 @@ func (s *IngressService) CreateIngressWithUrl(ctx context.Context, urlStr string
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return info, err
|
return info, err
|
||||||
}
|
}
|
||||||
}
|
// The Ingress instance will create the ingress object when handling the URL pull ingress
|
||||||
|
} else {
|
||||||
// TODO Remove this store Ingress call for URL pull as it is redundant since
|
|
||||||
// the ingress service sends a CreateIngress RPC
|
|
||||||
_, err = s.io.CreateIngress(ctx, info)
|
_, err = s.io.CreateIngress(ctx, info)
|
||||||
switch err {
|
switch err {
|
||||||
case nil:
|
case nil:
|
||||||
@@ -205,6 +203,7 @@ func (s *IngressService) CreateIngressWithUrl(ctx context.Context, urlStr string
|
|||||||
logger.Errorw("could not create ingress object", err)
|
logger.Errorw("could not create ingress object", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return info, nil
|
return info, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user