-
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
Refactor the Storage resource interface to remove a type switch state… #1135
Conversation
…ment. Right now the upload phase for artifacts needs to behave differently between normal resources and storage (GCS, BuildGCS) resources, leading to type switches in this code. This refactor moves that logic up into the normal Resource interface, allowing the logic to remain uniform between the two resource types.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dlorenc 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 |
/lgtm |
The following is the coverage report on pkg/.
|
…ment. This change refactors the way input resources attach volumes to their steps. Previously, there was a special-cased switch statement for Storage type resources. This made the logic for resources hard to follow, and spread across the codebase. This change refactors that by moving it up into the general Resource interface. This is another follow-on to tektoncd#1135
…ment. This change refactors the way input resources attach volumes to their steps. Previously, there was a special-cased switch statement for Storage type resources. This made the logic for resources hard to follow, and spread across the codebase. This change refactors that by moving it up into the general Resource interface. This is another follow-on to tektoncd#1135
…ment. This change refactors the way input resources attach volumes to their steps. Previously, there was a special-cased switch statement for Storage type resources. This made the logic for resources hard to follow, and spread across the codebase. This change refactors that by moving it up into the general Resource interface. This is another follow-on to #1135
yussssssss |
hm but it looks like all the coverage went down |
…ment.
Changes
Right now the upload phase for artifacts needs to behave differently between
normal resources and storage (GCS, BuildGCS) resources, leading to type switches
in this code.
This refactor moves that logic up into the normal Resource interface, allowing the
logic to remain uniform between the two resource types.
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.