Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Add common types to kubeflow/common #2

Merged
merged 7 commits into from
Apr 3, 2019

Conversation

richardsliu
Copy link
Contributor

@richardsliu richardsliu commented Apr 2, 2019

Part 1 of kubeflow/training-operator#960

This change is Reviewable

@richardsliu
Copy link
Contributor Author

/assign @johnugeorge
/assign @terrytangyuan

Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

Looks great!
/lgtm
/approve

@k8s-ci-robot
Copy link

@terrytangyuan: changing LGTM is restricted to assignees, and assigning you to the PR failed.

In response to this:

Looks great!
/lgtm
/approve

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

CleanPodPolicy *CleanPodPolicy `json:"cleanPodPolicy,omitempty"`

// TTLSecondsAfterFinished is the TTL to clean up jobs (temporary
// before kubernetes adds the cleanup controller).
Copy link
Contributor

Choose a reason for hiding this comment

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

One nit, we can probably remove this comments now: temporary before kubernetes adds the cleanup controller now.
since the kubernetes has already added this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

// RunPolicy encapsulates various runtime policies of the distributed training
// job, for example how to clean up resources and how long the job can stay
// active.
type RunPolicy struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm up for the idea of a new RunPolicy. One question: Once TFJob spec start to use this RunPolicy, it'll break the API compatibility. Is this the expectation ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The plan is to introduce another API version on TFJob. The current version (v1beta2) will not use this repo.

Also we added support for multiple CRD versions in v0.5, We can also investigate how to use conversion webhooks for API compatibility: kubernetes/enhancements#598. But looks like this feature requires k8s 1.15.

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

@jian-he
Copy link
Contributor

jian-he commented Apr 3, 2019

/lgtm

@k8s-ci-robot
Copy link

@jian-he: changing LGTM is restricted to assignees, and assigning you to the PR failed.

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@gaocegege
Copy link
Member

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gaocegege, terrytangyuan

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

@gaocegege
Copy link
Member

/lgtm

1 similar comment
@johnugeorge
Copy link
Member

/lgtm

@richardsliu richardsliu merged commit a548867 into kubeflow:master Apr 3, 2019
georgkaleido pushed a commit to georgkaleido/common that referenced this pull request Jun 9, 2022
* - added nudging message for old CEP PS plugin

* Update requirements.in

* Update requirements.in

* Update requirements.in

Co-authored-by: Andreas Braumann <brew@brew.at>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Alexander Graf <alex@basecamp.tirol>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants