@Mojo(name="undeploy",
requiresDependencyResolution=COMPILE,
defaultPhase=INSTALL)
public class UndeployMojo
extends AbstractJKubeMojo
implements ManifestProvider
k8s:run or k8s:deploy goals.| Modifier and Type | Field and Description |
|---|---|
protected File |
kubernetesManifest
The generated kubernetes YAML file
|
protected File |
resourceDir
Folder where to find project specific files
|
access, clusterAccess, DEFAULT_LOG_PREFIX, javaProject, jkubeServiceHub, log, mojoExecution, namespace, offline, project, resources, securityDispatcher, session, settings, skip, useColor, verbose| Constructor and Description |
|---|
UndeployMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeInternal() |
File |
getKubernetesManifest() |
protected List<File> |
getManifestsToUndeploy() |
protected void |
undeploy() |
canExecute, createLogger, execute, getKitLogger, getLogPrefix, getResources, getRuntimeMode, getSettings, init, initClusterConfiguration, initJKubeServiceHubBuildergetLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetManifestgetKitLogger@Parameter(property="jkube.kubernetesManifest",
defaultValue="${basedir}/target/classes/META-INF/jkube/kubernetes.yml")
protected File kubernetesManifest
@Parameter(property="jkube.resourceDir",
defaultValue="${basedir}/src/main/jkube")
protected File resourceDir
public File getKubernetesManifest()
getKubernetesManifest in interface ManifestProviderpublic final void executeInternal()
throws org.apache.maven.plugin.MojoExecutionException
executeInternal in class AbstractJKubeMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected void undeploy()
throws IOException
IOExceptionCopyright © 2022. All rights reserved.