Skip to content

Addon-Operation - WFR Status Always Shows Failed #207

@briankane

Description

@briankane

Describe the bug
When deploying addons with the addon-operation workflow step, the WorkflowRun always shows status failed despite the addon successfully installing.

To Reproduce
Apply this WorkflowRun:

apiVersion: core.oam.dev/v1alpha1
kind: WorkflowRun
metadata:
  name: test-addon-operation
  namespace: default
spec:
  context:
    readConfig: true
    mode:
  workflowSpec:
    steps:
      - name: Enable Prism
        type: addon-operation
        properties:
          addonName: vela-prism
          image: "oamdev/vela-cli:v1.10.3"

Check the WFR status which will be in failed status:

kubectl get workflowruns.core.oam.dev test-addon-operation

However, the addon status will be enabled (or will be):

vela addon status vela-prism

Expected behavior
The WFR should correctly reflect that the addon installed successfully.

Screenshots

KubeVela Version
CLI Version: 1.10.3
Core Version: 1.10.3

Cluster information
Client Version: v1.31.2

Additional context
I'm using an updated image in the addon-operation properties due to the separate issue described in #208

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions