mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user