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

service_control: Set owner ref for service and add test cases #617

Merged
merged 2 commits into from
Jun 4, 2018
Merged

service_control: Set owner ref for service and add test cases #617

merged 2 commits into from
Jun 4, 2018

Conversation

gaocegege
Copy link
Member

@gaocegege gaocegege commented Jun 1, 2018

Close #616

We do not set owner reference for the service in servicecontrol, thus we can not get all services by the given tfjob. This PR adds the logic and corresponding test cases.

/assign @jlewi


This change is Reviewable

@coveralls
Copy link

coveralls commented Jun 1, 2018

Coverage Status

Coverage increased (+3.3%) to 57.214% when pulling 867931b on gaocegege:test into 0be3b81 on kubeflow:master.

@TravisBuddy
Copy link

Travis tests have failed

Hey @gaocegege,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

2nd Build

gometalinter --config=linter_config.json --vendor ./...
pkg/controller.v2/service_control.go:94:20:warning: this value of err is never used (SA4006) (staticcheck)

3rd Build

gometalinter --config=linter_config.json --vendor ./...
pkg/controller.v2/service_control.go:94:20:warning: this value of err is never used (SA4006) (staticcheck)

travis_time:end:01b0b678:start=1527836234793639017,finish=1527836361889929332,duration=127096290315

@TravisBuddy
Copy link

Travis tests have failed

Hey @gaocegege,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

2nd Build

gometalinter --config=linter_config.json --vendor ./...
dashboard/backend/handler/api_handler.go:1::warning: file is not goimported (goimports)
pkg/controller.v2/service_control.go:94:20:warning: this value of err is never used (SA4006) (staticcheck)

3rd Build

gometalinter --config=linter_config.json --vendor ./...
pkg/controller.v2/service_control.go:94:20:warning: this value of err is never used (SA4006) (staticcheck)

travis_time:end:0553f6bc:start=1527837431053045399,finish=1527837536620799543,duration=105567754144

@TravisBuddy
Copy link

Travis tests have failed

Hey @gaocegege,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

1st Build

gometalinter --config=linter_config.json --vendor ./...
dashboard/backend/handler/api_handler.go:1::warning: file is not goimported (goimports)

travis_time:end:1a62a817:start=1527838652724544354,finish=1527838775865751421,duration=123141207067

2nd Build

gometalinter --config=linter_config.json --vendor ./...
dashboard/backend/handler/api_handler.go:1::warning: file is not goimported (goimports)

@jlewi
Copy link
Contributor

jlewi commented Jun 1, 2018

/lgtm
except for failing tests

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

New changes are detected. LGTM label has been removed.

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

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 93843ed into kubeflow:master Jun 4, 2018
yph152 pushed a commit to yph152/tf-operator that referenced this pull request Jun 18, 2018
…ow#617)

* service_control: Set owner ref for service

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

* service_control: Add err check

Signed-off-by: Ce Gao <gaoce@caicloud.io>
jetmuffin pushed a commit to jetmuffin/tf-operator that referenced this pull request Jul 9, 2018
…ow#617)

* service_control: Set owner ref for service

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

* service_control: Add err check

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.

5 participants