Skip to content

Commit

Permalink
Inferencegraph sdk update (kubeflow#2341)
Browse files Browse the repository at this point in the history
* Generate Inferencegraph apis (kubeflow#2226)

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>

* Generate python models for inferencegraph (kubeflow#2226)

* Add inferencegraph models to python sdk
* Update python sdk README

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>

* Add inferencegraph apis to python sdk (kubeflow#2226)

* Add create inferencegraph method
* Add delete inferencegraph method

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>

* Add inferencegraph apis to python sdk (kubeflow#2226)

* Add inferencegraph ready method
* Add wait for inferencegraph ready method
* Add get inferencegraph method

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>

* Add e2e test for inferencegraph (kubeflow#2226)

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>

* Lint check fix

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>

* Fixed test errors

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>
  • Loading branch information
andyi2it authored Jul 19, 2022
1 parent 6b5f3b9 commit c5c645f
Show file tree
Hide file tree
Showing 45 changed files with 2,880 additions and 40 deletions.
3 changes: 3 additions & 0 deletions hack/violation_exceptions.list
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
API rule violation: list_type_missing,./pkg/apis/serving/v1alpha1,BuiltInAdapter,Env
API rule violation: list_type_missing,./pkg/apis/serving/v1alpha1,InferenceGraphList,Items
API rule violation: list_type_missing,./pkg/apis/serving/v1alpha1,InferenceRouter,Steps
API rule violation: list_type_missing,./pkg/apis/serving/v1alpha1,ServingRuntimePodSpec,Containers
API rule violation: list_type_missing,./pkg/apis/serving/v1alpha1,ServingRuntimePodSpec,Tolerations
API rule violation: list_type_missing,./pkg/apis/serving/v1alpha1,ServingRuntimePodSpec,Volumes
Expand All @@ -17,6 +18,8 @@ API rule violation: list_type_missing,./pkg/apis/serving/v1beta1,PodSpec,Readine
API rule violation: list_type_missing,./pkg/apis/serving/v1beta1,PodSpec,Tolerations
API rule violation: list_type_missing,./pkg/apis/serving/v1beta1,PodSpec,Volumes
API rule violation: list_type_missing,./pkg/apis/serving/v1beta1,PredictorConfig,SupportedFrameworks
API rule violation: names_match,./pkg/apis/serving/v1alpha1,InferenceStep,StepName
API rule violation: names_match,./pkg/apis/serving/v1alpha1,InferenceTarget,ServiceURL
API rule violation: names_match,./pkg/apis/serving/v1alpha1,ModelSpec,StorageURI
API rule violation: names_match,./pkg/apis/serving/v1alpha1,ServingRuntimeSpec,GrpcMultiModelManagementEndpoint
API rule violation: names_match,./pkg/apis/serving/v1beta1,ComponentExtensionSpec,TimeoutSeconds
Expand Down
5 changes: 1 addition & 4 deletions pkg/apis/serving/v1alpha1/inference_graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type InferenceGraph struct {
}

// InferenceGraphSpec defines the InferenceGraph spec
// +k8s:openapi-gen=true
type InferenceGraphSpec struct {
// Map of InferenceGraph router nodes
// Each node defines the router which can be different routing types
Expand Down Expand Up @@ -70,7 +71,6 @@ const (
)

// +k8s:openapi-gen=true

// InferenceRouter defines the router for each InferenceGraph node with one or multiple steps
//
// ```yaml
Expand Down Expand Up @@ -190,7 +190,6 @@ type InferenceRouter struct {

// +k8s:openapi-gen=true
// Exactly one InferenceTarget field must be specified

type InferenceTarget struct {
// The node name for routing as next step
// +optional
Expand All @@ -206,7 +205,6 @@ type InferenceTarget struct {

// InferenceStep defines the inference target of the current step with condition, weights and data.
// +k8s:openapi-gen=true

type InferenceStep struct {
// Unique name for the step within this node
// +optional
Expand All @@ -233,7 +231,6 @@ type InferenceStep struct {

// InferenceGraphStatus defines the InferenceGraph conditions and status
// +k8s:openapi-gen=true

type InferenceGraphStatus struct {
// Conditions for InferenceGraph
duckv1.Status `json:",inline"`
Expand Down
Loading

0 comments on commit c5c645f

Please sign in to comment.