Fix: Updates the addon-operation WFS to newer image and corrects wait…

BR
1y ago
+71-64

… logic

Description of your changes

  1. Fixes issues with addon-operation not waiting for correct status reporting of the created Job (always showing as failed despite the addon succeeding).
  2. Updates the image in use (latest version) as step fails with the current image.

Fixes #

  1. https://github.com/kubevela/workflow/issues/207
  2. https://github.com/kubevela/workflow/issues/208

I have:

  • Read and followed KubeVela's contribution process.
  • [] ~~Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary. ~~
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

  • Reproduced issues locally with existing workflow step.
  • Deployed updated workstep step.
  • Confirmed addons are now created as expected and the WorkflowRun & Step correctly reflect the successful installation of the addon.

Special notes for your reviewer

N/A


Summary by cubic

Updated the addon-operation workflow step to use the latest image and fixed the wait logic so job status is reported correctly.

  • Bug Fixes

    • Fixed issue where the step always showed as failed even when the addon succeeded.
    • Improved wait logic to check both succeeded and failed job statuses.
  • Dependencies

    • Updated the default image to oamdev/vela-cli:v1.10.3.