Skip to content

Conversation

@lkingland
Copy link
Member

Adds the --remote-storage-class flag which allows specifying a storage class name for the PVC used for on-cluster builds.

/kind enhancement

Release Note

- Adds the ability to specify a storage class for remote build volumes with --remote-storage-class

@knative-prow
Copy link

knative-prow bot commented Feb 17, 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 do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/enhancement approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 17, 2025
@knative-prow knative-prow bot requested review from dsimansk and nainaz February 17, 2025 04:28
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 17, 2025
@codecov
Copy link

codecov bot commented Feb 17, 2025

Codecov Report

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

Project coverage is 65.31%. Comparing base (bc6fad7) to head (a047b21).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
pkg/k8s/persistent_volumes.go 40.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2693      +/-   ##
==========================================
+ Coverage   64.05%   65.31%   +1.26%     
==========================================
  Files         131      131              
  Lines       15583    15591       +8     
==========================================
+ Hits         9982    10184     +202     
+ Misses       4651     4418     -233     
- Partials      950      989      +39     
Flag Coverage Δ
e2e-test 35.90% <50.00%> (+0.01%) ⬆️
e2e-test-oncluster 34.13% <75.00%> (+1.34%) ⬆️
e2e-test-oncluster-runtime 28.57% <75.00%> (?)
e2e-test-runtime-go 26.47% <50.00%> (?)
e2e-test-runtime-node 25.88% <50.00%> (?)
e2e-test-runtime-python 25.85% <50.00%> (?)
e2e-test-runtime-quarkus 26.03% <50.00%> (?)
e2e-test-runtime-rust 24.96% <50.00%> (?)
e2e-test-runtime-springboot 25.02% <50.00%> (?)
e2e-test-runtime-typescript 25.98% <50.00%> (?)
integration-tests 51.93% <75.00%> (+2.32%) ⬆️
unit-tests 50.90% <58.33%> (?)
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.

@lkingland lkingland marked this pull request as ready for review February 18, 2025 15:31
@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 Feb 18, 2025
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.

Nice, just a nit about a comment otherwise
/lgtm
/hold for potential update

PVCSize string `yaml:"pvcSize,omitempty"`

// RemoteStorageClass specifies the storage class to use for the volume used
// on-cluster during when built remotely.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// on-cluster during when built remotely.
// on-cluster when built remotely.

i guess this is a left-over word?

@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 Feb 18, 2025
@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 18, 2025
@knative-prow
Copy link

knative-prow bot commented Feb 18, 2025

[APPROVALNOTIFIER] This PR is APPROVED

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

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:

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

@lkingland lkingland removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 19, 2025
@knative-prow knative-prow bot merged commit 1d26629 into knative:main Feb 19, 2025
39 checks passed
@lkingland lkingland deleted the storage-class branch May 13, 2025 01:55
matejvasek added a commit to openshift-knative/kn-plugin-func that referenced this pull request Oct 3, 2025
picking knative#2693

Co-authored-by: Luke Kingland <lkinglan@redhat.com>
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. kind/enhancement lgtm Indicates that a PR is ready to be merged. 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