1 Star 0 Fork 0

yutiansut / argo-workflows

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
wft.yaml 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
# Base workflow referenced by other workflow templates
# The goal is to create several different templates that can be used to conveniently instantiate
# this workflow with different default values.
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: base-template
namespace: argo
spec:
entrypoint: base-main
arguments:
parameters:
- name: base1
value: NO_DEFAULT # needed to make this show up in the UI, is there a better way?
- name: base2
value: NO_DEFAULT
- name: base3
value: NO_DEFAULT
templates:
- name: base-main
inputs:
parameters:
- name: base1
- name: base2
- name: base3
container:
image: "docker/whalesay"
command: [cowsay]
args:
- "{{inputs.parameters.base1}}"
- "{{inputs.parameters.base2}}"
- "{{inputs.parameters.base3}}"
---
# The field reference suggests that WorkflowTemplateSpec has a workflowTemplateRef field on it, and this workflow template is
# able to be created, but when you submit via the UI or CLI it fails to find the entrypoint.
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: child-template-broken
namespace: argo
spec:
entrypoint: base-main
arguments:
parameters:
# From UI or CLI, user can just set base3, and can override others if they wish
- name: base1
value: default_value_1
- name: base2
value: default_value_2
- name: base3
value: NO_DEFAULT
workflowTemplateRef:
# Internal Server Error: template reference child-template.base-main not found
name: base-template # Base workflow referenced by other workflow templates
1
https://gitee.com/yutiansut/argo-workflows.git
git@gitee.com:yutiansut/argo-workflows.git
yutiansut
argo-workflows
argo-workflows
master

搜索帮助