diff --git a/components/kubeflow/kfserving/OWNERS b/components/kubeflow/kfserving/OWNERS index ace6f341d19..78d93353d16 100644 --- a/components/kubeflow/kfserving/OWNERS +++ b/components/kubeflow/kfserving/OWNERS @@ -2,3 +2,4 @@ approvers: - animeshsingh reviewers: - animeshsingh + - Tomcli diff --git a/components/kubeflow/kfserving/sample-pipeline.py b/components/kubeflow/kfserving/sample-pipeline.py deleted file mode 100644 index ec643a530db..00000000000 --- a/components/kubeflow/kfserving/sample-pipeline.py +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 2019 kubeflow.org. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import kfp.dsl as dsl -from kfp import components -import json - -kfserving_op = components.load_component_from_file('component.yaml') - -@dsl.pipeline( - name='kfserving pipeline', - description='A pipeline for kfserving.' -) -def kfservingPipeline( - action = 'create', - model_name='tensorflow-sample', - default_model_uri='gs://kfserving-samples/models/tensorflow/flowers', - canary_model_uri='gs://kfserving-samples/models/tensorflow/flowers-2', - canary_model_traffic_percentage='10', - namespace='kubeflow', - framework='tensorflow', - default_custom_model_spec='{}', - canary_custom_model_spec='{}', - autoscaling_target=0, - kfserving_endpoint='' -): - - # define workflow - kfserving = kfserving_op(action = action, - model_name=model_name, - default_model_uri=default_model_uri, - canary_model_uri=canary_model_uri, - canary_model_traffic_percentage=canary_model_traffic_percentage, - namespace=namespace, - framework=framework, - default_custom_model_spec=default_custom_model_spec, - canary_custom_model_spec=canary_custom_model_spec, - autoscaling_target=autoscaling_target, - kfserving_endpoint=kfserving_endpoint) - -if __name__ == '__main__': - import kfp.compiler as compiler - compiler.Compiler().compile(kfservingPipeline, __file__ + '.tar.gz')