Skip to content

Commit b8cf2f5

Browse files
committed
set protocol https for .Status.Address.URL
Signed-off-by: jooho lee <[email protected]>
1 parent e99da7a commit b8cf2f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/controller/v1beta1/inferenceservice/controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,7 @@ var _ = Describe("v1beta1 inference service controller", func() {
21702170
Host: constants.InferenceServiceHostName(constants.PredictorServiceName(serviceKey.Name), serviceKey.Namespace, domain),
21712171
}))
21722172
Expect(actualIsvc.Status.Address.URL).To(gomega.Equal(&apis.URL{
2173-
Scheme: "http",
2173+
Scheme: "https",
21742174
Host: network.GetServiceHostname(fmt.Sprintf("%s-%s", serviceKey.Name, string(constants.Predictor)), serviceKey.Namespace),
21752175
}))
21762176
})

pkg/controller/v1beta1/inferenceservice/reconcilers/ingress/ingress_reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ func (ir *IngressReconciler) Reconcile(isvc *v1beta1.InferenceService) error {
527527
isvc.Status.Address = &duckv1.Addressable{
528528
URL: &apis.URL{
529529
Host: network.GetServiceHostname(hostPrefix, isvc.Namespace),
530-
Scheme: "http",
530+
Scheme: "https",
531531
},
532532
}
533533
isvc.Status.SetCondition(v1beta1.IngressReady, &apis.Condition{

0 commit comments

Comments
 (0)