diff --git a/pkg/util/v1alpha3/katibclient/katib_client.go b/pkg/util/v1alpha3/katibclient/katib_client.go index 587a274cf4c..d3b195ba796 100644 --- a/pkg/util/v1alpha3/katibclient/katib_client.go +++ b/pkg/util/v1alpha3/katibclient/katib_client.go @@ -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