public abstract class AbstractCustomResourceHandler extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCustomResourceHandler(Resources resources,
boolean parallel) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract 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 abstract 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) |
protected final Resources resources
protected AbstractCustomResourceHandler(Resources resources, boolean parallel)
public void handle(CustomResourceInfo config)
protected abstract Decorator getPrinterColumnDecorator(String name, String version, String path, String type, String column, String description, String format)
name - 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 abstract void addDecorators(CustomResourceInfo config, io.sundr.model.TypeDef def, Optional<String> specReplicasPath, Optional<String> statusReplicasPath, Optional<String> labelSelectorPath)
config - 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`Copyright © 2015–2023 Red Hat. All rights reserved.