Skip to content

Conversation

@matejvasek
Copy link
Contributor

This is in particular useful for using paket bindings, e.g. to inject git credentials into build process.

Changes

/kind

Fixes #

Release Note


Docs


This is in particular useful for using paket bindings,
e.g. to inject git credentials into build process.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
@knative-prow
Copy link

knative-prow bot commented Mar 19, 2025

@matejvasek: The label(s) kind/<kind> cannot be applied, because the repository doesn't have them.

Details

In response to this:

This is in particular useful for using paket bindings, e.g. to inject git credentials into build process.

Changes

/kind

Fixes #

Release Note


Docs


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-sigs/prow repository.

@knative-prow
Copy link

knative-prow bot commented Mar 19, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 19, 2025
@knative-prow knative-prow bot requested review from dsimansk and nainaz March 19, 2025 19:59
@matejvasek matejvasek requested review from gauron99 and lkingland and removed request for dsimansk, lkingland and nainaz March 19, 2025 19:59
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 19, 2025
@matejvasek matejvasek requested a review from lkingland March 19, 2025 19:59
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 19, 2025
@matejvasek matejvasek requested a review from matzew March 19, 2025 19:59
@codecov
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 63.47%. Comparing base (77e43bc) to head (36adf39).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
pkg/builders/buildpacks/builder.go 50.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2753      +/-   ##
==========================================
+ Coverage   62.60%   63.47%   +0.86%     
==========================================
  Files         131      131              
  Lines       15607    15614       +7     
==========================================
+ Hits         9771     9911     +140     
+ Misses       4908     4745     -163     
- Partials      928      958      +30     
Flag Coverage Δ
e2e-test 35.91% <50.00%> (+0.01%) ⬆️
e2e-test-oncluster 34.28% <50.00%> (+1.40%) ⬆️
e2e-test-oncluster-runtime 28.58% <0.00%> (?)
e2e-test-runtime-go 26.56% <50.00%> (?)
e2e-test-runtime-node 25.96% <50.00%> (?)
e2e-test-runtime-python 25.96% <50.00%> (?)
e2e-test-runtime-quarkus 26.11% <50.00%> (?)
e2e-test-runtime-rust 25.07% <50.00%> (?)
e2e-test-runtime-springboot 25.11% <50.00%> (?)
e2e-test-runtime-typescript 26.07% <50.00%> (?)
integration-tests 49.63% <50.00%> (+1.88%) ⬆️
unit-tests 49.54% <50.00%> (?)
unit-tests-macos-latest ?
unit-tests-ubuntu-latest ?
unit-tests-windows-latest ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <mvasek@redhat.com>
Mounts []MountSpec `yaml:"mounts,omitempty"`
}

