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 {
continue
}
}
spec.Containers[i].Image = resolved
// Perform updates
transformed = true
if spec.Containers[i].Image != resolved {
spec.Containers[i].Image = resolved
// Perform updates
transformed = true
}
}
}
// 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