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

Remote template refs #9682

Closed
adace123 opened this issue Sep 25, 2022 · 1 comment
Closed

Remote template refs #9682

adace123 opened this issue Sep 25, 2022 · 1 comment
Labels
area/workflow-templates solution/duplicate This issue or PR is a duplicate of an existing one type/feature Feature request

Comments

@adace123
Copy link

adace123 commented Sep 25, 2022

Summary

This would add the ability to reference workflow templates from remote sources via URL without needing to have them applied into a cluster, thus reducing maintenance burden.

I already have a partially working PoC of this running locally. The implementation thus far attempts to fetch the raw YAML from the URL, parse it into a WorkflowTemplate and then extract the indicated template from it.

For the sake of simplicity, I am storing the URL in a new RemoteTemplateRef struct, though it would certainly be possible to add it to the existing TemplateRef struct instead if that is preferred.

example:

remoteTemplateRef:
  url: https://github.com/codefresh-io/argo-hub/raw/main/workflows/argo-workflows-utils/versions/0.0.1/workflowTemplate.yaml
  template: echo

I have also not yet considered HTTP-related enhancements such as response caching, retries, timeouts etc., which may be desired for production usage. I would appreciate any feedback on that.

Assuming others are interested in this feature, I would very much like to continue building it out.

Use Cases

  • This would enable the ability to quickly use a utility template from a remote source (e.g. CodeFresh's Argo Hub repo) without needing to pre-install it. Would be interested in discovering what other potential use cases folks have for this feature.

Message from the maintainers:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

@agilgur5
Copy link
Member

This appears to have duplicated #2847, which had some discussion and has more upvotes

@agilgur5 agilgur5 added the solution/duplicate This issue or PR is a duplicate of an existing one label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/workflow-templates solution/duplicate This issue or PR is a duplicate of an existing one type/feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants