Skip to content

Commit

Permalink
fix: Make status.selector field optional (#5985)
Browse files Browse the repository at this point in the history
* make Selector field optional for model status

* generate files
  • Loading branch information
sakoush authored Oct 24, 2024
1 parent 81b3d29 commit 752e489
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,6 @@ spec:
type: integer
selector:
type: string
required:
- selector
type: object
type: object
served: true
Expand Down
2 changes: 0 additions & 2 deletions k8s/yaml/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,6 @@ spec:
type: integer
selector:
type: string
required:
- selector
type: object
type: object
served: true
Expand Down
2 changes: 1 addition & 1 deletion operator/apis/mlops/v1alpha1/model_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ type InferenceArtifactSpec struct {
type ModelStatus struct {
// Total number of replicas targeted by this model
Replicas int32 `json:"replicas,omitempty"`
Selector string `json:"selector"`
Selector string `json:"selector,omitempty"`
duckv1.Status `json:",inline"`
}

Expand Down
2 changes: 0 additions & 2 deletions operator/config/crd/bases/mlops.seldon.io_models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ spec:
type: integer
selector:
type: string
required:
- selector
type: object
type: object
served: true
Expand Down

0 comments on commit 752e489

Please sign in to comment.