public abstract class AbstractNamespacedMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
failOnError
Should we fail the build if an apply fails?
|
protected boolean |
recreate
Should we update resources by deleting them first and then creating them again?
|
protected String |
routeDomain
The domain added to the service ID when creating OpenShift routes
|
| Constructor and Description |
|---|
AbstractNamespacedMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected io.fabric8.kubernetes.api.Controller |
createController() |
protected io.fabric8.devops.ProjectConfig |
findProjectConfig()
Returns the configuration of the project in the
fabric8.yml file in the root project or current directory
or returns an empty configuraiton |
io.fabric8.kubernetes.client.KubernetesClient |
getKubernetes() |
protected String |
getNamespace() |
protected String |
getNamespaceForEnvironment(String environment)
Lets look in the fabric8.yml file if it exists and find the environment name from it
otherwise lets look for environment variables or return null
|
org.apache.maven.project.MavenProject |
getProject() |
protected org.apache.maven.project.MavenProject |
getRootProject()
Returns the root project folder
|
protected File |
getRootProjectFolder()
Returns the root project folder
|
String |
getRouteDomain() |
boolean |
isFailOnError() |
boolean |
isRecreate() |
void |
setFailOnError(boolean failOnError) |
void |
setNamespace(String namespace) |
void |
setRecreate(boolean recreate) |
void |
setRouteDomain(String routeDomain) |
getLog, getPluginContext, setLog, setPluginContext@Parameter(property="fabric8.domain") protected String routeDomain
@Parameter(property="fabric8.apply.failOnError",
defaultValue="true")
protected boolean failOnError
@Parameter(property="fabric8.recreate",
defaultValue="false")
protected boolean recreate
public io.fabric8.kubernetes.client.KubernetesClient getKubernetes()
protected io.fabric8.kubernetes.api.Controller createController()
protected String getNamespace()
protected String getNamespaceForEnvironment(String environment) throws IllegalStateException
IllegalStateExceptionprotected io.fabric8.devops.ProjectConfig findProjectConfig()
fabric8.yml file in the root project or current directory
or returns an empty configuraitonpublic String getRouteDomain()
public void setRouteDomain(String routeDomain)
public boolean isRecreate()
public void setRecreate(boolean recreate)
public void setNamespace(String namespace)
public boolean isFailOnError()
public void setFailOnError(boolean failOnError)
public org.apache.maven.project.MavenProject getProject()
protected File getRootProjectFolder()
protected org.apache.maven.project.MavenProject getRootProject()
Copyright © 2011–2016 Red Hat. All rights reserved.