Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metrics collector spec and objective spec to Trial #489

Merged
merged 8 commits into from
May 9, 2019

Conversation

richardsliu
Copy link
Contributor

@richardsliu richardsliu commented May 8, 2019

Part of #442

Adding some fields to Trial CRD:

  • ObjectiveSpec: This is needed because the trial needs to store the best objective metric value in trial status. So the trial has to know the objective metric name and type.
  • MetricsCollectorSpec: Raw text representation of the metrics collector. Needed to spawn the corresponding cron job.

This change is Reviewable

@@ -29,6 +29,9 @@ type TrialSpec struct {
// and let the corresponding resource controller (e.g. tf-operator) handle
// the rest.
RunSpec string `json:"runSpec,omitempty"`

// Raw text for the metrics collector spec. This must be a CronJob object.
MetricsCollectorSpec string `json:"metricsCollectorSpec,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add Objective name and type to spec to figure out the best values?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added ObjectiveSpec to Trial.

@richardsliu richardsliu changed the title Add metrics collector spec to Trial spec Add metrics collector spec and objective spec to Trial May 8, 2019
@richardsliu
Copy link
Contributor Author

/assign @johnugeorge

@richardsliu
Copy link
Contributor Author

/assign @gaocegege

@hougangliu
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot removed the lgtm label May 9, 2019
Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@johnugeorge
Copy link
Member

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johnugeorge

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit a38806c into kubeflow:master May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants