Skip to content

Commit

Permalink
Merge pull request #288 from spolti/RHOAIENG-5073-0.11.1
Browse files Browse the repository at this point in the history
[RHOAIENG-5073] - Routing and Headless Service Support in KServe Raw Mode Deployment
  • Loading branch information
openshift-merge-bot[bot] authored Apr 5, 2024
2 parents d77710b + 8f1b775 commit 7bc82f2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,10 @@ kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.
$(KUSTOMIZE): $(LOCALBIN)
test -s $(LOCALBIN)/kustomize || { curl -Ss $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN); }

ENVTEST_PACKAGE_VERSION = v0.0.0-20240320141353-395cfc7486e6
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
$(ENVTEST): $(LOCALBIN)
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(ENVTEST_PACKAGE_VERSION)

apidocs:
docker buildx build -f docs/apis/Dockerfile --rm -t apidocs-gen . && \
Expand Down
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 7bc82f2

Please sign in to comment.