pipectl transfer restore application drops backed-up labels

オープン 初心者向け
#7,622 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@bhavishyajain545 がすでに取り組んでいます。

2026年11月13日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
86/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
backend, cli

調査の方向性

AddApplicationRequest の構築箇所付近にある pkg/app/pipectl/cmd/transfer/restore_application.go と、関連する control plane のコードである pkg/app/server/grpcapi/api.go を読み、ラベルがどこに保存されるか確認してください。まず、バックアップからラベルがどのようにデコードされ、復元対象として選択されるかを追ってください。復元リクエストにバックアップのラベルが含まれ、復元テストでそれらが fake API client に届くことを検証できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
1.4k
フォーク
391
平均マージ
4日 1時間
マージ済み PR(30日)
58

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pipe-cd/pipecd のほかの issue

pipe-cd/pipecd の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。