You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnerrors.Wrapf(err, "failed to unmarshal JSON from %s annotation", tagsLastAppliedAnnotation)
43
48
}
44
49
}
45
-
}
46
50
47
-
existingTags, err:=t.GetActualTags(existing)
48
-
iferr!=nil {
49
-
returnerrors.Wrapf(err, "failed to get actual tags for %s %s/%s", existing.GetObjectKind().GroupVersionKind(), existing.GetNamespace(), existing.GetName())
51
+
varerrerror
52
+
existingTags, err=t.GetActualTags(existing)
53
+
iferr!=nil {
54
+
returnerrors.Wrapf(err, "failed to get actual tags for %s %s/%s", existing.GetObjectKind().GroupVersionKind(), existing.GetNamespace(), existing.GetName())
55
+
}
56
+
desiredTags, err:=t.GetDesiredTags(existing)
57
+
iferr!=nil {
58
+
returnerrors.Wrapf(err, "failed to get desired tags for %s %s/%s", existing.GetObjectKind().GroupVersionKind(), existing.GetNamespace(), existing.GetName())
59
+
}
60
+
// Wait for tags to converge so we know for sure which ones are deleted from additionalTags (and
61
+
// should be deleted) and which were added manually (and should be kept).
0 commit comments