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:
Roberto Jiménez Sánchez
2025-09-05 09:22:30 +00:00
committed by GitHub
parent 6a54340501
commit 1b9e479b68
19 changed files with 216 additions and 159 deletions
@@ -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)
}