@Mojo(name="apply",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
defaultPhase=INSTALL)
public class ApplyMojo
extends AbstractJKubeMojo
implements ManifestProvider
| Modifier and Type | Field and Description |
|---|---|
protected ApplyService |
applyService |
static String |
DEFAULT_KUBERNETES_MANIFEST |
static String |
DEFAULT_OPENSHIFT_MANIFEST |
protected File |
kubernetesManifest
The generated kubernetes YAML file
|
protected boolean |
recreate
Should we update resources by deleting them first and then creating them again?
|
protected boolean |
skipApply |
access, buildStrategy, clusterAccess, DEFAULT_LOG_PREFIX, interpolateTemplateParameters, javaProject, jkubeServiceHub, log, mojoExecution, namespace, offline, project, resourceFileType, resources, securityDispatcher, session, settings, skip, targetDir, useColor, verbose, workDir| Constructor and Description |
|---|
ApplyMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyEntities(io.fabric8.kubernetes.client.KubernetesClient kubernetes,
String fileName,
Collection<io.fabric8.kubernetes.api.model.HasMetadata> entities) |
protected void |
disableOpenShiftFeatures(ApplyService applyService)
Let's disable OpenShift-only features if we are not running on OpenShift
|
void |
executeInternal() |
File |
getKubernetesManifest() |
org.apache.maven.project.MavenProject |
getProject() |
protected void |
initServices(io.fabric8.kubernetes.client.KubernetesClient kubernetes) |
boolean |
isRollingUpgradePreserveScale() |
protected boolean |
shouldSkip() |
createLogger, execute, getKitLogger, getLogPrefix, getResources, getRuntimeMode, getSettings, init, initClusterConfiguration, initJKubeServiceHubBuildergetLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetManifestgetKitLoggerpublic static final String DEFAULT_KUBERNETES_MANIFEST
public static final String DEFAULT_OPENSHIFT_MANIFEST
@Parameter(property="jkube.recreate",
defaultValue="false")
protected boolean recreate
@Parameter(property="jkube.kubernetesManifest",
defaultValue="${basedir}/target/classes/META-INF/jkube/kubernetes.yml")
protected File kubernetesManifest
@Parameter(property="jkube.skip.apply",
defaultValue="false")
protected boolean skipApply
protected ApplyService applyService
protected boolean shouldSkip()
shouldSkip in class AbstractJKubeMojopublic File getKubernetesManifest()
getKubernetesManifest in interface ManifestProviderpublic void executeInternal()
throws org.apache.maven.plugin.MojoExecutionException
executeInternal in class AbstractJKubeMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected void applyEntities(io.fabric8.kubernetes.client.KubernetesClient kubernetes,
String fileName,
Collection<io.fabric8.kubernetes.api.model.HasMetadata> entities)
throws InterruptedException
InterruptedExceptionprotected void initServices(io.fabric8.kubernetes.client.KubernetesClient kubernetes)
public boolean isRollingUpgradePreserveScale()
public org.apache.maven.project.MavenProject getProject()
protected void disableOpenShiftFeatures(ApplyService applyService)
Copyright © 2023. All rights reserved.