Skip to content

Commit

Permalink
Adding error propagation for K8s client creation in KatibClient (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
akirillov authored Feb 13, 2020
1 parent d84f248 commit 2da2c86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/util/v1alpha3/katibclient/katib_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ func NewClient(options client.Options) (Client, error) {
trialsv1alpha3.AddToScheme(scheme.Scheme)
suggestionsv1alpha3.AddToScheme(scheme.Scheme)
cl, err := client.New(cfg, options)
if err != nil {
return nil, err
}
return &KatibClient{
client: cl,
}, nil
Expand Down

0 comments on commit 2da2c86

Please sign in to comment.