GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: write `func.yaml` before remote deploy upload by creydr · Pull Request #3663 · knative/func

Conversation

@creydr

@creydr creydr commented May 6, 2026

Copy link
Copy Markdown
Member

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@creydr
fix: write func.yaml before remote deploy upload
74bf23a
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
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

codecov Bot commented May 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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).
⚠️ Report is 12 commits behind head on main.

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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@creydr

creydr commented May 6, 2026

Copy link
Copy Markdown
Member Author

/cc @gauron99

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow
knative-prow Bot requested a review from gauron99 May 6, 2026 10:16
@gauron99

gauron99 commented May 7, 2026

Copy link
Copy Markdown
Contributor

/hold

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added the do-not-merge/hold 🤖 PR should not merge because someone has issued a /hold command. label May 7, 2026
lkingland
lkingland approved these changes May 8, 2026
View reviewed changes

@lkingland lkingland left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

/lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread cmd/deploy.go
Comment on lines +321 to +323
// Write func.yaml before the pipeline uploads sources to the PVC,
// so that the on-cluster deploy step sees the latest config
// (e.g. --image-pull-secret, --service-account, --deployer).

@lkingland lkingland May 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thank you for the explanatory comment.

Creating a follow-up for this becasue we don't write func.yaml until the end for purposes of keeping the source in a clean state, but this gets us over the current hurdle.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@knative-prow knative-prow Bot assigned lkingland May 8, 2026
@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label May 8, 2026
@knative-prow

knative-prow Bot commented May 8, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, 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:
  • OWNERS [lkingland]

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added the approved 🤖 PR has been approved by an approver from all required OWNERS files. label May 8, 2026
@lkingland lkingland mentioned this pull request May 8, 2026
Remote deploy dirties working tree by writing func.yaml before pipeline runs #3679
Closed
@lkingland

lkingland commented May 8, 2026

Copy link
Copy Markdown
Member

Created a follow-up for this: #3679

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gauron99

gauron99 commented May 8, 2026

Copy link
Copy Markdown
Contributor

/unhold

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot removed the do-not-merge/hold 🤖 PR should not merge because someone has issued a /hold command. label May 8, 2026
@knative-prow
knative-prow Bot merged commit d896922 into knative:main May 8, 2026
41 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@lkingland lkingland mentioned this pull request May 16, 2026
Remote Git-based deploy doesn't forward CLI overrides like --image-pull-secret to the in-cluster func deploy #3768
Open
@Ankitsinghsisodya Ankitsinghsisodya mentioned this pull request May 17, 2026
fix: forward CLI overrides to in-cluster deploy for Git-based remote deploys #3777
Closed
@Sofiyan-Shaikh Sofiyan-Shaikh mentioned this pull request May 18, 2026
fix(deploy): don't write func.yaml before remote pipeline runs (#3679) #3779
Closed
@Ankitsinghsisodya Ankitsinghsisodya mentioned this pull request May 21, 2026
fix: forward CLI overrides to in-cluster deploy for Git-based remote deploys #3820
Closed
@gauron99 gauron99 mentioned this pull request Aug 26, 2026
[release-1.22] fix: write func.yaml before remote upload #4023
Merged
knative-prow Bot pushed a commit that referenced this pull request Aug 26, 2026
@gauron99
fix: write func.yaml before remote upload (#4023)
265def9
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 --service-account or --deployer were not reflected
in the uploaded func.yaml, so func-util defaulted an empty
deployer to knative.

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

Backport of #3663. The 1.22 CLI has no --image-pull-secret, so
the unit test covers --deployer instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lkingland lkingland lkingland approved these changes
@dsimansk dsimansk Awaiting requested review from dsimansk
@jrangelramos jrangelramos Awaiting requested review from jrangelramos
@gauron99 gauron99 Awaiting requested review from gauron99

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lkingland lkingland

Labels

approved 🤖 PR has been approved by an approver from all required OWNERS files. kind/bug Bugs lgtm 🤖 PR is ready to be merged. size/M 🤖 PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@creydr @gauron99 @lkingland
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.