Skip to content

Parent step‘s status is “skipped” but its child step was still executed #145

@Sibyl1122

Description

@Sibyl1122

To Reproduce

yaml

apiVersion: core.oam.dev/v1alpha1
kind: WorkflowRun
metadata:
  name: test-tgt
  namespace: default
  annotations:
    workflowrun.oam.dev/debug: "true"
spec:
  mode:
    steps: StepByStep
    subSteps: StepByStep
  workflowSpec:
    steps:
      - name: mig-group
        type: step-group
        if: input.mock == true
        subSteps:
          - name: read-pod
            type: read-pod
            properties:
              namespace: appworkflow
              podName: hdfsjournalnode-286nr-0

cue:

import (
	"vela/op"
)

"read-pod": {
	alias: ""
	annotations: {}
	attributes: {}
	description: ""
	labels: {}
	type: "workflow-step"
}

template: {
	parameter: {
		podName:   string
		namespace: string
	}
	read: op.#Read & {
		value: {
			kind:       "Pod"
			apiVersion: "v1"
			metadata: {
				name:      parameter.podName
				namespace: parameter.namespace
			}
		}
	}

}

Expected behavior

Screenshots

image

Workflow Version
v0.4.2

Cluster information

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions