public class TLSCleanupStep extends AbstractStep
TLSCleanupStep removes all provisioned TLSArtifacts from secrets service in a given namespace.id| Constructor and Description |
|---|
TLSCleanupStep(SecretsClient secretsClient,
java.lang.String namespace)
Creates a new instance with initial
status. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getErrors()
Returns a list of user-visible descriptive error messages associated with this Element.
|
java.util.Optional<PodInstanceRequirement> |
getPodInstanceRequirement()
Return the pod instance that this Step intends to work on.
|
java.util.Optional<PodInstanceRequirement> |
start()
Starts the Step, whose
Status should be Status.PENDING. |
void |
update(Protos.TaskStatus status)
Provides the Element with a recent
TaskStatus update which was received from Mesos. |
void |
updateOfferStatus(java.util.Collection<OfferRecommendation> recommendations)
Notifies the Step whether the
PodInstanceRequirement previously returned by
Step.start() has been successfully accepted/fulfilled. |
equals, forceComplete, getId, getName, getStatus, hashCode, interrupt, isInterrupted, proceed, restart, setStatus, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDisplayStatus, getMessage, isAssetDirty, isEligiblehasErrors, isComplete, isPending, isPrepared, isRunning, isStarted, isStarting, updateParametersTLSCleanupStep(SecretsClient secretsClient, java.lang.String namespace)
status.public java.util.Optional<PodInstanceRequirement> start()
StepStatus should be Status.PENDING. Returns an
PodInstanceRequirement, or an empty Optional if obtaining/updating resource requirements are not
applicable to the Step. This will continue to be called for as long as Element.isPending() returns
true.#updateOfferStatus(Collection)} which returns the outcome of
the {@link PodInstanceRequirement} public java.util.Optional<PodInstanceRequirement> getPodInstanceRequirement()
Steppublic void updateOfferStatus(java.util.Collection<OfferRecommendation> recommendations)
StepPodInstanceRequirement previously returned by
Step.start() has been successfully accepted/fulfilled. The recommendations param is
empty when no offers matching the requirement previously returned by Step.start()
could be found. This is only called if Step.start() returned a non-empty
PodInstanceRequirement.public java.util.List<java.lang.String> getErrors()
Elementpublic void update(Protos.TaskStatus status)
ElementTaskStatus update which was received from Mesos.