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

*: Set name for the pod tfjob.name-type-index #636

Merged
merged 3 commits into from
Jun 12, 2018
Merged

*: Set name for the pod tfjob.name-type-index #636

merged 3 commits into from
Jun 12, 2018

Conversation

gaocegege
Copy link
Member

@gaocegege gaocegege commented Jun 12, 2018

Closes #633

Before the PR, we use RealPodControl in Kubernetes code base to create pod with the given TFJob, and it uses the name of TFJob as the prefix of the pod created, which does not meet our need. Thus I implement the pod control on our own and remove the logic about the name. Now we set the name for the pod template and it will be used to create pods.


This change is Reviewable

Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
@coveralls
Copy link

coveralls commented Jun 12, 2018

Coverage Status

Coverage decreased (-1.8%) to 55.947% when pulling d508609 on gaocegege:name into 76661c0 on kubeflow:master.

@gaocegege
Copy link
Member Author

/retest

Signed-off-by: Ce Gao <gaoce@caicloud.io>
@gaocegege gaocegege changed the title WIP: *: Set name for the pod tfjob.name-type-index *: Set name for the pod tfjob.name-type-index Jun 12, 2018
@gaocegege
Copy link
Member Author

/assign @jlewi

@jlewi
Copy link
Contributor

jlewi commented Jun 12, 2018

Thanks for the quick fix!
/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jlewi

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 16b2a7a into kubeflow:master Jun 12, 2018
yph152 pushed a commit to yph152/tf-operator that referenced this pull request Jun 18, 2018
* .gitignore: Ignore binary in root

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* *: Implement pod control to use name directly

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* pkg: Add test cases for pod_control

Signed-off-by: Ce Gao <gaoce@caicloud.io>
jetmuffin pushed a commit to jetmuffin/tf-operator that referenced this pull request Jul 9, 2018
* .gitignore: Ignore binary in root

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* *: Implement pod control to use name directly

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* pkg: Add test cases for pod_control

Signed-off-by: Ce Gao <gaoce@caicloud.io>
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.

v1alpha2 - pod names don't include replica type
4 participants