Update the git fetch task to include all params used in the Git PipelineResource #182
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
This commit makes several changes to the fetch-git task in the catalog:
Update the set of params to match all those of the Git PipelineResource. This
has been done because the Git PipelineResource is remaining alpha when the rest
of Tekton Pipelines goes beta. This task should provide an easy transition for
users currently relying on the pipeline resource.
Replace the volume mount with a workspace. This is done to promote workspaces
as the way to weave volumes through a pipeline.
Emit the fetched SHA as a Task Result which will soon be consumable by other
tasks in a pipeline.
Rename it to git-clone per feedback on the PR for the original fetch-git.
This PR continues to use the git-init image that is built as part of Tekton Pipelines.
I think that this is fine for now (?) but that we should eventually rewrite the
git-init binary as a script directly inside the git-clone task so that users can
more easily see exactly what the task does. On the bright side this does have the
benefit that the behaviour of the task will exactly mirror the pipeline reosurce
for compatibility's sake.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide
for more details.