Skip to content

Commit

Permalink
Update kserve.py
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusvonkohout committed Oct 5, 2023
1 parent 4261691 commit 17a92cb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/e2e/utils/kserve.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
from kfp import components


def create_serving_task(model_name, model_namespace, tfjob_op, model_volume_op):

api_version = 'serving.kserve.io/v1beta1'
serving_component_url = 'https://raw.githubusercontent.com/kubeflow/pipelines/master/components/kserve/component.yaml'

# Uncomment the following two lines if you are using KFServing v0.6.x or v0.5.x
# api_version = 'serving.kubeflow.org/v1beta1'
# serving_component_url = 'https://raw.githubusercontent.com/kubeflow/pipelines/master/components/kubeflow/kfserving/component.yaml'

inference_service = '''
apiVersion: "{}"
kind: "InferenceService"
Expand All @@ -25,4 +18,4 @@ def create_serving_task(model_name, model_namespace, tfjob_op, model_volume_op):
'''.format(api_version, model_name, model_namespace, str(model_volume_op.outputs["name"]))

serving_launcher_op = components.load_component_from_url(serving_component_url)
serving_launcher_op(action="apply", inferenceservice_yaml=inference_service).after(tfjob_op)
serving_launcher_op(action="apply", inferenceservice_yaml=inference_service).after(tfjob_op)

0 comments on commit 17a92cb

Please sign in to comment.