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

Đang mở
#4,156 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@gauron99 đang làm issue này rồi.

Từ ngày 11/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
Go
Star
366
Fork
231
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
50

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của knative/func

Tất cả issue của knative/func

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.