Function CR sync should keep the spec fields func does not set
Maintainers usually reply within 2 days
@gauron99 is already working on this.
Since Nov 11, 2026.
Assessment
This issue has not been assessed yet.
Description
Function CR sync replaces the whole spec, so it drops settings func does not set: repository.authSecretRef and an explicit autoUpdateMiddleware: false. After each deploy the operator can no longer clone a private repository, and middleware auto-updates turn back on for functions that opted out.
This already happens on local deploys. #4105 extends sync to func deploy --remote.
Proposal: on update, write only the fields func owns (repository URL, revision, dir, and registry auth when func has a login). Keep the rest of the existing spec. Add a regression test that an existing authSecretRef and autoUpdateMiddleware: false survive a sync.
From the review on #4105: https://github.com/knative/func/pull/4105#discussion_r4374559779
- Dominant language
- Go
- Stars
- 366
- Forks
- 231
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 50
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from knative/func
-
help wanted kind/good-first-issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
knative/func#4191 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
Maintainers usually reply within 2 days
-
MCP config_git_set exposes the GitHub token on the func subprocess command linePossibly taken @anjalirj27 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
Maintainers usually reply within 2 days
-
Deprecation of legacy parliament Python functions (removal in 1.26)Possibly taken @gauron99 claimed this 4 days ago. Openkind/cleanup lifecycle/frozen
knative/func#4185 · 1 comment · 1 assignee ·
Maintainers usually reply within 2 days
-
OCI pusher panics when reused for a second uploadPossibly taken @shreyashsri79 claimed this 18 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
Maintainers usually reply within 2 days
Similar issues
-
[Bug]: gate 缺失Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Generated cask uses deprecated `postflight` stanza; Homebrew 7 warns on every commandPossibly taken @k4kratik claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
sachincool/cruft#4 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
VictoriaMetrics/VictoriaLogs#1965 ·
Maintainers usually reply within 1 day
-
kind/bug sig/ui
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
kubermatic/dashboard#8540 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
elastic/elastic-package#4249 ·
Maintainers usually reply within 1 day