有没有办法覆盖 argo 中“WorkflowTemplate-retryStrategy”的值?
目前我们在 Argo WorkflowTemplate 中使用硬编码的 retryStrategy ,如下所示(示例代码):
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: workflowtemplate-1
spec:
entrypoint: task-template-1
arguments:
parameters:
- name: "test"
value: "testing"
templates:
- name: task-template-1
retryStrategy:
limit: 1
retryPolicy: "Always"
inputs:
parameters:
- name: "test"
有什么方法可以将它作为工作流参数(或类似的东西)的一部分覆盖?就像下面代码中注释的“#”值:
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: sample-workflow
spec:
workflowTemplateRef:
name: workflowtemplate-1
# retryStrategy:
# limit: 3
# retryPolicy: "Always"
arguments:
parameters:
# - name: "retry"
# value: "2"