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

CRD-Generator v2: CLI Application

Open baloo42 opened this issue 10 months ago • 2 comments

Is your enhancement related to a problem? Please describe

Because the CRD-Generator annotation processor is now deprecated, we need a replacement. (see https://github.com/fabric8io/kubernetes-client/discussions/5942)

Describe the solution you'd like

A CRD-Generator CLI application could search for a top level annotation (or interface) and generate the CRDs using the CRD-Generator v2 api.

Describe alternatives you've considered

No response

Additional context

  • Jandex could be used to find and index the relevant annotations/classes.
  • The following options should be supported:
    • Enable / disable parallel generation
    • ~~CRD versions (v1, v1beta1)~~
      (v1beta1 won't be support)
    • outputPath
    • ~header in output files~
    • ~Allow to add additional labels~
    • ~Allow to add additional annotations~
    • Enable debug output
  • The code to scan should be shared between the corresponding maven and gradle module.

See also:

  • https://github.com/fabric8io/kubernetes-client/issues/5944
  • https://github.com/fabric8io/kubernetes-client/issues/5945

baloo42 avatar Apr 26 '24 09:04 baloo42

Protoype: https://github.com/baloo42/kubernetes-client/pull/9

baloo42 avatar May 03 '24 15:05 baloo42

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 Aug 03 '24 02:08 stale[bot]