| Modifier and Type | Field and Description |
|---|---|
protected io.fabric8.maven.docker.util.Logger |
log |
| Constructor and Description |
|---|
BaseEnricher(EnricherContext buildContext,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
adapt(io.fabric8.kubernetes.api.model.KubernetesListBuilder builder)
Final customization of the overall resource
descriptor
|
void |
addDefaultResources(io.fabric8.kubernetes.api.model.KubernetesListBuilder builder)
Add default resources when they are missing.
|
Map<String,String> |
getAnnotations(Kind kind)
Return annotations to add
|
protected String |
getConfig(Configs.Key key) |
protected String |
getConfig(Configs.Key key,
String defaultVal) |
protected EnricherContext |
getContext() |
protected String |
getExternalServiceURL(String serviceName,
String protocol)
Returns the external access to the given service name
|
protected List<io.fabric8.maven.docker.config.ImageConfiguration> |
getImages() |
protected io.fabric8.kubernetes.client.KubernetesClient |
getKubernetes() |
Map<String,String> |
getLabels(Kind kind)
Get labels to add too objects
|
protected io.fabric8.maven.docker.util.Logger |
getLog() |
String |
getName()
Unique name of the enricher
|
protected org.apache.maven.project.MavenProject |
getProject() |
Map<String,String> |
getSelector(Kind kind)
Get the selector for a service or replica set / replication controller
|
protected boolean |
isOffline()
Returns true if in offline mode
|
public BaseEnricher(EnricherContext buildContext, String name)
public String getName()
Enricherpublic Map<String,String> getLabels(Kind kind)
Enricherpublic Map<String,String> getAnnotations(Kind kind)
EnrichergetAnnotations in interface Enricherkind - the kind of object to addpublic void adapt(io.fabric8.kubernetes.api.model.KubernetesListBuilder builder)
Enricherpublic void addDefaultResources(io.fabric8.kubernetes.api.model.KubernetesListBuilder builder)
EnricheraddDefaultResources in interface Enricherbuilder - the build to examine and add topublic Map<String,String> getSelector(Kind kind)
EnrichergetSelector in interface Enricherkind - get the selector mapprotected org.apache.maven.project.MavenProject getProject()
protected io.fabric8.maven.docker.util.Logger getLog()
protected boolean isOffline()
protected io.fabric8.kubernetes.client.KubernetesClient getKubernetes()
protected List<io.fabric8.maven.docker.config.ImageConfiguration> getImages()
protected String getConfig(Configs.Key key)
protected String getConfig(Configs.Key key, String defaultVal)
protected EnricherContext getContext()
Copyright © 2016. All rights reserved.