Skip to content

Conversation

@majiayu000
Copy link

Fixes #413

Changes

  • Add GetDeleteWorkflowCompletedConditionStatus and MarkDeleteWorkflowAsRunning functions in resourceutil
  • Update DeleteWorkflowCompleted condition to indicate pipelines are in progress when delete workflow starts
  • Follow the same pattern as ConfigureWorkflow condition handling

…tarts

Add support for updating the DeleteWorkflowCompleted status condition when
a delete workflow is triggered. This mirrors the existing behavior for
configure workflows, where the condition is set to False with reason
"PipelinesInProgress" when the workflow starts.

Changes:
- Add GetDeleteWorkflowCompletedConditionStatus() function
- Add MarkDeleteWorkflowAsRunning() function
- Add setDeleteWorkflowCompletedConditionStatus() in workflow reconciler
- Update createDeletePipeline() to set condition before creating the job
- Add test for the new condition update behavior

Signed-off-by: majiayu000 <1835304752@qq.com>
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: update promise and resource status condition when delete workflow is triggered

2 participants