Commit 68bd8d25 authored by zhengjiajin's avatar zhengjiajin

fix issue(#50821)Add image check, if image not changed, transform false

parent da00e92f
...@@ -196,9 +196,11 @@ func (o *ImageOptions) Run() error { ...@@ -196,9 +196,11 @@ func (o *ImageOptions) Run() error {
continue continue
} }
} }
spec.Containers[i].Image = resolved if spec.Containers[i].Image != resolved {
// Perform updates spec.Containers[i].Image = resolved
transformed = true // Perform updates
transformed = true
}
} }
} }
// Add a new container if not found // Add a new container if not found
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment