Allow creating SRT URL pull ingress (#2416)
This commit is contained in:
@@ -132,7 +132,7 @@ func (s *IngressService) CreateIngressWithUrl(ctx context.Context, urlStr string
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, psrpc.NewError(psrpc.InvalidArgument, err)
|
return nil, psrpc.NewError(psrpc.InvalidArgument, err)
|
||||||
}
|
}
|
||||||
if urlObj.Scheme != "http" && urlObj.Scheme != "https" {
|
if urlObj.Scheme != "http" && urlObj.Scheme != "https" && urlObj.Scheme != "srt" {
|
||||||
return nil, ingress.ErrInvalidIngress(fmt.Sprintf("invalid url scheme %s", urlObj.Scheme))
|
return nil, ingress.ErrInvalidIngress(fmt.Sprintf("invalid url scheme %s", urlObj.Scheme))
|
||||||
}
|
}
|
||||||
// Marshall the URL again for sanitization
|
// Marshall the URL again for sanitization
|
||||||
|
|||||||
Reference in New Issue
Block a user