@Mojo(name="resource",
defaultPhase=PROCESS_RESOURCES,
requiresDependencyResolution=COMPILE)
public class ResourceMojo
extends AbstractFabric8Mojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
skipResource |
protected File |
targetDir
The generated kubernetes and openshift manifests
|
| Constructor and Description |
|---|
ResourceMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeInternal() |
protected ClusterConfiguration |
getClusterConfiguration() |
protected static io.fabric8.openshift.api.model.Template |
getSingletonTemplate(io.fabric8.kubernetes.api.model.KubernetesList resources)
Returns the Template if the list contains a single Template only otherwise returns null
|
protected void |
writeResources(io.fabric8.kubernetes.api.model.KubernetesList resources,
ResourceClassifier classifier,
Boolean generateRoute) |
static File |
writeResourcesIndividualAndComposite(io.fabric8.kubernetes.api.model.KubernetesList resources,
File resourceFileBase,
ResourceFileType resourceFileType,
io.fabric8.maven.docker.util.Logger log,
Boolean generateRoute) |
createExternalProcessLogger, createLogger, execute, getProperty@Parameter(property="fabric8.targetDir",
defaultValue="${project.build.outputDirectory}/META-INF/fabric8")
protected File targetDir
@Parameter(property="docker.skip.resource",
defaultValue="false")
protected boolean skipResource
protected static io.fabric8.openshift.api.model.Template getSingletonTemplate(io.fabric8.kubernetes.api.model.KubernetesList resources)
public static File writeResourcesIndividualAndComposite(io.fabric8.kubernetes.api.model.KubernetesList resources, File resourceFileBase, ResourceFileType resourceFileType, io.fabric8.maven.docker.util.Logger log, Boolean generateRoute) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void executeInternal()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
executeInternal in class AbstractFabric8Mojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void writeResources(io.fabric8.kubernetes.api.model.KubernetesList resources,
ResourceClassifier classifier,
Boolean generateRoute)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected ClusterConfiguration getClusterConfiguration()
getClusterConfiguration in class AbstractFabric8MojoCopyright © 2019. All rights reserved.