Skip to content

Commit

Permalink
String type for metric values (#1245)
Browse files Browse the repository at this point in the history
* Change metric type from float to string

* Check unavailable latest objective metric in isTrialObservationAvailable

* Fix e2e test

* Delete consts.UnavailableMetricValue from e2e
  • Loading branch information
andreyvelich authored Jun 30, 2020
1 parent f7cea41 commit 29b797c
Show file tree
Hide file tree
Showing 11 changed files with 337 additions and 137 deletions.
8 changes: 4 additions & 4 deletions pkg/apis/controller/common/v1beta1/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ type MetricStrategy struct {
}

type Metric struct {
Name string `json:"name,omitempty"`
Min float64 `json:"min,omitempty"`
Max float64 `json:"max,omitempty"`
Latest string `json:"latest,omitempty"`
Name string `json:"name,omitempty"`
Min string `json:"min,omitempty"`
Max string `json:"max,omitempty"`
Latest string `json:"latest,omitempty"`
}

// +k8s:deepcopy-gen=true
Expand Down
171 changes: 125 additions & 46 deletions pkg/apis/v1beta1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 29b797c

Please sign in to comment.