-
Notifications
You must be signed in to change notification settings - Fork 145
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
On cluster build: Don't reference tasks from knative/func git repo #1858
Comments
Any update? Facing same issue. "error":"1 error occurred:\n\t Couldn't retrieve Task "func-buildpacks": tasks.tekton.dev "func-buildpacks" not found* complete logs |
@phutaneVinayak This is odd, what version of func do you use? |
What command did you invoke? |
Hi @matejvasek , I try below command Which help to deploy function from current folder to cluster. I am trying on cluster build. Can you give me bit more perfect way to do it. It would be much helpful. |
@phutaneVinayak change is in v1.11.0. |
You need update. |
On v1.10.0 you need to install the tasks manually using |
Hi @matejvasek , Can we have task git url? or need to manually create task in tekton pipeline ? I will also try to update to kn-func to 1.11.0 |
They are under https://github.com/knative/func/tree/main/pkg/pipelines/resources/tekton/task . |
Hi @matejvasek , Really really thank you :) . I try both way. |
Hi @matejvasek , I updated kn-func to 1.11.0 It worked 👍 thanks a lot. |
This issue is stale because it has been open for 90 days with no |
Pipelines used by the on cluster build implemented by Standard Tekton approach reference func related tasks hosted on this repo. The only approach that we can use with the Standard Tekton is the Git resolver - it fetches the whole repo and then use tasks in this repo:
func/pkg/pipelines/tekton/templates.go
Lines 37 to 69 in 79c36ee
On the other hand, Pipelines as Code apporach that we use for a part of on cluster build also supports URL resolver - then we can just reference a single file hosted in some repo and the whole resolving is much faster:
func/pkg/pipelines/tekton/templates.go
Lines 29 to 31 in 79c36ee
Using Git resolver might be problematic when the referenced task is hosted in a large git repo - it takes some time to fetch the whole repo. I opened issue on Tekton to add URL resolver - tektoncd/pipeline#6920
We should mitigate the problem with the lengthy resolver, there are a couple of solutions:
Affected tasks:
The text was updated successfully, but these errors were encountered: