| Modifier and Type | Field and Description |
|---|---|
protected static String |
ENRICH_ALL_WITH_IMAGE_TRIGGERS |
protected EnricherContext |
enricherContext |
protected static String |
FABRIC8_GENERATED_CONTAINERS |
protected static String |
GENERATE_ROUTE |
protected static String |
IMAGE_CHANGE_TRIGGERS |
protected io.fabric8.maven.docker.util.Logger |
log |
protected static String |
NEED_IMAGECHANGE_TRIGGERS |
static String |
OPENSHIFT_DEPLOY_TIMEOUT_SECONDS |
protected static String |
OPENSHIFT_ENABLE_AUTOMATIC_TRIGGER |
protected static String |
OPENSHIFT_TRIM_IMAGE_IN_CONTAINER_SPEC |
protected static String |
SIDECAR |
| Constructor and Description |
|---|
BaseEnricher(EnricherContext enricherContext,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(PlatformMode platformMode,
io.fabric8.kubernetes.api.model.KubernetesListBuilder builder)
Add default resources when they are missing.
|
void |
enrich(PlatformMode platformMode,
io.fabric8.kubernetes.api.model.KubernetesListBuilder builder)
Final customization of the overall resource descriptor.
|
protected String |
getConfig(Configs.Key key) |
protected String |
getConfig(Configs.Key key,
String defaultVal) |
protected Configuration |
getConfiguration() |
protected EnricherContext |
getContext() |
protected String |
getImagePullPolicy(ResourceConfig resourceConfig,
String defaultValue)
This method overrides the ImagePullPolicy value by the value provided in
XML config.
|
protected Optional<List<io.fabric8.maven.docker.config.ImageConfiguration>> |
getImages() |
protected io.fabric8.maven.docker.util.Logger |
getLog() |
String |
getName() |
protected Long |
getOpenshiftDeployTimeoutInSeconds(Long defaultValue) |
protected List<String> |
getProcessingInstructionViaKey(String key) |
protected Map<String,String> |
getRawConfig() |
protected int |
getReplicaCount(io.fabric8.kubernetes.api.model.KubernetesListBuilder builder,
ResourceConfig xmlResourceConfig,
int defaultValue)
This method just makes sure that the replica count provided in XML config
overrides the default option; and resource fragments are always given
topmost priority.
|
protected Boolean |
getValueFromConfig(String propertyName,
Boolean defaultValue) |
protected String |
getValueFromConfig(String propertyName,
String defaultValue) |
protected boolean |
hasConfig(Configs.Key key) |
protected boolean |
hasImageConfiguration() |
protected boolean |
isOpenShiftMode()
Returns true if we are in OpenShift S2I binary building mode
|
protected void |
setProcessingInstruction(String key,
List<String> containerNames) |
protected boolean |
useDeploymentforOpenShift() |
public static final String OPENSHIFT_DEPLOY_TIMEOUT_SECONDS
protected EnricherContext enricherContext
protected static final String FABRIC8_GENERATED_CONTAINERS
protected static final String NEED_IMAGECHANGE_TRIGGERS
protected static final String IMAGE_CHANGE_TRIGGERS
protected static final String OPENSHIFT_TRIM_IMAGE_IN_CONTAINER_SPEC
protected static final String OPENSHIFT_ENABLE_AUTOMATIC_TRIGGER
protected static final String SIDECAR
protected static final String ENRICH_ALL_WITH_IMAGE_TRIGGERS
protected static final String GENERATE_ROUTE
protected io.fabric8.maven.docker.util.Logger log
public BaseEnricher(EnricherContext enricherContext, String name)
public void enrich(PlatformMode platformMode, io.fabric8.kubernetes.api.model.KubernetesListBuilder builder)
Enricherpublic void create(PlatformMode platformMode, io.fabric8.kubernetes.api.model.KubernetesListBuilder builder)
Enricherprotected io.fabric8.maven.docker.util.Logger getLog()
protected boolean hasImageConfiguration()
protected Configuration getConfiguration()
protected String getConfig(Configs.Key key)
protected boolean hasConfig(Configs.Key key)
protected String getConfig(Configs.Key key, String defaultVal)
protected EnricherContext getContext()
protected boolean isOpenShiftMode()
protected Long getOpenshiftDeployTimeoutInSeconds(Long defaultValue)
protected String getImagePullPolicy(ResourceConfig resourceConfig, String defaultValue)
resourceConfig - defaultValue - protected int getReplicaCount(io.fabric8.kubernetes.api.model.KubernetesListBuilder builder,
ResourceConfig xmlResourceConfig,
int defaultValue)
builder - xmlResourceConfig - defaultValue - protected void setProcessingInstruction(String key, List<String> containerNames)
protected boolean useDeploymentforOpenShift()
Copyright © 2020. All rights reserved.