Skip to content

Commit

Permalink
Update codegen (kubeflow#1069)
Browse files Browse the repository at this point in the history
* Update codegen

* Handle errors of adding tfjob scheme

To fix the gometalinter error
  • Loading branch information
ohmystack authored and k8s-ci-robot committed Aug 19, 2019
1 parent 3cc84f9 commit d2499dc
Show file tree
Hide file tree
Showing 8 changed files with 704 additions and 70 deletions.
182 changes: 169 additions & 13 deletions pkg/apis/common/v1/openapi_generated.go

Large diffs are not rendered by default.

182 changes: 169 additions & 13 deletions pkg/apis/common/v1beta2/openapi_generated.go

Large diffs are not rendered by default.

182 changes: 169 additions & 13 deletions pkg/apis/tensorflow/v1/openapi_generated.go

Large diffs are not rendered by default.

182 changes: 169 additions & 13 deletions pkg/apis/tensorflow/v1beta2/openapi_generated.go

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions pkg/client/clientset/versioned/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 10 additions & 8 deletions pkg/client/clientset/versioned/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pkg/controller.v1/tensorflow/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ func NewTFController(
tfJobInformerFactory tfjobinformers.SharedInformerFactory,
option options.ServerOption) *TFController {

tfjobscheme.AddToScheme(scheme.Scheme)
err := tfjobscheme.AddToScheme(scheme.Scheme)
if err != nil {
log.Fatalf("Failed to add tfjob scheme: %v", err)
}

log.Info("Creating TFJob controller")
// Create new TFController.
Expand Down
5 changes: 4 additions & 1 deletion pkg/controller.v1beta2/tensorflow/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ func NewTFController(
tfJobInformerFactory tfjobinformers.SharedInformerFactory,
option options.ServerOption) *TFController {

tfjobscheme.AddToScheme(scheme.Scheme)
err := tfjobscheme.AddToScheme(scheme.Scheme)
if err != nil {
log.Fatalf("Failed to add tfjob scheme: %v", err)
}

log.Info("Creating TFJob controller")
// Create new TFController.
Expand Down

0 comments on commit d2499dc

Please sign in to comment.