Class CRDConfiguration

java.lang.Object
io.quarkiverse.operatorsdk.runtime.CRDConfiguration

public class CRDConfiguration extends Object
  • Field Details

    • DEFAULT_OUTPUT_DIRECTORY

      public static final String DEFAULT_OUTPUT_DIRECTORY
      See Also:
    • DEFAULT_VALIDATE

      public static final String DEFAULT_VALIDATE
      See Also:
    • DEFAULT_VERSIONS

      public static final String DEFAULT_VERSIONS
      See Also:
    • validate

      @ConfigItem(defaultValue="true") public Boolean validate
      Whether the operator should check that the CRD is properly deployed and that the associated CustomResource implementation matches its information before registering the associated controller.
    • generate

      @ConfigItem public Optional<Boolean> generate
      Whether the extension should automatically generate the CRD based on CustomResource implementations.
    • apply

      @ConfigItem public Optional<Boolean> apply
      Whether the extension should automatically apply updated CRDs when they change. When running on DEV mode, the CRD changes will always be applied automatically.
    • versions

      @ConfigItem(defaultValue="v1") public List<String> versions
      Comma-separated list of which CRD versions should be generated.
    • outputDirectory

      @ConfigItem public Optional<String> outputDirectory
      The directory where the CRDs will be generated, defaults to the kubernetes directory of the project's output directory.
    • generateAll

      @ConfigItem(defaultValue="false") public Boolean generateAll
      Whether the extension should generate all CRDs even if some are not tied to a Reconciler.
    • generateInParallel

      @ConfigItem(defaultValue="false") public Boolean generateInParallel
      Whether the CRDs should be generated in parallel. Please note that this feature is experimental and it may lead to unexpected results.
    • excludeResources

      @ConfigItem public Optional<List<String>> excludeResources
      A comma-separated list of fully-qualified class names implementing custom resources to exclude from the CRD generation process.
  • Constructor Details

    • CRDConfiguration

      public CRDConfiguration()