Class CRDConfiguration
- java.lang.Object
-
- io.quarkiverse.operatorsdk.runtime.CRDConfiguration
-
public class CRDConfiguration extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Optional<Boolean>applyWhether the extension should automatically apply updated CRDs when they change.static StringDEFAULT_OUTPUT_DIRECTORYstatic StringDEFAULT_VALIDATEstatic StringDEFAULT_VERSIONSOptional<Boolean>generateWhether the extension should automatically generate the CRD based onCustomResourceimplementations.StringoutputDirectoryThe directory where the CRDs will be generated, relative to the project's output directory.BooleanvalidateWhether the operator should check that the CRD is properly deployed and that the associatedCustomResourceimplementation matches its information before registering the associated controller.List<String>versionsComma-separated list of which CRD versions should be generated.
-
Constructor Summary
Constructors Constructor Description CRDConfiguration()
-
-
-
Field Detail
-
DEFAULT_OUTPUT_DIRECTORY
public static final String DEFAULT_OUTPUT_DIRECTORY
- See Also:
- Constant Field Values
-
DEFAULT_VALIDATE
public static final String DEFAULT_VALIDATE
- See Also:
- Constant Field Values
-
DEFAULT_VERSIONS
public static final String DEFAULT_VERSIONS
- See Also:
- Constant Field Values
-
validate
@ConfigItem(defaultValue="true") public Boolean validate
Whether the operator should check that the CRD is properly deployed and that the associatedCustomResourceimplementation matches its information before registering the associated controller.
-
generate
@ConfigItem public Optional<Boolean> generate
Whether the extension should automatically generate the CRD based onCustomResourceimplementations.
-
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(defaultValue="kubernetes") public String outputDirectory
The directory where the CRDs will be generated, relative to the project's output directory.
-
-