-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Audit and document "paths" in Tekton Pipelines API #1030
Comments
/assign @houshengbo |
@bobcatfish I actually propose the idea that we keep these special folders as internal as possible, so that user do not need to care about them UNLESS they have to. With that being implemented, instead of using paths like, IMO, there are really many benefits, if we can shield these special folders(as many as possible): 1. We surely simplifies how we use Tekton. Folks only care the path, they need to care. 2. Since all the hardcoded path or folders are shielded away from users, we do not have to document these special folders as well. It is a simplification of reading our docs. Does it make sense? |
That's an interesting idea @houshengbo ! I think there are kind of 4 main use cases (maybe some others I'm not thinking of):
I think what you are proposing would address (1) by making it so that path to resources is always |
A small issue related to name conflicts: right now weird things might happen if we have an input resource named |
I think we might consider simplifying things for the stuff we get for free, and should either go all-in on "workspace" as a concept or not at all. I get the idea of targetPath customization for input and output resources but it really dilutes the value of the "workspace". Setting HOME to Anyway...
[This is basically what we have today with a change to HOME and no targetPath resource support] OR
[So efficient... but takes away some of the value of Tekton convention] |
Update our API compatibility policy as discussed and outlined in the beta policy and plan doc (https://docs.google.com/document/d/1H8I2Rk4kLdQaR4mV0A71Qbk-1FxXFrmvisEAjLKT6H0/edit# which is visible to members of [the tekton-dev mailing list](https://github.com/tektoncd/community/blob/master/contact.md#mailing-list)). As a bonus, since we consider the directories used by Tekton as part of our API, this also fixes tektoncd#1030.
Update our API compatibility policy as discussed and outlined in the beta policy and plan doc (https://docs.google.com/document/d/1H8I2Rk4kLdQaR4mV0A71Qbk-1FxXFrmvisEAjLKT6H0/edit# which is visible to members of [the tekton-dev mailing list](https://github.com/tektoncd/community/blob/master/contact.md#mailing-list)). As a bonus, since we consider the directories used by Tekton as part of our API, this also fixes tektoncd#1030.
Update our API compatibility policy as discussed and outlined in the beta policy and plan doc (https://docs.google.com/document/d/1H8I2Rk4kLdQaR4mV0A71Qbk-1FxXFrmvisEAjLKT6H0/edit# which is visible to members of [the tekton-dev mailing list](https://github.com/tektoncd/community/blob/master/contact.md#mailing-list)). As a bonus, since we consider the directories used by Tekton as part of our API, this also fixes tektoncd#1030.
Update our API compatibility policy as discussed and outlined in the beta policy and plan doc (https://docs.google.com/document/d/1H8I2Rk4kLdQaR4mV0A71Qbk-1FxXFrmvisEAjLKT6H0/edit# which is visible to members of [the tekton-dev mailing list](https://github.com/tektoncd/community/blob/master/contact.md#mailing-list)). As a bonus, since we consider the directories used by Tekton as part of our API, this also fixes #1030.
Expected Behavior
Actual Behavior
There are a number of special directories, but I'm not sure how many or how they relate to each other. There is no one place in the docs to find this info, nor one place in the code (paths like
/builder
and/workspace
are often hardcoded directly).Additional Info
/workspace
already)The text was updated successfully, but these errors were encountered: