Skip to content

Commit e449618

Browse files
authored
operator: drop last-applied-configuration annotation when using SSA (istio#44896)
Pretty sure we don't need this when using SSA, its design only for non-SSA.
1 parent b883313 commit e449618

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

operator/pkg/helmreconciler/apply.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@ func (h *HelmReconciler) ApplyObject(obj *unstructured.Unstructured, serverSideA
162162
return errs.ToError()
163163
}
164164

165-
if err := kubectlutil.CreateApplyAnnotation(obj, unstructured.UnstructuredJSONScheme); err != nil {
166-
scope.Errorf("unexpected error adding apply annotation to object: %s", err)
165+
if !serverSideApply {
166+
if err := kubectlutil.CreateApplyAnnotation(obj, unstructured.UnstructuredJSONScheme); err != nil {
167+
scope.Errorf("unexpected error adding apply annotation to object: %s", err)
168+
}
167169
}
168170

169171
objectKey := client.ObjectKeyFromObject(obj)

0 commit comments

Comments
 (0)