代码拉取完成,页面将自动刷新
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。