pipectl transfer restore application drops backed-up labels

Đang mở Phù hợp với người mới
#7,622 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

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

Từ ngày 13/11/2026.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
86/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend, cli

Hướng nghiên cứu

Đọc pkg/app/pipectl/cmd/transfer/restore_application.go quanh phần tạo AddApplicationRequest và mã control plane liên quan trong pkg/app/server/grpcapi/api.go để xác nhận nhãn được lưu ở đâu. Trước tiên, hãy theo dõi cách các nhãn được giải mã từ bản sao lưu và được chọn để khôi phục. Công việc hoàn tất khi yêu cầu khôi phục bao gồm các nhãn đã sao lưu và bài kiểm tra khôi phục xác minh chúng được chuyển đến fake API client.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What happened

A backup includes application labels, and pipectl transfer restore application can use them to select applications from the file. The restored application starts without those labels. restoreApplications omits Labels from AddApplicationRequest, and the control plane stores labels from that request. Restore request · Control plane

What you expected to happen

The application is created on the target control plane with the labels from the backup.

How to reproduce it

  1. Run pipectl transfer backup for a source application labeled team=backend. Confirm that the backup contains that label.
  2. Restore the Piped, connect it to the target control plane, and wait for its repositories to register. Migration guide
  3. Against the target, run pipectl transfer restore application --input-file=backup.json --piped-id-mapping-file=piped-mapping.json --labels=team:backend. Inspect the new application with pipectl application get --app-id=<new-id> immediately after creation.

A local Go test round-tripped backup JSON and ran the restore with a fake API client. Restore reported one success and sent an empty label map despite team=backend being present in the backup.

Environment

pipectl and control plane source at 87c6da5e7 on master.

Ngôn ngữ chính
Go
Star
1.4k
Fork
391
Merge trung bình
4 ngày 1 giờ
Pull request đã merge (30 ngày)
58

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 pipe-cd/pipecd

Tất cả issue của pipe-cd/pipecd

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.