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

Remove cmd/gsutil image #1504

Merged
merged 1 commit into from
Oct 31, 2019
Merged

Remove cmd/gsutil image #1504

merged 1 commit into from
Oct 31, 2019

Conversation

imjasonh
Copy link
Member

@imjasonh imjasonh commented Oct 31, 2019

Based on #1503

This image wrapped any image with gsutil in the path (typically,
google/cloud-sdk), and invoked it with our own custom Go wrapper.
That's unnecessary, since gsutil can be invoked directly as necessary,
using any image where gsutil is in the PATH (google/cloud-sdk is the
default).

This change should be entirely transparent to end users.

Operators can override the image being used if they so desire, to point
to any image that contains gsutil.

Historical note: cmd/gsutil was added in #321, ostensibly to fix #124, though the specific rationale for the wrapper script might be lost to time. 🕥

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.

Double check this list of stuff that's easy to miss:

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

Release Notes

Use google/cloud-sdk directly to invoke gsutil in support of internal operations, instead of our own wrapper around that image.

@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Oct 31, 2019
@tekton-robot tekton-robot requested review from dibyom and a user October 31, 2019 02:19
@tekton-robot tekton-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 31, 2019
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/artifact_bucket.go 83.3% 80.0% -3.3

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/artifact_bucket.go 83.3% 80.0% -3.3

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.

@imjasonh what are those .go-e files ? I feel they shouldn't be there 😛

pkg/apis/pipeline/v1alpha1/artifact_bucket.go-e Outdated Show resolved Hide resolved
Based on tektoncd#1503

This image wrapped any image with `gsutil` in the path (typically,
`google/cloud-sdk`), and invoked it with our own custom Go wrapper.
That's unnecessary, since `gsutil` can be invoked directly as necessary,
using any image where `gsutil` is in the PATH (`google/cloud-sdk` is the
default).

This change should be entirely transparent to end users.

Operators can override the image being used if they so desire, to point
to any image that contains `gsutil`.
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/artifact_bucket.go 81.8% 80.0% -1.8

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

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 31, 2019
@tekton-robot
Copy link
Collaborator

[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 Oct 31, 2019
@imjasonh
Copy link
Member Author

/test pull-tekton-pipeline-integration-tests

1 similar comment
@ghost
Copy link

ghost commented Oct 31, 2019

/test pull-tekton-pipeline-integration-tests

@imjasonh
Copy link
Member Author

/test pull-tekton-pipeline-integration-tests

❄️

@ghost
Copy link

ghost commented Oct 31, 2019

/lgtm

@ghost
Copy link

ghost commented Dec 16, 2019

Looks like our gsutil wrapper may have been introduced to solve an issue similar to this one.

We had an explicit issue around this here

@imjasonh
Copy link
Member Author

It sounds like gcloud expects users to call gcloud auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS before making calls.

We shouldn't introduce an image to run this for users, I think. Instead we should document this and make sure users know that gcloud expects this of them.

@ghost
Copy link

ghost commented Dec 16, 2019

Sounds good to me. We... probably need to consider this a breaking change in 0.9 tho right? I'll update the release notes.

@imjasonh
Copy link
Member Author

Yeah. If we guarantee this behavior going forward we should add a test.

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. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Design Output handling
4 participants