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

delete pdb when tfjob is terminated #721

Merged
merged 4 commits into from
Jul 11, 2018
Merged

delete pdb when tfjob is terminated #721

merged 4 commits into from
Jul 11, 2018

Conversation

ChanYiLin
Copy link
Member

@ChanYiLin ChanYiLin commented Jul 10, 2018

As title, we should also delete pdb when tfjob is terminated.


This change is Reviewable

@ChanYiLin
Copy link
Member Author

/assign @gaocegege
Could you help me to check it, thanks!

@gaocegege
Copy link
Member

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gaocegege

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

@TravisBuddy
Copy link

Travis tests have failed

Hey @ChanYiLin,
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/controller_tfjob.go:69:99:warning: unused variable or constant undeclared name: metav1 (varcheck)
pkg/controller.v2/controller_tfjob.go:69:99:warning: unused variable or constant cannot use (metav1.GetOptions literal) (value with invalid type) as github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Get (varcheck)
pkg/controller.v2/controller_tfjob.go:70:19:warning: unused variable or constant undeclared name: k8serrors (varcheck)
pkg/controller.v2/controller_tfjob.go:80:90:warning: unused variable or constant undeclared name: tfjob (varcheck)
pkg/controller.v2/controller_tfjob.go:69:99:warning: undeclared name: metav1 (unconvert)
pkg/controller.v2/controller_tfjob.go:69:66:warning: error return value not checked (undeclared name: tfjob) (errcheck)
pkg/controller.v2/controller_tfjob.go:81:94:warning: error return value not checked (too many arguments) (errcheck)
pkg/controller.v2/controller_tfjob.go:69:66:warning: unused variable or constant undeclared name: tfjob (varcheck)
pkg/controller.v2/controller_tfjob.go:84:94:warning: undeclared name: tfjob (unconvert)
pkg/controller.v2/controller_tfjob.go:80:102:warning: unused variable or constant cannot use (metav1.GetOptions literal) (value with invalid type) as *github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Delete (varcheck)
pkg/controller.v2/controller_tfjob.go:81:94:warning: unused variable or constant too many arguments (varcheck)
pkg/controller.v2/controller_tfjob.go:69:66:warning: undeclared name: tfjob (gosimple, staticcheck, unconvert)
pkg/controller.v2/controller_tfjob.go:80:66:warning: undeclared name: tfjob (unconvert)
pkg/controller.v2/controller_tfjob.go:80:102:warning: undeclared name: metav1 (unconvert)
pkg/controller.v2/controller_tfjob.go:80:102:warning: cannot use (metav1.GetOptions literal) (value with invalid type) as *github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Delete (unconvert)
pkg/controller.v2/controller_tfjob.go:80:90:warning: undeclared name: tfjob (unconvert)
pkg/controller.v2/controller.go:1::warning: file is not goimported (goimports)
pkg/controller.v2/controller_tfjob.go:80:66:warning: unused variable or constant undeclared name: tfjob (varcheck)
pkg/controller.v2/controller_tfjob.go:80:90:warning: error return value not checked (undeclared name: tfjob) (errcheck)
pkg/controller.v2/controller_tfjob.go:84:94:warning: unused variable or constant undeclared name: tfjob (varcheck)
pkg/controller.v2/controller_tfjob.go:69:87:warning: unused variable or constant undeclared name: tfjob (varcheck)
pkg/controller.v2/controller_tfjob.go:69:99:warning: cannot use (metav1.GetOptions literal) (value with invalid type) as github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Get (unconvert)
pkg/controller.v2/controller_tfjob.go:70:19:warning: undeclared name: k8serrors (unconvert)
pkg/controller.v2/controller_tfjob.go:69:99:warning: error return value not checked (undeclared name: metav1) (errcheck)
pkg/controller.v2/controller_tfjob.go:80:66:warning: error return value not checked (undeclared name: tfjob) (errcheck)
pkg/controller.v2/controller_tfjob.go:69:99:warning: error return value not checked (cannot use (metav1.GetOptions literal) (value with invalid type) as github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Get) (errcheck)
pkg/controller.v2/controller_tfjob.go:80:102:warning: error return value not checked (cannot use (metav1.GetOptions literal) (value with invalid type) as *github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Delete) (errcheck)
pkg/controller.v2/controller_tfjob.go:84:94:warning: error return value not checked (undeclared name: tfjob) (errcheck)
pkg/controller.v2/controller_tfjob.go:80:102:warning: unused variable or constant undeclared name: metav1 (varcheck)
pkg/controller.v2/controller_tfjob.go:69:87:warning: undeclared name: tfjob (unconvert)
pkg/controller.v2/controller_tfjob.go:69:87:warning: error return value not checked (undeclared name: tfjob) (errcheck)
pkg/controller.v2/controller_tfjob.go:70:19:warning: error return value not checked (undeclared name: k8serrors) (errcheck)
pkg/controller.v2/controller_tfjob.go:1::warning: file is not goimported (goimports)
pkg/controller.v2/controller_tfjob.go:81:94:warning: too many arguments (unconvert)
pkg/controller.v2/controller_tfjob.go:80:102:warning: error return value not checked (undeclared name: metav1) (errcheck)
goveralls -service=travis-ci -v -package ./pkg/... -ignore "pkg/client/*/*.go,pkg/client/*/*/*.go,pkg/client/*/*/*/*.go,pkg/client/*/*/*/*/*.go,pkg/client/*/*/*/*/*/*.go,pkg/client/*/*/*/*/*/*/*.go,pkg/util/testutil/*.go,pkg/apis/tensorflow/*/zz_generated.*.go,pkg/apis/tensorflow/*/*_generated.go"
FAIL	github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper [build failed]
exit status 2: warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/clientset/versioned
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/informers/externalversions
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/control
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/controller
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/controller.v2
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/generator
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/trainer
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/util/k8sutil
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/util/signals
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/util/testutil
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/util/train
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/util/unstructured
warning: no packages being tested depend on github.com/kubeflow/tf-operator/pkg/version
# github.com/kubeflow/tf-operator/pkg/controller.v2
/tmp/go-build756884371/github.com/kubeflow/tf-operator/pkg/controller.v2/_obj/controller_tfjob.go:77:66: undefined: tfjob
/tmp/go-build756884371/github.com/kubeflow/tf-operator/pkg/controller.v2/_obj/controller_tfjob.go:77:99: undefined: metav1
/tmp/go-build756884371/github.com/kubeflow/tf-operator/pkg/controller.v2/_obj/controller_tfjob.go:78:19: undefined: k8serrors
/tmp/go-build756884371/github.com/kubeflow/tf-operator/pkg/controller.v2/_obj/controller_tfjob.go:90:66: undefined: tfjob
/tmp/go-build756884371/github.com/kubeflow/tf-operator/pkg/controller.v2/_obj/controller_tfjob.go:90:102: undefined: metav1
/tmp/go-build756884371/github.com/kubeflow/tf-operator/pkg/controller.v2/_obj/controller_tfjob.go:92:20: too many arguments in call to tc.recorder.Event
	have (*"github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2".TFJob, string, string, string, error)
	want ("github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/runtime".Object, string, string, string)
/tmp/go-build756884371/github.com/kubeflow/tf-operator/pkg/controller.v2/_obj/controller_tfjob.go:96:20: too many arguments in call to tc.recorder.Event
/tmp/go-build756884371/github.com/kubeflow/tf-operator/pkg/controller.v2/_obj/controller_tfjob.go:96:94: undefined: tfjob

3rd Build

gometalinter --config=linter_config.json --vendor ./...
pkg/controller.v2/controller_tfjob.go:80:102:error: undefined: metav1 (vet, vet)
pkg/controller.v2/controller_tfjob.go:84:20:error: too many arguments in call to tc.recorder.Event (vet, vet)
pkg/controller.v2/controller_tfjob.go:69:99:warning: unused variable or constant undeclared name: metav1 (varcheck)
pkg/controller.v2/controller_tfjob.go:69:66:warning: undeclared name: tfjob (gosimple, staticcheck, unconvert)
pkg/controller.v2/controller_tfjob.go:69:87:warning: undeclared name: tfjob (unconvert)
pkg/controller.v2/controller.go:1::warning: file is not goimported (goimports)
pkg/controller.v2/controller_tfjob.go:69:87:warning: error return value not checked (undeclared name: tfjob) (errcheck)
pkg/controller.v2/controller_tfjob.go:69:99:warning: error return value not checked (undeclared name: metav1) (errcheck)
pkg/controller.v2/controller_tfjob.go:81:20:error: too many arguments in call to tc.recorder.Event (vet, vet)
pkg/controller.v2/controller_tfjob.go:84:94:error: undefined: tfjob (vet, vet)
pkg/controller.v2/controller_tfjob.go:69:87:warning: unused variable or constant undeclared name: tfjob (varcheck)
pkg/controller.v2/controller_tfjob.go:80:66:warning: undeclared name: tfjob (unconvert)
pkg/controller.v2/controller_tfjob.go:84:94:warning: undeclared name: tfjob (unconvert)
pkg/controller.v2/controller_tfjob.go:1::warning: file is not goimported (goimports)
pkg/controller.v2/controller_tfjob.go:70:19:warning: error return value not checked (undeclared name: k8serrors) (errcheck)
pkg/controller.v2/controller_tfjob.go:69:99:error: undefined: metav1 (vet, vet)
pkg/controller.v2/controller_tfjob.go:69:99:warning: undeclared name: metav1 (unconvert)
pkg/controller.v2/controller_tfjob.go:80:90:warning: undeclared name: tfjob (unconvert)
pkg/controller.v2/controller_tfjob.go:80:102:warning: cannot use (metav1.GetOptions literal) (value with invalid type) as *github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Delete (unconvert)
pkg/controller.v2/controller_tfjob.go:80:66:warning: error return value not checked (undeclared name: tfjob) (errcheck)
pkg/controller.v2/controller_tfjob.go:84:94:warning: error return value not checked (undeclared name: tfjob) (errcheck)
pkg/controller.v2/controller_tfjob.go:80:102:warning: undeclared name: metav1 (unconvert)
pkg/controller.v2/controller_tfjob.go:70:19:error: undefined: k8serrors (vet, vet)
pkg/controller.v2/controller_tfjob.go:70:19:warning: unused variable or constant undeclared name: k8serrors (varcheck)
pkg/controller.v2/controller_tfjob.go:81:94:warning: unused variable or constant too many arguments (varcheck)
pkg/controller.v2/controller_tfjob.go:81:94:warning: error return value not checked (too many arguments) (errcheck)
pkg/controller.v2/controller_tfjob.go:69:99:warning: cannot use (metav1.GetOptions literal) (value with invalid type) as github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Get (unconvert)
pkg/controller.v2/controller_tfjob.go:81:94:warning: too many arguments (unconvert)
pkg/controller.v2/controller_tfjob.go:69:66:warning: error return value not checked (undeclared name: tfjob) (errcheck)
pkg/controller.v2/controller_tfjob.go:69:99:warning: error return value not checked (cannot use (metav1.GetOptions literal) (value with invalid type) as github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Get) (errcheck)
pkg/controller.v2/controller_tfjob.go:80:90:warning: error return value not checked (undeclared name: tfjob) (errcheck)
pkg/controller.v2/controller_tfjob.go:69:66:error: undefined: tfjob (vet, vet)
pkg/controller.v2/controller_tfjob.go:80:66:warning: unused variable or constant undeclared name: tfjob (varcheck)
pkg/controller.v2/controller_tfjob.go:80:90:warning: unused variable or constant undeclared name: tfjob (varcheck)
pkg/controller.v2/controller_tfjob.go:80:102:warning: unused variable or constant undeclared name: metav1 (varcheck)
pkg/controller.v2/controller_tfjob.go:80:102:warning: unused variable or constant cannot use (metav1.GetOptions literal) (value with invalid type) as *github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Delete (varcheck)
pkg/controller.v2/controller_tfjob.go:84:94:warning: unused variable or constant undeclared name: tfjob (varcheck)
pkg/controller.v2/controller_tfjob.go:70:19:warning: undeclared name: k8serrors (unconvert)
pkg/controller.v2/controller_tfjob.go:80:102:warning: error return value not checked (undeclared name: metav1) (errcheck)
pkg/controller.v2/controller_tfjob.go:80:66:error: undefined: tfjob (vet, vet)
pkg/controller.v2/controller_tfjob.go:69:66:warning: unused variable or constant undeclared name: tfjob (varcheck)
pkg/controller.v2/controller_tfjob.go:69:99:warning: unused variable or constant cannot use (metav1.GetOptions literal) (value with invalid type) as github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Get (varcheck)
pkg/controller.v2/controller_tfjob.go:80:102:warning: error return value not checked (cannot use (metav1.GetOptions literal) (value with invalid type) as *github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions value in argument to tc.kubeClientSet.PolicyV1beta1().PodDisruptionBudgets(tfjob.Namespace).Delete) (errcheck)
goveralls -service=travis-ci -v -package ./pkg/... -ignore "pkg/client/*/*.go,pkg/client/*/*/*.go,pkg/client/*/*/*/*.go,pkg/client/*/*/*/*/*.go,pkg/client/*/*/*/*/*/*.go,pkg/client/*/*/*/*/*/*/*.go,pkg/util/testutil/*.go,pkg/apis/tensorflow/*/zz_generated.*.go,pkg/apis/tensorflow/*/*_generated.go"
=== RUN   TestAddAccelertor
--- PASS: TestAddAccelertor (0.00s)
PASS
coverage: 8.4% of statements in github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/control, github.com/kubeflow/tf-operator/pkg/controller, github.com/kubeflow/tf-operator/pkg/controller.v2, github.com/kubeflow/tf-operator/pkg/generator, github.com/kubeflow/tf-operator/pkg/trainer, github.com/kubeflow/tf-operator/pkg/util, github.com/kubeflow/tf-operator/pkg/util/k8sutil, github.com/kubeflow/tf-operator/pkg/util/signals, github.com/kubeflow/tf-operator/pkg/util/testutil, github.com/kubeflow/tf-operator/pkg/util/train, github.com/kubeflow/tf-operator/pkg/util/unstructured, github.com/kubeflow/tf-operator/pkg/version
ok  	github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper	0.030s	coverage: 8.4% of statements in github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/control, github.com/kubeflow/tf-operator/pkg/controller, github.com/kubeflow/tf-operator/pkg/controller.v2, github.com/kubeflow/tf-operator/pkg/generator, github.com/kubeflow/tf-operator/pkg/trainer, github.com/kubeflow/tf-operator/pkg/util, github.com/kubeflow/tf-operator/pkg/util/k8sutil, github.com/kubeflow/tf-operator/pkg/util/signals, github.com/kubeflow/tf-operator/pkg/util/testutil, github.com/kubeflow/tf-operator/pkg/util/train, github.com/kubeflow/tf-operator/pkg/util/unstructured, github.com/kubeflow/tf-operator/pkg/version
=== RUN   TestSetDefaults_TFJob
--- PASS: TestSetDefaults_TFJob (0.00s)
PASS
coverage: 6.5% of statements in github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/control, github.com/kubeflow/tf-operator/pkg/controller, github.com/kubeflow/tf-operator/pkg/controller.v2, github.com/kubeflow/tf-operator/pkg/generator, github.com/kubeflow/tf-operator/pkg/trainer, github.com/kubeflow/tf-operator/pkg/util, github.com/kubeflow/tf-operator/pkg/util/k8sutil, github.com/kubeflow/tf-operator/pkg/util/signals, github.com/kubeflow/tf-operator/pkg/util/testutil, github.com/kubeflow/tf-operator/pkg/util/train, github.com/kubeflow/tf-operator/pkg/util/unstructured, github.com/kubeflow/tf-operator/pkg/version
ok  	github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1	0.030s	coverage: 6.5% of statements in github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/control, github.com/kubeflow/tf-operator/pkg/controller, github.com/kubeflow/tf-operator/pkg/controller.v2, github.com/kubeflow/tf-operator/pkg/generator, github.com/kubeflow/tf-operator/pkg/trainer, github.com/kubeflow/tf-operator/pkg/util, github.com/kubeflow/tf-operator/pkg/util/k8sutil, github.com/kubeflow/tf-operator/pkg/util/signals, github.com/kubeflow/tf-operator/pkg/util/testutil, github.com/kubeflow/tf-operator/pkg/util/train, github.com/kubeflow/tf-operator/pkg/util/unstructured, github.com/kubeflow/tf-operator/pkg/version
=== RUN   TestSetTypeNames
--- PASS: TestSetTypeNames (0.00s)
=== RUN   TestSetDefaultTFJob
--- PASS: TestSetDefaultTFJob (0.00s)
PASS
coverage: 22.0% of statements in github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/control, github.com/kubeflow/tf-operator/pkg/controller, github.com/kubeflow/tf-operator/pkg/controller.v2, github.com/kubeflow/tf-operator/pkg/generator, github.com/kubeflow/tf-operator/pkg/trainer, github.com/kubeflow/tf-operator/pkg/util, github.com/kubeflow/tf-operator/pkg/util/k8sutil, github.com/kubeflow/tf-operator/pkg/util/signals, github.com/kubeflow/tf-operator/pkg/util/testutil, github.com/kubeflow/tf-operator/pkg/util/train, github.com/kubeflow/tf-operator/pkg/util/unstructured, github.com/kubeflow/tf-operator/pkg/version
ok  	github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2	0.052s	coverage: 22.0% of statements in github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/control, github.com/kubeflow/tf-operator/pkg/controller, github.com/kubeflow/tf-operator/pkg/controller.v2, github.com/kubeflow/tf-operator/pkg/generator, github.com/kubeflow/tf-operator/pkg/trainer, github.com/kubeflow/tf-operator/pkg/util, github.com/kubeflow/tf-operator/pkg/util/k8sutil, github.com/kubeflow/tf-operator/pkg/util/signals, github.com/kubeflow/tf-operator/pkg/util/testutil, github.com/kubeflow/tf-operator/pkg/util/train, github.com/kubeflow/tf-operator/pkg/util/unstructured, github.com/kubeflow/tf-operator/pkg/version
=== RUN   TestValidateAlphaTwoTFJobSpec
time="2018-07-10T02:52:49Z" level=warning msg="Image is undefined in the container"
time="2018-07-10T02:52:49Z" level=warning msg="There is no container named tensorflow in Worker"
--- PASS: TestValidateAlphaTwoTFJobSpec (0.00s)
=== RUN   TestValidate
--- PASS: TestValidate (0.00s)
PASS
coverage: 12.2% of statements in github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/control, github.com/kubeflow/tf-operator/pkg/controller, github.com/kubeflow/tf-operator/pkg/controller.v2, github.com/kubeflow/tf-operator/pkg/generator, github.com/kubeflow/tf-operator/pkg/trainer, github.com/kubeflow/tf-operator/pkg/util, github.com/kubeflow/tf-operator/pkg/util/k8sutil, github.com/kubeflow/tf-operator/pkg/util/signals, github.com/kubeflow/tf-operator/pkg/util/testutil, github.com/kubeflow/tf-operator/pkg/util/train, github.com/kubeflow/tf-operator/pkg/util/unstructured, github.com/kubeflow/tf-operator/pkg/version
ok  	github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation	0.031s	coverage: 12.2% of statements in github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/control, github.com/kubeflow/tf-operator/pkg/controller, github.com/kubeflow/tf-operator/pkg/controller.v2, github.com/kubeflow/tf-operator/pkg/generator, github.com/kubeflow/tf-operator/pkg/trainer, github.com/kubeflow/tf-operator/pkg/util, github.com/kubeflow/tf-operator/pkg/util/k8sutil, github.com/kubeflow/tf-operator/pkg/util/signals, github.com/kubeflow/tf-operator/pkg/util/testutil, github.com/kubeflow/tf-operator/pkg/util/train, github.com/kubeflow/tf-operator/pkg/util/unstructured, github.com/kubeflow/tf-operator/pkg/version
?   	github.com/kubeflow/tf-operator/pkg/client/clientset/versioned	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/informers/externalversions	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1	[no test files]
?   	github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2	[no test files]
=== RUN   TestCreatePods
--- PASS: TestCreatePods (0.01s)
=== RUN   TestCreateService
time="2018-07-10T02:53:01Z" level=info msg="Controller test-tfjob created service empty_service"
--- PASS: TestCreateService (0.00s)
=== RUN   TestCreateServicesWithControllerRef
time="2018-07-10T02:53:01Z" level=info msg="Controller test-tfjob created service empty_service"
--- PASS: TestCreateServicesWithControllerRef (0.00s)
=== RUN   TestClaimServices
--- PASS: TestClaimServices (0.00s)
PASS
coverage: 44.9% of statements in github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/control, github.com/kubeflow/tf-operator/pkg/controller, github.com/kubeflow/tf-operator/pkg/controller.v2, github.com/kubeflow/tf-operator/pkg/generator, github.com/kubeflow/tf-operator/pkg/trainer, github.com/kubeflow/tf-operator/pkg/util, github.com/kubeflow/tf-operator/pkg/util/k8sutil, github.com/kubeflow/tf-operator/pkg/util/signals, github.com/kubeflow/tf-operator/pkg/util/testutil, github.com/kubeflow/tf-operator/pkg/util/train, github.com/kubeflow/tf-operator/pkg/util/unstructured, github.com/kubeflow/tf-operator/pkg/version
ok  	github.com/kubeflow/tf-operator/pkg/control	0.057s	coverage: 44.9% of statements in github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha1, github.com/kubeflow/tf-operator/pkg/client/listers/kubeflow/v1alpha2, github.com/kubeflow/tf-operator/pkg/control, github.com/kubeflow/tf-operator/pkg/controller, github.com/kubeflow/tf-operator/pkg/controller.v2, github.com/kubeflow/tf-operator/pkg/generator, github.com/kubeflow/tf-operator/pkg/trainer, github.com/kubeflow/tf-operator/pkg/util, github.com/kubeflow/tf-operator/pkg/util/k8sutil, github.com/kubeflow/tf-operator/pkg/util/signals, github.com/kubeflow/tf-operator/pkg/util/testutil, github.com/kubeflow/tf-operator/pkg/util/train, github.com/kubeflow/tf-operator/pkg/util/unstructured, github.com/kubeflow/tf-operator/pkg/version
?   	github.com/kubeflow/tf-operator/pkg/controller	[no test files]
FAIL	github.com/kubeflow/tf-operator/pkg/controller.v2 [build failed]
exit status 2: warning: no packages being tested depend on matches for pattern github.com/kubeflow/tf-operator/pkg/apis/tensorflow/helper
warning: no packages being tested depend on matches for pattern github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/fake
warning: no packages being tested depend on matches for pattern github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake
warning: no packages being tested depend on matches for pattern github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha2/fake
warning: no packages being tested depend on matches for pattern github.com/kubeflow/tf-operator/pkg/controller
warning: no packages being tested depend on matches for pattern github.com/kubeflow/tf-operator/pkg/trainer
warning: no packages being tested depend on matches for pattern github.com/kubeflow/tf-operator/pkg/util/k8sutil
warning: no packages being tested depend on matches for pattern github.com/kubeflow/tf-operator/pkg/util/signals
warning: no packages being tested depend on matches for pattern github.com/kubeflow/tf-operator/pkg/util/testutil
warning: no packages being tested depend on matches for pattern github.com/kubeflow/tf-operator/pkg/version
# github.com/kubeflow/tf-operator/pkg/controller.v2
pkg/controller.v2/controller_tfjob.go:69: undefined: tfjob in tfjob.Namespace
pkg/controller.v2/controller_tfjob.go:69: undefined: metav1 in metav1.GetOptions
pkg/controller.v2/controller_tfjob.go:70: undefined: k8serrors in k8serrors.IsNotFound
pkg/controller.v2/controller_tfjob.go:80: undefined: tfjob in tfjob.Namespace
pkg/controller.v2/controller_tfjob.go:80: undefined: metav1 in metav1.GetOptions
pkg/controller.v2/controller_tfjob.go:81: too many arguments in call to tc.recorder.Event
	have (*"github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha2".TFJob, string, string, string, error)
	want ("github.com/kubeflow/tf-operator/vendor/k8s.io/apimachinery/pkg/runtime".Object, string, string, string)
