当 failFast 触发时,重试节点左侧永久运行,而它是失败的子节点(步骤模板,并行 + failFast + retryStrategy)

作者: capacman创建于 2026年9月1日更新于 2026年9月23日
yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: henkan-executor
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: henkan-executor
rules:
- apiGroups:
  - ""
  resources:
  - pods
  - services
  - configmaps
  - persistentvolumeclaims
  verbs:
  - '*'
- apiGroups:
  - ""
  resources:
  - pods/log
  verbs:
  - get
  - watch
- apiGroups:
  - ""
  resources:
  - pods/exec
  verbs:
  - create
- apiGroups:
  - networking.k8s.io
  resources:
  - ingresses
  verbs:
  - '*'
- apiGroups:
  - argoproj.io
  resources:
  - workflowtaskresults
  verbs:
  - create
  - patch
- apiGroups:
  - argoproj.io
  resources:
  - workflowtasksets
  - workflowartifactgctasks
  verbs:
  - list
  - watch
- apiGroups:
  - argoproj.io
  resources:
  - workflowtasksets/status
  - workflowartifactgctasks/status
  verbs:
  - patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: henkan-executor-rb
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: henkan-executor
subjects:
- kind: ServiceAccount
  name: henkan-executor-sa
---
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: bug-wft
spec:
  entrypoint: main
  serviceAccountName: henkan-executor-sa
  templates:
    - name: step-1
      container:
        image: alpine:3.20
        command: [sh, -c]
        args:
          - echo "step-1 run"
    - name: step-2
      container:
        image: alpine:3.20
        command: [sh, -c]
        args:
          - echo "step-2 output" > /tmp/output.txt
      outputs:
        parameters:
          - name: message
            valueFrom:
…

内容来源: argoproj/argo-workflows