type MountSpec struct {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alternative to this new type would be to reuse our Volume type and just add Source *string member to it.
WDYT @lkingland ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It could to a degree help on cluster and local build unification.

@matejvasek
Copy link
Contributor Author

/ok-to-test

@knative-prow knative-prow bot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Mar 20, 2025
@matejvasek matejvasek changed the title Allow host mounts for build phahse. Allow host mounts for build phahse Mar 26, 2025
@matejvasek matejvasek marked this pull request as ready for review March 26, 2025 18: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 Mar 26, 2025
@knative-prow knative-prow bot requested review from nainaz and vyasgun March 26, 2025 18:18
@matejvasek
Copy link
Contributor Author

PTAL @lkingland @gauron99

@matejvasek matejvasek removed request for nainaz and vyasgun April 1, 2025 12:28
@matejvasek
Copy link
Contributor Author

PTAL @lkingland @gauron99

Copy link
Contributor

@gauron99 gauron99 left a comment

Choose a reason for hiding this comment

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

/lgtm
/hold for potential Lukes review

@knative-prow knative-prow bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 1, 2025
@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2025
@knative-prow
Copy link

knative-prow bot commented Apr 1, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gauron99, matejvasek

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [gauron99,matejvasek]

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

@matejvasek
Copy link
Contributor Author

/unhold

@knative-prow knative-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 1, 2025
@knative-prow knative-prow bot merged commit b6bfb2d into knative:main Apr 1, 2025
39 checks passed
matejvasek added a commit to openshift-knative/kn-plugin-func that referenced this pull request Apr 4, 2025
* Allow host mounts for build pahse.

This is in particular useful for using paket bindings,
e.g. to inject git credentials into build process.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Mark test as a integration test

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: style

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
matejvasek added a commit to openshift-knative/kn-plugin-func that referenced this pull request Apr 4, 2025
* Allow host mounts for build pahse.

This is in particular useful for using paket bindings,
e.g. to inject git credentials into build process.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Mark test as a integration test

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: style

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
openshift-merge-bot bot pushed a commit to openshift-knative/kn-plugin-func that referenced this pull request Apr 4, 2025
* Fix http port 433 => 443 (knative#2742)

* Trust loopback builders (knative#2750)

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Add testcase for Go private repositories (knative#2748)

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Test adjustments (knative#2751)

* Use tiny instead of base BP builder.
* Decrease minimal required Go version.
* Make the self-signed certificate CA==true so it works with update-ca-trust utility.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Allow host mounts for build phahse (knative#2753)

* Allow host mounts for build pahse.

This is in particular useful for using paket bindings,
e.g. to inject git credentials into build process.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Mark test as a integration test

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: style

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Use s2i in standard mode, not "as-dockerfile" (knative#2764)

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* fixup cherry-pick

The release-v1.16 branch uses older docker library version some minor
adjusment was needed.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Improvements for Go s2i assembler (knative#2765)

* Return error code when compilation was not done
* Run `go mod tidy` on scaffoded code

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* S2I (source-to-image) host binds (knative#2766)

* Added tests for s2i build with private Go module

The test is for now skipped since host binds are not yet implemented for s2i.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* User "host" network mode for s2i build on Linux

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Implement host binds for local s2i build

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Make build binds more similar to runtime binds (knative#2768)

* Make build binds more similar to runtime binds

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Added comments on struct

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Add guideline for private Go module usage (knative#2771)

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Fix: Go scaffolding uses correct module name (knative#2769)

* Fix: Go scaffolding uses correct module name

Using incorrect name works for a functions with flat structure -- no
sub-packages. When sub-packages are used we need to refer the user
module by its true name.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup tests

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup for c841f40

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
matejvasek added a commit to openshift-knative/kn-plugin-func that referenced this pull request Oct 3, 2025
picking knative#2753

Signed-off-by: Matej Vašek <mvasek@redhat.com>
matejvasek added a commit to openshift-knative/kn-plugin-func that referenced this pull request Oct 6, 2025
* feat: remote storage class

picking knative#2693

Co-authored-by: Luke Kingland <lkinglan@redhat.com>
Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Python Middleware v2 Scaffolding

picking knative#2685

Co-authored-by: Luke Kingland <lkinglan@redhat.com>
Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fix Python S2I On-Cluster build

picking knative#2770

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fix http port 433 => 443

picking knative#2742

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Trust loopback builders

picking knative#2750

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Add testcase for Go private repositories

picking knative#2748

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Test adjustments

picking knative#2751

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Allow host mounts for build phahse

picking knative#2753

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Use s2i in standard mode, not "as-dockerfile"

picking knative#2764

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Improvements for Go s2i assembler

picking knative#2765

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* S2I (source-to-image) host binds

picking knative#2766

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Make build binds more similar to runtime binds

picking knative#2768

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Add guideline for private Go module usage

picking knative#2771

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Improve Go templates README

picking knative#2848

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fix detection of hostname resolution failure

picking knative#2841

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fix: Go scaffolding uses correct module name

picking knative#2769

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fix non-containerized build/run /w external deps

picking knative#2847

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Tekton 1.0.x fixes

picking #1349

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fix co-scheduling

picking #1358

Co-authored-by: Jefferson Ramos <jeramos@redhat.com>
Signed-off-by: Matej Vašek <mvasek@redhat.com>

* test: fix gitlab test

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* dapr install upgrade

picking knative#3055

Co-authored-by: David Fridrich <fridrich.david19@gmail.com>
Co-authored-by: Luke Kingland <lkinglan@redhat.com>
Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: go.mod

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: update alpine version

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Migrate golangci-lint config to v2

picking knative#2781

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Bump golangci-lint version

picking knative#2784

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fix flaky unit test

picking knative#2749

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
Co-authored-by: Luke Kingland <lkinglan@redhat.com>
Co-authored-by: Jefferson Ramos <jeramos@redhat.com>
Co-authored-by: David Fridrich <fridrich.david19@gmail.com>
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants