Skip to content

fix: write func.yaml before remote deploy upload#3663

Open
creydr wants to merge 1 commit intoknative:mainfrom
creydr:fix-remote-deploy-func-yaml-write
Open

fix: write func.yaml before remote deploy upload#3663
creydr wants to merge 1 commit intoknative:mainfrom
creydr:fix-remote-deploy-func-yaml-write

Conversation

@creydr
Copy link
Copy Markdown
Member

@creydr creydr commented May 6, 2026

Previously, func.yaml was only written to disk after deployment completed. For remote deploys, the pipeline uploads sources from disk to a PVC before the on-cluster deploy step runs. This meant CLI flags like --image-pull-secret, --service-account, or --deployer were not reflected in the uploaded func.yaml.

Write func.yaml before the pipeline starts so the on-cluster deploy step sees the latest configuration.

Changes

  • 🐛 Fix --image-pull-secret support on remote deploys

/kind bug

Previously, func.yaml was only written to disk after deployment
completed. For remote deploys, the pipeline uploads sources from
disk to a PVC before the on-cluster deploy step runs. This meant
CLI flags like --image-pull-secret, --service-account, or
--deployer were not reflected in the uploaded func.yaml.

Write func.yaml before the pipeline starts so the on-cluster
deploy step sees the latest configuration.
@knative-prow knative-prow Bot added the kind/bug Bugs label May 6, 2026
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 6, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: creydr
Once this PR has been reviewed and has the lgtm label, please assign matejvasek for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@knative-prow knative-prow Bot requested review from dsimansk and jrangelramos May 6, 2026 09:38
@knative-prow knative-prow Bot added the size/M 🤖 PR changes 30-99 lines, ignoring generated files. label May 6, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.70%. Comparing base (18ff6b3) to head (74bf23a).

Files with missing lines Patch % Lines
cmd/deploy.go 50.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3663      +/-   ##
==========================================
+ Coverage   53.49%   56.70%   +3.20%     
==========================================
  Files         181      181              
  Lines       20732    20738       +6     
==========================================
+ Hits        11091    11759     +668     
+ Misses       8567     7769     -798     
- Partials     1074     1210     +136     
Flag Coverage Δ
e2e 36.34% <0.00%> (+0.02%) ⬆️
e2e go 33.00% <0.00%> (?)
e2e node 28.70% <0.00%> (?)
e2e python 33.37% <0.00%> (?)
e2e quarkus 28.84% <0.00%> (?)
e2e rust 28.24% <0.00%> (?)
e2e springboot 26.73% <0.00%> (?)
e2e typescript 28.79% <0.00%> (?)
e2e-config-ci 18.02% <0.00%> (-0.01%) ⬇️
integration 17.46% <0.00%> (?)
unit macos-14 44.26% <0.00%> (-0.01%) ⬇️
unit macos-latest 44.26% <0.00%> (-0.01%) ⬇️
unit ubuntu-24.04-arm 44.44% <50.00%> (+<0.01%) ⬆️
unit ubuntu-latest 45.12% <0.00%> (-0.01%) ⬇️
unit windows-latest 44.24% <0.00%> (-0.01%) ⬇️

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.

@creydr
Copy link
Copy Markdown
Member Author

creydr commented May 6, 2026

/cc @gauron99

@knative-prow knative-prow Bot requested a review from gauron99 May 6, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Bugs size/M 🤖 PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant