| Modifier and Type | Field and Description |
|---|---|
static String |
CREATE_EXTERNAL_URLS |
static String |
ENRICH_ALL_WITH_IMAGE_TRIGGERS |
protected EnricherContext |
enricherContext |
static String |
FABRIC8_GENERATED_CONTAINERS |
static String |
IMAGE_CHANGE_TRIGGERS |
static String |
JKUBE_DOMAIN |
static String |
JKUBE_ENFORCED_REPLICAS |
protected org.eclipse.jkube.kit.common.KitLogger |
log |
static String |
NEED_IMAGECHANGE_TRIGGERS |
static String |
OPENSHIFT_DEPLOY_TIMEOUT_SECONDS |
static String |
OPENSHIFT_ENABLE_AUTOMATIC_TRIGGER |
static String |
OPENSHIFT_TRIM_IMAGE_IN_CONTAINER_SPEC |
static String |
SIDECAR |
INTERNAL_ANNOTATION_PREFIX| 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(org.eclipse.jkube.kit.common.Configs.Config key) |
protected String |
getConfig(org.eclipse.jkube.kit.common.Configs.Config key,
String defaultVal) |
protected Configuration |
getConfiguration() |
protected String |
getConfigWithFallback(org.eclipse.jkube.kit.common.Configs.Config key,
String fallbackPropertyKey,
String defaultVal) |
protected EnricherContext |
getContext() |
protected String |
getControllerName(ResourceConfig resourceConfig,
String defaultValue)
This method overrides the controller name value by the value provided in XML config.
|
protected static String |
getImagePullPolicy(ResourceConfig resourceConfig,
String defaultValue)
This method overrides the ImagePullPolicy value by the value provided in
XML config.
|
protected List<ImageConfiguration> |
getImages() |
protected org.eclipse.jkube.kit.common.KitLogger |
getLog() |
String |
getName() |
static String |
getNamespace(ResourceConfig resourceConfig,
String defaultValue) |
protected Long |
getOpenshiftDeployTimeoutInSeconds(Long defaultValue) |
protected List<String> |
getProcessingInstructionViaKey(String key) |
protected static 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)
Getting a property value from configuration
|
protected String |
getValueFromConfig(String propertyName,
String defaultValue)
Getting a property value from configuration
|
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() |
protected EnricherContext enricherContext
public static final String FABRIC8_GENERATED_CONTAINERS
public static final String NEED_IMAGECHANGE_TRIGGERS
public static final String IMAGE_CHANGE_TRIGGERS
public static final String OPENSHIFT_TRIM_IMAGE_IN_CONTAINER_SPEC
public static final String OPENSHIFT_ENABLE_AUTOMATIC_TRIGGER
public static final String SIDECAR
public static final String ENRICH_ALL_WITH_IMAGE_TRIGGERS
public static final String OPENSHIFT_DEPLOY_TIMEOUT_SECONDS
public static final String CREATE_EXTERNAL_URLS
public static final String JKUBE_DOMAIN
public static final String JKUBE_ENFORCED_REPLICAS
protected org.eclipse.jkube.kit.common.KitLogger log
public BaseEnricher(EnricherContext enricherContext, String name)
public String getName()
getName in interface org.eclipse.jkube.kit.common.Namedpublic void enrich(PlatformMode platformMode, io.fabric8.kubernetes.api.model.KubernetesListBuilder builder)
Enricherpublic void create(PlatformMode platformMode, io.fabric8.kubernetes.api.model.KubernetesListBuilder builder)
Enricherprotected org.eclipse.jkube.kit.common.KitLogger getLog()
protected List<ImageConfiguration> getImages()
protected boolean hasImageConfiguration()
protected Configuration getConfiguration()
protected String getConfig(org.eclipse.jkube.kit.common.Configs.Config key)
protected String getConfig(org.eclipse.jkube.kit.common.Configs.Config key, String defaultVal)
protected String getConfigWithFallback(org.eclipse.jkube.kit.common.Configs.Config key, String fallbackPropertyKey, String defaultVal)
protected EnricherContext getContext()
protected boolean isOpenShiftMode()
protected Long getOpenshiftDeployTimeoutInSeconds(Long defaultValue)
protected String getControllerName(ResourceConfig resourceConfig, String defaultValue)
resourceConfig - resource config from plugin configurationdefaultValue - default valueprotected static String getImagePullPolicy(ResourceConfig resourceConfig, String defaultValue)
resourceConfig - resource config from plugin configurationdefaultValue - default valueprotected static int getReplicaCount(io.fabric8.kubernetes.api.model.KubernetesListBuilder builder,
ResourceConfig xmlResourceConfig,
int defaultValue)
builder - kubernetes list builder containing objectsxmlResourceConfig - xml resource config from plugin configurationdefaultValue - default valuepublic static String getNamespace(ResourceConfig resourceConfig, String defaultValue)
protected void setProcessingInstruction(String key, List<String> containerNames)
protected boolean getValueFromConfig(String propertyName, boolean defaultValue)
propertyName - name of propertydefaultValue - default value if not defined (true or false)protected boolean useDeploymentForOpenShift()
Copyright © 2022. All rights reserved.