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

feat: builder flag with s2i option #842

Closed
wants to merge 21 commits into from

Conversation

lkingland
Copy link
Member

@lkingland lkingland commented Feb 21, 2022

Changes

  • 🎁 can specify the S2I builder with --builder flag

The default builder for Functions is Pack, with the option to specify S2I using --builder s2i.

WIP:
Currently only --language node is supported
The ability to use custom implementations of Builder in the Build command is temporarily unavailable while we consolidate the Client creation process into a single default constructor in #824 and #825.

Update 2/28: The aforementioned are now merged, so this is now dependent on #865 #868 and #869, and probably a few more.

Update 3/16: The aforementioned are now merged or closed, so this is dependent on #883

/kind enhancement

@knative-prow-robot knative-prow-robot added kind/enhancement do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Feb 21, 2022
@knative-prow-robot
Copy link

@lkingland: PR needs rebase.

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.

@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Feb 21, 2022
@knative-prow-robot
Copy link

[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-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 21, 2022
@lkingland lkingland changed the title Lkingland/s2i builder feat: builder flag with s2i option Feb 21, 2022
@lkingland lkingland self-assigned this Feb 21, 2022
This is known to fail CI on OS X.  This commit includes the new files
from runnin update-codegen.sh, but will likely fail CI requiring more
manual intervention.
// DefaultBuilderImages for Pack builders indexed by Runtime Language
var DefaultBuilderImages = map[string]string{
"node": "gcr.io/paketo-buildpacks/builder:base",
"go": "gcr.io/paketo-buildpacks/builder:base",
Copy link
Member

Choose a reason for hiding this comment

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

Will this eventually have a key for all runtimes supported by paketo?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, and more specifically for all runtimes we support. For users providing completely new runtimes/templates that we are not aware of and map here, they will need to set that value in their custom language pack's manifest.yaml

@lkingland
Copy link
Member Author

Closed in favor of #923

@lkingland lkingland closed this Mar 30, 2022
@lkingland lkingland deleted the lkingland/s2i-builder branch September 20, 2022 01:09
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. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/enhancement needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. 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.

3 participants