kubernetes-client icon indicating copy to clipboard operation
kubernetes-client copied to clipboard

Enable parallel processing with crd-generator v2

Open shawkins opened this issue 10 months ago • 1 comments

The v2 generator will need to be parallized at the clazz level.

There will need to be a ResolvingContext instance for each usage - the SchemaGenerator isn't thread-safe. But they could all share the "seen" Jackson schema instances so that any common classes would not need to be re-resolved.

shawkins avatar Apr 24 '24 21:04 shawkins

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

stale[bot] avatar Jul 26 '24 01:07 stale[bot]

I think this feature has already been implemented with #5949:

https://github.com/fabric8io/kubernetes-client/blob/main/crd-generator/api-v2/src/main/java/io/fabric8/crdv2/generator/CRDGenerator.java#L194

Parallel execution is also enabled by default in the maven plugin and in the CLI.

baloo42 avatar Sep 08 '24 12:09 baloo42

@baloo42 looks like we're good to resolve this properly.

shawkins avatar Sep 09 '24 19:09 shawkins