Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

bug: PublishedResource updates leave previous sync controllers active

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

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

Từ ngày 20/7/2026.

Đánh giá

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

Mô tả

kind/bug
Describe the bug

When updating a PublishedResource the manager starts a replacement without stopping the controller for the previous resource version. Both controllers then reconcile the same resources

Steps To Reproduce
  1. Run api syncagent with an active PR
  2. Update the PR (in my case spec.naming was changed, but it can be an annotation change)
  3. Check a new controller will start for the new resource, but the previous controller doesn't stop
  4. You can also create a synchronized resource again and you will see that both (or multiple) controllers will process it
Expected Behaviour

One sync controller should be active per PR. A replacement should be validated, then the existing controller drained before the replacement starts

Additional Context

I reproduced this with v0.7.0.

During my testing and implementation I checked that immediate replacement can overlap controllers. Stopping before validation can interrupt synchronization, so my approach for the solution is object key tracking with validate, drain, then start sequencing

Ngôn ngữ chính
Go
Star
25
Fork
30
Merge trung bình
5 ngày 18 giờ
Pull request đã merge (30 ngày)
1

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 kcp-dev/api-syncagent

Tất cả issue của kcp-dev/api-syncagent

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.