From 1cb634afca0ecc0a0b7c775dacb2dfdf061c7832 Mon Sep 17 00:00:00 2001 From: Dennis Nemec Date: Thu, 3 Sep 2026 20:33:36 +0200 Subject: [PATCH] Keep the written image name in update suggestions docker.io/calico/node was suggested as calico/node, which reads as a different image and would rewrite the workload's reference. Co-Authored-By: Claude Opus 5 --- backend/crates/domain/src/image.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/crates/domain/src/image.rs b/backend/crates/domain/src/image.rs index 64af999..1367e08 100644 --- a/backend/crates/domain/src/image.rs +++ b/backend/crates/domain/src/image.rs @@ -7,6 +7,8 @@ pub struct ImageRef { pub registry: String, pub repository: String, pub tag: String, + /// The name exactly as it was written, so a suggestion keeps the original spelling. + pub name: String, } impl ImageRef { @@ -34,6 +36,7 @@ impl ImageRef { registry, repository, tag, + name: head.to_string(), }) }