public class CustomResourceHandler extends AbstractCustomResourceHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
VERSION |
resources| Constructor and Description |
|---|
CustomResourceHandler(Resources resources) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDecorators(CustomResourceInfo config,
io.sundr.model.TypeDef def,
Optional<String> specReplicasPath,
Optional<String> statusReplicasPath,
Optional<String> labelSelectorPath)
Adds all the necessary decorators to build the specific CRD version.
|
protected Decorator |
getPrinterColumnDecorator(String name,
String version,
String path,
String type,
String column,
String description,
String format)
Provides the decorator implementation associated with the CRD generation version.
|
void |
handle(CustomResourceInfo config) |
public static final String VERSION
public CustomResourceHandler(Resources resources)
protected Decorator getPrinterColumnDecorator(String name, String version, String path, String type, String column, String description, String format)
AbstractCustomResourceHandlergetPrinterColumnDecorator in class AbstractCustomResourceHandlername - the resource nameversion - the associated versionpath - the path from which the printer column is extractedtype - the data type of the printer columncolumn - the name of the columndescription - the description of the columnformat - the format of the printer columnprotected void addDecorators(CustomResourceInfo config, io.sundr.model.TypeDef def, Optional<String> specReplicasPath, Optional<String> statusReplicasPath, Optional<String> labelSelectorPath)
AbstractCustomResourceHandleraddDecorators in class AbstractCustomResourceHandlerconfig - the gathered CustomResourceInfo used as basis for the CRD generationdef - the TypeDef associated with the CustomResource from which the CRD
is generatedspecReplicasPath - an optionally detected path of field defining spec replicasstatusReplicasPath - an optionally detected path of field defining status replicaslabelSelectorPath - an optionally detected path of field defining `status.selector`public void handle(CustomResourceInfo config)
handle in class AbstractCustomResourceHandlerCopyright © 2015–2022 Red Hat. All rights reserved.