Skip to content

Conversation

@matejvasek
Copy link
Contributor

@matejvasek matejvasek commented Jul 11, 2025

Changes

  • Update tekton to v1.1.0 in testing cluster (also updated PaC)
  • Fixed yaml errors by adding quotes around variables that expand to an empty string. Older version of tekton was more permissive as it accepted broken yaml.
  • Fixed image reference gcr.io => ghcr.io, we still use the older rootfull task that refers gcr.io not ghcr.io like the latest tasks.

Signed-off-by: Matej Vašek <[email protected]>
Signed-off-by: Matej Vašek <[email protected]>
Signed-off-by: Matej Vašek <[email protected]>
@knative-prow
Copy link

knative-prow bot commented Jul 11, 2025

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

Details

In response to this:

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 Jul 11, 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 Jul 11, 2025
@knative-prow knative-prow bot requested review from dsimansk and vyasgun July 11, 2025 13:22
@knative-prow knative-prow bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 11, 2025
@codecov
Copy link

codecov bot commented Jul 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.69%. Comparing base (7799a69) to head (2fe71e6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2934      +/-   ##
==========================================
+ Coverage   57.14%   60.69%   +3.54%     
==========================================
  Files         130      130              
  Lines       16604    16604              
==========================================
+ Hits         9488    10077     +589     
+ Misses       6223     5571     -652     
- Partials      893      956      +63     
Flag Coverage Δ
e2e-tests 41.72% <ø> (+10.70%) ⬆️
integration-tests 55.34% <ø> (+1.70%) ⬆️
unit-tests 47.42% <ø> (ø)

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 <[email protected]>
We still need the older rootfull version.

This reverts commit 4bc8268.
@matejvasek matejvasek requested review from gauron99, jrangelramos and lkingland and removed request for dsimansk and vyasgun July 11, 2025 16:20
@matejvasek matejvasek marked this pull request as ready for review July 11, 2025 16:22
@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 Jul 11, 2025
@knative-prow knative-prow bot requested review from nainaz and vyasgun July 11, 2025 16:22
@matejvasek
Copy link
Contributor Author

PTAL @jrangelramos @gauron99

@matejvasek matejvasek removed request for nainaz and vyasgun July 11, 2025 16:31
Signed-off-by: Matej Vašek <[email protected]>
@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 11, 2025
Signed-off-by: Matej Vašek <[email protected]>
@knative-prow knative-prow bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 11, 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.

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 11, 2025
@knative-prow
Copy link

knative-prow bot commented Jul 11, 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

@knative-prow knative-prow bot merged commit 589bbe8 into knative:main Jul 11, 2025
39 checks passed
@ryan-alexander-zhang
Copy link

The tekton need the sa permission to operate the knative resources. The sa is default.
spec:
taskRunTemplate:
serviceAccountName: sa-1
taskRunSpecs:
- pipelineTaskName: build-task
serviceAccountName: sa-for-build
Looks like there's no taskRunTemplate param. Can you help to fix the issue? Thanks.
https://tekton.dev/docs/pipelines/pipelineruns/#specifying-custom-serviceaccount-credentials

@matejvasek
Copy link
Contributor Author

The tekton need the sa permission to operate the knative resources. The sa is default. spec: taskRunTemplate: serviceAccountName: sa-1 taskRunSpecs: - pipelineTaskName: build-task serviceAccountName: sa-for-build Looks like there's no taskRunTemplate param. Can you help to fix the issue? Thanks. https://tekton.dev/docs/pipelines/pipelineruns/#specifying-custom-serviceaccount-credentials

https://github.com/knative/func/blob/main/hack/allocate.sh#L413
maybe?

@ryan-alexander-zhang
Copy link

The tekton need the sa permission to operate the knative resources. The sa is default. spec: taskRunTemplate: serviceAccountName: sa-1 taskRunSpecs: - pipelineTaskName: build-task serviceAccountName: sa-for-build Looks like there's no taskRunTemplate param. Can you help to fix the issue? Thanks. https://tekton.dev/docs/pipelines/pipelineruns/#specifying-custom-serviceaccount-credentials

https://github.com/knative/func/blob/main/hack/allocate.sh#L413 maybe?

Thank you for your reply.

It's a solution to bind the role to the default sa. But I’m confused. I’ve already set the service account with the necessary permissions for Knative resources using the func CLI, but I still got the error.

For example: deploy --git-url=xxx -n ronghuanz --remote --service-account=ronghuanz

Error: function pipeline run has failed with message: 

ERROR: cannont deploy the function: knative deployer failed to get the Knative Service: services.serving.knative.dev "func-test" is forbidden: User "system:serviceaccount:ronghuanz:default" cannot get resource "services" in API group "serving.knative.dev" in the namespace "ronghuanz"

@matejvasek
Copy link
Contributor Author

I suspect that --service-account is not really implemented for --remote build.

@matejvasek
Copy link
Contributor Author

Does deploy with --remote=0 work?

@matejvasek
Copy link
Contributor Author

Please file bug report / feature request.

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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants