Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit fcfcfd9

Browse files
authored
fix(cherry-pick): regression on creationTimestamp with server-side diff
1 parent b89b087 commit fcfcfd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/diff/diff.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ func serverSideDiff(config, live *unstructured.Unstructured, opts ...Option) (*D
182182
return nil, fmt.Errorf("error removing non config mutations for resource %s/%s: %w", config.GetKind(), config.GetName(), err)
183183
}
184184
}
185+
186+
// Remarshal predictedLive to ensure it receives the same normalization as live.
187+
predictedLive = remarshal(predictedLive, o)
185188

186189
Normalize(predictedLive, opts...)
187190
unstructured.RemoveNestedField(predictedLive.Object, "metadata", "managedFields")

0 commit comments

Comments
 (0)