Kaynağa Gözat

Merge pull request #46655 from vvoland/c8d-push-propagate-source-children

c8d/push: Set distribution source recursively
Djordje Lukic 1 yıl önce
ebeveyn
işleme
0253fedf03
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      daemon/containerd/image_push.go

+ 2 - 1
daemon/containerd/image_push.go

@@ -177,7 +177,8 @@ func appendDistributionSourceLabel(ctx context.Context, realStore content.Store,
 		return
 		return
 	}
 	}
 
 
-	if err := containerdimages.Dispatch(ctx, appendSource, nil, target); err != nil {
+	handler := presentChildrenHandler(realStore, appendSource)
+	if err := containerdimages.Dispatch(ctx, handler, nil, target); err != nil {
 		// Shouldn't happen, but even if it would fail, then make it only a warning
 		// Shouldn't happen, but even if it would fail, then make it only a warning
 		// because it doesn't affect the pushed data.
 		// because it doesn't affect the pushed data.
 		log.G(ctx).WithError(err).Warn("failed to append distribution source labels to pushed content")
 		log.G(ctx).WithError(err).Warn("failed to append distribution source labels to pushed content")