@Mojo(name="uninstall") public class UninstallReleaseMojo extends AbstractSingleReleaseMojo
Constructor and Description |
---|
UninstallReleaseMojo()
Creates a new
UninstallReleaseMojo . |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(Callable<ReleaseManager> releaseManagerCallable)
|
boolean |
getDisableHooks()
Returns
true if chart
hooks are disabled. |
boolean |
getPurge()
Returns whether the release being uninstalled should be purged entirely
instead of being marked as deleted.
|
long |
getTimeout()
Returns the timeout value, in seconds, for Kubernetes operations.
|
void |
setDisableHooks(boolean disableHooks)
Sets whether chart
hooks are disabled.
|
void |
setPurge(boolean purge)
Sets whether the release being uninstalled should be purged
entirely instead of being marked as deleted.
|
void |
setTimeout(long timeoutInSeconds)
Sets the timeout value, in seconds, for Kubernetes operations.
|
getReleaseName, setReleaseName, validateReleaseName
createClient, createReleaseManager, createTiller, execute, getClientConfiguration, getSkip, getTillerLabels, getTillerNamespace, getTillerPort, setClientConfiguration, setSkip, setTillerLabels, setTillerNamespace, setTillerPort, validateNamespace
getLog, getPluginContext, setLog, setPluginContext
public UninstallReleaseMojo()
UninstallReleaseMojo
.protected void execute(Callable<ReleaseManager> releaseManagerCallable) throws Exception
ReleaseManager
available from the supplied Callable
.
This implementation uninstalls the release with the supplied release name.
execute
in class AbstractReleaseMojo
releaseManagerCallable
- the Callable
that will
provide a ReleaseManager
; must not be null
Exception
- if an error occurspublic boolean getDisableHooks()
true
if chart
hooks are disabled.true
if chart
hooks are disabledsetDisableHooks(boolean)
public void setDisableHooks(boolean disableHooks)
disableHooks
- if true
, chart
hooks will be disabledgetDisableHooks()
public boolean getPurge()
true
if the release being uninstalled should be
purged entirely instead of being marked as deleted; false
if it should be marked as deletedsetPurge(boolean)
public void setPurge(boolean purge)
purge
- if true
the release being uninstalled will
be purged entirelygetPurge()
public long getTimeout()
setTimeout(long)
public void setTimeout(long timeoutInSeconds)
timeoutInSeconds
- the timeout value, in seconds, for Kubernetes
operationsgetTimeout()
Copyright © 2017–2018, microBean. All rights reserved.