@Mojo(name="resource",
defaultPhase=PROCESS_RESOURCES,
requiresDependencyResolution=COMPILE)
public class ResourceMojo
extends AbstractJKubeMojo
| Modifier and Type | Field and Description |
|---|---|
static String |
DOCKER_BUILD_TIMESTAMP |
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 org.eclipse.jkube.kit.config.access.ClusterConfiguration |
getClusterConfiguration() |
protected org.eclipse.jkube.kit.config.resource.PlatformMode |
getPlatformMode() |
protected ResourceClassifier |
getResourceClassifier() |
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) |
static File |
writeResourcesIndividualAndComposite(io.fabric8.kubernetes.api.model.KubernetesList resources,
File resourceFileBase,
org.eclipse.jkube.kit.common.ResourceFileType resourceFileType,
org.eclipse.jkube.kit.common.KitLogger log) |
createExternalProcessLogger, createLogger, execute, getLogPrefix, getPropertypublic static final String DOCKER_BUILD_TIMESTAMP
@Parameter(property="jkube.targetDir",
defaultValue="${project.build.outputDirectory}/META-INF/jkube")
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, org.eclipse.jkube.kit.common.ResourceFileType resourceFileType, org.eclipse.jkube.kit.common.KitLogger log) 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 AbstractJKubeMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected org.eclipse.jkube.kit.config.resource.PlatformMode getPlatformMode()
protected ResourceClassifier getResourceClassifier()
protected void writeResources(io.fabric8.kubernetes.api.model.KubernetesList resources,
ResourceClassifier classifier)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.eclipse.jkube.kit.config.access.ClusterConfiguration getClusterConfiguration()
getClusterConfiguration in class AbstractJKubeMojoCopyright © 2020. All rights reserved.