@Mojo(name="update") public class UpdateReleaseMojo extends AbstractForceableMutatingReleaseMojo
| Constructor and Description |
|---|
UpdateReleaseMojo(MavenProject project,
MavenSession session)
Creates a new
UpdateReleaseMojo. |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractChartLoader<URL> |
createChartLoader()
Creates and returns an
AbstractChartLoader capable of
loading a Helm chart from a URL. |
protected void |
execute(Callable<ReleaseManager> releaseManagerCallable)
|
URL |
getChartUrl()
Returns a
URL identifying a Helm chart that can be read
by the AbstractChartLoader produced by the createChartLoader() method. |
boolean |
getResetValues()
Returns
true if, during the update, values should be
reset to the values built in to the new chart. |
boolean |
getReuseValues()
Returns
true if, during the update, any new values should
be merged with those present in the prior version of the release
being updated. |
String |
getValuesYaml()
Returns a YAML
String representing the values to use to
customize the update. |
URI |
getValuesYamlUri()
Returns a
URI identifying a YAML document containing the
values to use to customize the installation. |
void |
setChartUrl(URL chartUrl)
Sets the
URL identifying a Helm chart that can be read
by the AbstractChartLoader produced by the createChartLoader() method. |
void |
setResetValues(boolean resetValues)
Sets whether, during the update, values should be
reset to the values built in to the new chart.
|
void |
setReuseValues(boolean reuseValues)
Sets whether, during the update, any new values should
be merged with those present in the prior version of the release
being updated.
|
void |
setValuesYaml(String valuesYaml)
Installs a YAML
String representing the values to use to
customize the update. |
void |
setValuesYamlUri(URI valuesYamlUri)
Sets the
URI identifying a YAML document containing the
values to use to customize the installation. |
getForce, getRecreate, setForce, setRecreategetDisableHooks, getDryRun, getTimeout, getWait, setDisableHooks, setDryRun, setTimeout, setWaitgetReleaseName, setReleaseName, validateReleaseNamecreateClient, createReleaseManager, createTiller, execute, getClientConfiguration, getSkip, getTillerLabels, getTillerNamespace, getTillerPort, setClientConfiguration, setSkip, setTillerLabels, setTillerNamespace, setTillerPort, validateNamespacegetLog, getPluginContext, setLog, setPluginContext@Inject public UpdateReleaseMojo(MavenProject project, MavenSession session)
UpdateReleaseMojo.project - the MavenProject in effect; must not be
nullsession - the MavenSession in effect; must not be
nullNullPointerException - if either project or
session is nullprotected void execute(Callable<ReleaseManager> releaseManagerCallable) throws Exception
ReleaseManager
available from the supplied Callable.
This implementation updates the release named by the supplied release name with a new chart residing at the indicated URL.
execute in class AbstractReleaseMojoreleaseManagerCallable - the Callable that will
provide a ReleaseManager; must not be nullException - if an error occurspublic URL getChartUrl()
URL identifying a Helm chart that can be read
by the AbstractChartLoader produced by the createChartLoader() method.
This method may return null.
URL to a Helm chart, or nullsetChartUrl(URL)public void setChartUrl(URL chartUrl)
URL identifying a Helm chart that can be read
by the AbstractChartLoader produced by the createChartLoader() method.chartUrl - the URL identifying a Helm chart that can
be read by the AbstractChartLoader produced by the createChartLoader() method; may be nullpublic boolean getResetValues()
true if, during the update, values should be
reset to the values built in to the new chart.true if, during the update, values should be
reset to the values built in to the new chart; false otherwisesetResetValues(boolean)public void setResetValues(boolean resetValues)
resetValues - if true, during the update values will
be reset to the values built in to the new chartgetResetValues()public boolean getReuseValues()
true if, during the update, any new values should
be merged with those present in the prior version of the release
being updated.true if, during the update, any new values should
be merged with those present in the prior version of the release
being updated; false otherwisesetReuseValues(boolean)public void setReuseValues(boolean reuseValues)
reuseValues - if true during the update any new
values will be merged with those present in the prior version of
the release being updatedgetReuseValues()public String getValuesYaml()
String representing the values to use to
customize the update.
This method may return null.
Overrides of this method may return null.
String representing the values to use to
customize the update, or nullsetValuesYaml(String)public void setValuesYaml(String valuesYaml)
String representing the values to use to
customize the update.valuesYaml - the YAML String representing the values to use to
customize the update; may be nullgetValuesYaml()public URI getValuesYamlUri()
URI identifying a YAML document containing the
values to use to customize the installation.
This method may return null.
Overrides of this method may return null.
URI identifying a YAML document containing the
values to use to customize the installation, or nullsetValuesYamlUri(URI)public void setValuesYamlUri(URI valuesYamlUri)
URI identifying a YAML document containing the
values to use to customize the installation.valuesYamlUri - the URI identifying a YAML document
containing the values to use to customize the installation; may
be nullgetValuesYamlUri()protected AbstractChartLoader<URL> createChartLoader()
AbstractChartLoader capable of
loading a Helm chart from a URL.
This method never returns null.
Overrides of this method must not return null.
This implementation returns a new URLChartLoader.
AbstractChartLoader implementation; never
nullCopyright © 2017–2018, microBean. All rights reserved.