Function CR sync should keep the spec fields func does not set

未关闭
#4,156 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

@gauron99 已经在做这个了。

开始于 2026年11月11日。

评估

这个 Issue 还没有评估数据。

描述

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

主要语言
Go
星标
366
派生
231
平均合并
2 天 23 小时
30 天内合并 PR
50

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

knative/func 的其他 Issue

查看 knative/func 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。