pkg/controller.v2/controller_tfjob.go:84: too many arguments in call to tc.recorder.Event
pkg/controller.v2/controller_tfjob.go:84: undefined: tfjob in tfjob.Name

)

Copy link
Member

Choose a reason for hiding this comment

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

I think we could keep the line

terminatedTFJobReason = "TFJobTerminated"
failedMarshalTFJobReason = "FailedMarshalTFJob"
terminatedTFJobReason = "TFJobTerminated"
FailedDeletePdbReason = "FailedDeletePdb"
Copy link
Member

Choose a reason for hiding this comment

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

We do not to keep the variables public, IMO

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I will revised it!
And I found I have some bug in my code, I will also fix them first

Copy link
Member

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

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

@gaocegege I think I have corrected all the small bugs, thanks

@gaocegege
Copy link
Member

/ok-to-test

Only some nits

@k8s-ci-robot k8s-ci-robot removed the lgtm label Jul 10, 2018
@TravisBuddy
Copy link

Travis tests have failed

Hey @ChanYiLin,
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/controller.go:1::warning: file is not goimported (goimports)
pkg/controller.v2/controller_tfjob.go:1::warning: file is not goimported (goimports)

3rd Build

gometalinter --config=linter_config.json --vendor ./...
pkg/controller.v2/controller_tfjob.go:1::warning: file is not goimported (goimports)
pkg/controller.v2/controller.go:1::warning: file is not goimported (goimports)

travis_time:end:1020b6e3:start=1531192751774169054,finish=1531192903922000205,duration=152147831151

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 57.349% when pulling 9c825d6 on ChanYiLin:master into 7ebe995 on kubeflow:master.

@coveralls
Copy link

coveralls commented Jul 10, 2018

Coverage Status

Coverage decreased (-0.4%) to 57.349% when pulling acde16d on ChanYiLin:master into 7ebe995 on kubeflow:master.

@TravisBuddy
Copy link

Travis tests have failed

Hey @ChanYiLin,
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/controller.go:1::warning: file is not goimported (goimports)
pkg/controller.v2/controller_tfjob.go:1::warning: file is not goimported (goimports)

3rd Build

gometalinter --config=linter_config.json --vendor ./...
pkg/controller.v2/controller.go:1::warning: file is not goimported (goimports)
pkg/controller.v2/controller_tfjob.go:1::warning: file is not goimported (goimports)

travis_time:end:069cda00:start=1531193796996792190,finish=1531193938463100214,duration=141466308024

@gaocegege
Copy link
Member

/retest
/lgtm

@k8s-ci-robot k8s-ci-robot merged commit 3fba4db into kubeflow:master Jul 11, 2018
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