Skip to content

Commit dd38574

Browse files
committed
Fix panic maybe ...
1 parent 76c4b02 commit dd38574

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/controller/blob_from_chunk_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ func (c *BlobFromChunkController) handler(ctx context.Context, name string) {
149149
return
150150
}
151151

152+
// Make this a deep copy to avoid mutating the shared informer cache
153+
blob = blob.DeepCopy()
154+
152155
if blob.Spec.ChunksNumber == 1 {
153156
err = c.fromOneChunk(ctx, blob)
154157
if err != nil {

0 commit comments

Comments
 (0)