Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sibyl1122 opened this issue Mar 2, 2023 · 1 comment

Comments

@Sibyl1122
Copy link

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

@FogDong
Copy link
Member

FogDong commented May 9, 2023

I think I've fixed this issue before, can you update to the latest version and give it a try?

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

No branches or pull requests

2 participants