Skip to content

Commit 11f8cbe

Browse files
authored
Fix drift correction regression when correctDrift.force is false (#4879) (#4939)
* Fix drift correction regression when correctDrift.force is false The Helm v4 migration set ServerSideApply to "auto" for non-force rollbacks. This caused Helm to auto-detect and reuse the apply method from the original release, which is SSA. Server-Side Apply tracks field ownership per field manager, so rollback only reverts fields owned by Helm's manager — manual changes owned by a different manager are silently ignored. Setting ServerSideApply to "false" for all rollbacks forces client-side three-way merge, which compares the full resource state and patches all drifted fields regardless of ownership. This restores the Helm v3 behavior. Refers to: #4878 --------- Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>
1 parent 4d7e726 commit 11f8cbe

3 files changed

Lines changed: 533 additions & 26 deletions

File tree

integrationtests/agent/assets/deployment-v1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: Service
33
metadata:
44
name: svc-test
55
spec:
6+
type: ClusterIP
67
selector:
78
app.kubernetes.io/name: MyApp
89
ports:

0 commit comments

Comments
 (0)