Provisioning: Abstract away how we build discovery and dynamic clients (#110662)
Abstract away how we get discovery and dynamic clients
This commit is contained in:
@@ -208,7 +208,7 @@ func (r *parser) Parse(ctx context.Context, info *repository.FileInfo) (parsed *
|
||||
}
|
||||
|
||||
// TODO: catch the not found gvk error to return bad request
|
||||
parsed.Client, parsed.GVR, err = r.clients.ForKind(parsed.GVK)
|
||||
parsed.Client, parsed.GVR, err = r.clients.ForKind(ctx, parsed.GVK)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("get client for kind: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user