Skip to content

Commit

Permalink
Adding error propagation for K8s client creation in KatibClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Kirillov committed Feb 12, 2020
1 parent f98f7c9 commit 0a62f21
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 0a62f21

Please sign in to comment.