Package com.redhat.parodos.tasks.deploy
Class DeployApplicationTask
java.lang.Object
com.redhat.parodos.workflow.task.BaseWorkFlowTask
com.redhat.parodos.tasks.deploy.DeployApplicationTask
- All Implemented Interfaces:
WorkFlowTask,com.redhat.parodos.workflows.work.Work,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
-
Field Summary
Fields inherited from class com.redhat.parodos.workflow.task.BaseWorkFlowTask
taskLogger -
Constructor Summary
ConstructorsConstructorDescriptionDeployApplicationTask(com.redhat.parodos.tasks.deploy.DeployApplicationTask.OpenShiftClientCreator clientCreator) -
Method Summary
Modifier and TypeMethodDescriptioncom.redhat.parodos.workflows.work.WorkReportexecute(com.redhat.parodos.workflows.work.WorkContext workContext) Executes the task logic, based on the following steps: Verify parameters are present Load the manifests Deploy the manifests Update the context with the installed application routes@NonNull List<WorkParameter>Methods inherited from class com.redhat.parodos.workflow.task.BaseWorkFlowTask
addParameter, getAllParameters, getMainExecutionId, getName, getOptionalParameterValue, getProjectId, getRequiredParameterValue, getWorkFlowCheckers, preExecute, setBeanName, setWorkFlowCheckersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.redhat.parodos.workflow.task.WorkFlowTask
getAsJsonSchema, getWorkFlowTaskOutputs
-
Constructor Details
-
DeployApplicationTask
public DeployApplicationTask() -
DeployApplicationTask
public DeployApplicationTask(com.redhat.parodos.tasks.deploy.DeployApplicationTask.OpenShiftClientCreator clientCreator)
-
-
Method Details
-
getWorkFlowTaskParameters
-
execute
public com.redhat.parodos.workflows.work.WorkReport execute(com.redhat.parodos.workflows.work.WorkContext workContext) Executes the task logic, based on the following steps:-
Verify parameters are present
-
Load the manifests
-
Deploy the manifests
-
Update the context with the installed application routes
- Parameters:
workContext- context in which this unit of work is being executed- Returns:
- a
WorkReportwith the result of the execution
-