Skip to content

Commit

Permalink
Update seldondeployment_explainers.go
Browse files Browse the repository at this point in the history
Update explianer to support multi hosts
  • Loading branch information
ooooona authored Mar 12, 2024
1 parent 81b9151 commit 9599dcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operator/controllers/seldondeployment_explainers.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func createExplainerIstioResources(pSvcName string, p *machinelearningv1.Predict
Namespace: namespace,
},
Spec: istio_networking.VirtualService{
Hosts: []string{utils2.GetAnnotation(mlDep, ANNOTATION_ISTIO_HOST, "*")},
Hosts: utils2.GetAnnotations(mlDep, ANNOTATION_ISTIO_HOST, ANNOTATION_ISTIO_HOST_SEPARATOR, "*"),
Gateways: []string{utils2.GetAnnotation(mlDep, ANNOTATION_ISTIO_GATEWAY, istio_gateway)},
Http: []*istio_networking.HTTPRoute{
{
Expand All @@ -349,7 +349,7 @@ func createExplainerIstioResources(pSvcName string, p *machinelearningv1.Predict
Namespace: namespace,
},
Spec: istio_networking.VirtualService{
Hosts: []string{utils2.GetAnnotation(mlDep, ANNOTATION_ISTIO_HOST, "*")},
Hosts: utils2.GetAnnotations(mlDep, ANNOTATION_ISTIO_HOST, ANNOTATION_ISTIO_HOST_SEPARATOR, "*"),
Gateways: []string{utils2.GetAnnotation(mlDep, ANNOTATION_ISTIO_GATEWAY, istio_gateway)},
Http: []*istio_networking.HTTPRoute{
{
Expand Down

0 comments on commit 9599dcd

Please sign in to comment.