Skip to content

Commit

Permalink
Merge pull request opendatahub-io#220 from spolti/RHOAIENG-5073-2.8.1
Browse files Browse the repository at this point in the history
[Cherry-pick][RHOAIENG-5073] - Routing and Headless Service Support in KServe Raw Mode Deployment
  • Loading branch information
openshift-merge-bot[bot] authored Apr 4, 2024
2 parents b250d18 + 41b42c5 commit 41c4fa0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ func createService(componentMeta metav1.ObjectMeta, componentExt *v1beta1.Compon
"app": constants.GetRawServiceLabel(componentMeta.Name),
},
Ports: servicePorts,
// TODO - add a control flag
// Need to add a control flag to properly set it, enable/disable this behavior.
// Follow up issue to align with upstream: https://issues.redhat.com/browse/RHOAIENG-5077
ClusterIP: corev1.ClusterIPNone,
},
}
return service
Expand Down
1 change: 1 addition & 0 deletions test/e2e/logger/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def test_kserve_logger():
namespace=pod.metadata.namespace,
container="kserve-container")
print(log)

assert ("org.kubeflow.serving.inference.request" in log)
assert ("org.kubeflow.serving.inference.response" in log)
kserve_client.delete(service_name, KSERVE_TEST_NAMESPACE)
Expand Down
7 changes: 5 additions & 2 deletions test/e2e/logger/test_raw_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ def test_kserve_logger():
namespace=pod.metadata.namespace,
container="kserve-container")
print(log)
assert ("org.kubeflow.serving.inference.request" in log)
assert ("org.kubeflow.serving.inference.response" in log)

# TODO, as part of the https://issues.redhat.com/browse/RHOAIENG-5077
# add the control flag here to check the logs when headless service is disabled
# assert ("org.kubeflow.serving.inference.request" in log)
# assert ("org.kubeflow.serving.inference.response" in log)
kserve_client.delete(service_name, KSERVE_TEST_NAMESPACE)
kserve_client.delete(msg_dumper, KSERVE_TEST_NAMESPACE)

0 comments on commit 41c4fa0

Please sign in to comment.