public abstract class AbstractSingleReleaseMojo extends AbstractReleaseMojo
AbstractReleaseMojo
that works on exactly one Helm release.Modifier | Constructor and Description |
---|---|
protected |
AbstractSingleReleaseMojo()
Creates a new
AbstractSingleReleaseMojo . |
Modifier and Type | Method and Description |
---|---|
String |
getReleaseName()
Returns the release name.
|
void |
setReleaseName(String releaseName)
Sets the release name.
|
protected void |
validateReleaseName(String name)
Validates the supplied
name as a Helm release
name. |
createClient, createReleaseManager, createTiller, execute, execute, getClientConfiguration, getSkip, getTillerLabels, getTillerNamespace, getTillerPort, setClientConfiguration, setSkip, setTillerLabels, setTillerNamespace, setTillerPort, validateNamespace
getLog, getPluginContext, setLog, setPluginContext
protected AbstractSingleReleaseMojo()
AbstractSingleReleaseMojo
.public String getReleaseName()
This method may return null
.
Overrides of this method may return null
.
null
setReleaseName(String)
public void setReleaseName(String releaseName)
releaseName
- the name of the release; must not be null
and must pass
validationgetReleaseName()
protected void validateReleaseName(String name)
name
as a Helm release
name.
This implementation checks to see if the supplied name
is non-null
, not empty, and
matches the value of the ReleaseManager.DNS_SUBDOMAIN_PATTERN
field.
name
- the release name to validate; must not be null
IllegalArgumentException
- if name
is not validCopyright © 2017–2018, microBean. All rights reserved.