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

Update the git fetch task to include all params used in the Git PipelineResource #182

Merged
merged 1 commit into from Feb 17, 2020

Conversation

ghost
Copy link

@ghost ghost commented Feb 14, 2020

Changes

This commit makes several changes to the fetch-git task in the catalog:

  1. 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.

  2. Replace the volume mount with a workspace. This is done to promote workspaces
    as the way to weave volumes through a pipeline.

  3. Emit the fetched SHA as a Task Result which will soon be consumable by other
    tasks in a pipeline.

  4. 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.

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 14, 2020
…ineResource

This commit makes several changes to the fetch-git task in the catalog:

1. 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.

2. Replace the volume mount with a workspace. This is done to promote workspaces
as the way to weave volumes through a pipeline.

3. Emit the fetched SHA as a Task Result which will soon be consumable by other
tasks in a pipeline.

4. 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 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.
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/meow

Question (for the future), shouldn't we use a simple image (ubuntu + git or something) and directly use git in script ? 🤔

@tekton-robot
Copy link

@vdemeester: cat image

In response to this:

/lgtm
/meow

Question (for the future), shouldn't we use a simple image (ubuntu + git or something) and directly use git in script ? 🤔

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.

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 17, 2020
@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 17, 2020
@tekton-robot tekton-robot merged commit 27c524b into tektoncd:master Feb 17, 2020
@ghost
Copy link
Author

ghost commented Feb 18, 2020

Question (for the future), shouldn't we use a simple image (ubuntu + git or something) and directly use git in script ? thinking

💯 agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants