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

The UI example for a template is deprecated #3092

Closed
alexec opened this issue May 22, 2020 · 0 comments · Fixed by #3116
Closed

The UI example for a template is deprecated #3092

alexec opened this issue May 22, 2020 · 0 comments · Fixed by #3116
Labels

Comments

@alexec
Copy link
Contributor

alexec commented May 22, 2020

When I attempt to submit a workflow template, it uses this YAML:

{
  "metadata": {
    "generateName": "job-",
    "namespace": "argo"
  },
  "spec": {
    "entrypoint": "main",
    "templates": [
      {
        "name": "main",
        "templateRef": {
          "name": "job",
          "template": "main"
        }
      }
    ]
  }
}

But this YAML has a warning in the conditions:

 SpecWarning: Referencing/calling other templates directly on a "template" is deprecated; they should be referenced in a "steps" or a "dag" template. See more: https://github.com/argoproj/argo/blob/master/docs/workflow-templates.md#referencing-other-workflowtemplates

We should probably use YAML that is not deprecated!

@simster7 - would you like to own this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant