mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
fix issue(#50821)Add image check, if image not changed, transform false
This commit is contained in:
parent
da00e92f87
commit
68bd8d2584
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user