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

builder short name constants etc throughout #1180

Merged
merged 9 commits into from
Aug 24, 2022

Conversation

lkingland
Copy link
Member

@lkingland lkingland commented Aug 22, 2022

  • 🧹 Full adoption of builder short name constants throughout.

Pulls out builder names, validators and error types into their own package.

Moves validators of builder names into main, which is closest to where knowledge of the correct set resides.

/kind chore

@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 22, 2022
@knative-prow
Copy link

knative-prow bot commented Aug 22, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lkingland

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 22, 2022
@codecov
Copy link

codecov bot commented Aug 22, 2022

Codecov Report

Merging #1180 (e4a2e29) into main (b3ced5e) will increase coverage by 0.07%.
The diff coverage is 90.69%.

@@            Coverage Diff             @@
##             main    #1180      +/-   ##
==========================================
+ Coverage   43.34%   43.42%   +0.07%     
==========================================
  Files          68       68              
  Lines        9579     9606      +27     
==========================================
+ Hits         4152     4171      +19     
- Misses       5032     5038       +6     
- Partials      395      397       +2     
Impacted Files Coverage Δ
cmd/completion_util.go 0.00% <0.00%> (ø)
pipelines/tekton/resources.go 0.00% <0.00%> (ø)
builders/builders.go 84.21% <84.21%> (ø)
buildpacks/builder.go 35.77% <100.00%> (-6.47%) ⬇️
cmd/build.go 68.62% <100.00%> (+2.85%) ⬆️
cmd/deploy.go 59.26% <100.00%> (ø)
s2i/builder.go 62.24% <100.00%> (-1.99%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@lkingland lkingland changed the title builder short name constants edot: adopt builder short name constants throughout Aug 22, 2022
@lkingland lkingland changed the title edot: adopt builder short name constants throughout edot: builder short name constants throughout Aug 22, 2022
@lkingland lkingland changed the title edot: builder short name constants throughout chore: builder short name constants throughout Aug 22, 2022
@lkingland lkingland changed the title chore: builder short name constants throughout builder short name constants etc throughout Aug 22, 2022
@lkingland lkingland marked this pull request as ready for review August 22, 2022 12:18
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 22, 2022
@@ -1,33 +0,0 @@
package function
Copy link
Member Author

Choose a reason for hiding this comment

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

most of this file moved to builders/builder.go

lkingland added a commit to lkingland/func that referenced this pull request Aug 22, 2022
@lance lance added this to the 0.26.0 Release milestone Aug 23, 2022
Copy link
Member

@lance lance left a comment

Choose a reason for hiding this comment

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

Looks good overall. Just a couple of questions about constant usage in 2 places.

buildpacks/builder.go Outdated Show resolved Hide resolved
buildpacks/builder.go Show resolved Hide resolved
cmd/build.go Outdated Show resolved Hide resolved
s2i/builder.go Outdated Show resolved Hide resolved
s2i/builder.go Show resolved Hide resolved
@lkingland
Copy link
Member Author

Thanks @lace for the review. All comments should now have been processed

@lance
Copy link
Member

lance commented Aug 24, 2022

@lkingland needs rebase - otherwise lgtm

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 24, 2022
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 24, 2022
Copy link
Member

@lance lance left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Aug 24, 2022
@knative-prow knative-prow bot merged commit e6ec11b into knative:main Aug 24, 2022
@lkingland lkingland deleted the lkingland/builder-constants branch September 20, 2022 00:59
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. kind/chore lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants