-
Notifications
You must be signed in to change notification settings - Fork 579
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
Design: Sharing Tasks and Pipelines without Copy Pasta #45
Comments
Related: tektoncd/pipeline#964, tektoncd/pipeline#964 |
https://docs.google.com/document/d/1WbqPX4wmT1XLoJTM7gKekxLIUSZkggAcosYhR3lA6YQ/ Writing up a design document to capture some concrete ideas of how to potentially alleviate copy pasta, particularly focused on command line use by a Tekton end user. Open to edit by anyone in https://groups.google.com/forum/#!forum/tekton-dev and open to view publicly |
Maybe a tekton cli option is possible. I find the catalog really useful; however, I only apply the task once. I dont think having a dedicated api is a real solution. However, I think having cli implementation is low hanging fruit. 1) tkapply() { kubectl get -f $1 -o json | http https://tekton-catalog-api.netlify.app/.netlify/functions/api/get/tasks | kubectl apply -f - }
2) tkapply <file> |
Related work that is also related is around the OCI image registry, and task versioning, see tektoncd/pipeline#1839 and tektoncd/community#137 (OCI TEP) |
And on this issue, also see tektoncd/pipeline#859 |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
It seems to me like this issue will be solved by @pierretasci's work in tektoncd/pipeline#1839, which will allow referencing Tasks and Pipelines in image registries, and opens the door to referencing other locations (e.g. git repos) as well. Seems reasonable to me to close this issue? (@vdemeester @popcor255 ) |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
/close |
@popcor255: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Closing since #2395 was merged. |
Expected Behavior
We should have a recommended path for how we expect people to make use of the Tasks and Pipelines that we make available in this repo, as well as how they can share Tasks and Pipelines within a company.
We want to be able to uphold these attributes:
Actual Behavior
At the moment the best way to use the Tasks and Pipelines in this repo would be to copy them (jokingly called "copy pasta") which would effectively fork them, meaning that copies can diverge over time.
Additional Info
One idea that might be worth exploring is using image registries (#29) to store Tasks and Pipelines as versioned artifacts. See https://stevelasker.blog/2019/01/25/cloud-native-artifact-stores-evolve-from-container-registries/.
The text was updated successfully, but these errors were encountered: