Skip to content

Commit 3e52597

Browse files
committed
fixup! Use Patch instead of Update for finalizer operations
Signed-off-by: Todd Short <[email protected]>
1 parent 4e129f8 commit 3e52597

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

internal/catalogd/controllers/core/clustercatalog_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,10 @@ func (r *ClusterCatalogReconciler) needsPoll(lastSuccessfulPoll time.Time, catal
408408

409409
// Compare resources - Annotations/Labels/Spec
410410
func checkForUnexpectedFieldChange(a, b *ocv1.ClusterCatalog) bool {
411-
if !equality.Semantic.DeepEqual(a.ObjectMeta.Annotations, b.ObjectMeta.Annotations) {
411+
if !equality.Semantic.DeepEqual(a.Annotations, b.Annotations) {
412412
return true
413413
}
414-
if !equality.Semantic.DeepEqual(a.ObjectMeta.Labels, b.ObjectMeta.Labels) {
414+
if !equality.Semantic.DeepEqual(a.Labels, b.Labels) {
415415
return true
416416
}
417417
return !equality.Semantic.DeepEqual(a.Spec, b.Spec)

internal/operator-controller/controllers/clusterextension_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ func ensureAllConditionsWithReason(ext *ocv1.ClusterExtension, reason v1alpha1.C
151151

152152
// Compare resources - Annotations/Labels/Spec
153153
func checkForUnexpectedClusterExtensionFieldChange(a, b *ocv1.ClusterExtension) bool {
154-
if !equality.Semantic.DeepEqual(a.ObjectMeta.Annotations, b.ObjectMeta.Annotations) {
154+
if !equality.Semantic.DeepEqual(a.Annotations, b.Annotations) {
155155
return true
156156
}
157-
if !equality.Semantic.DeepEqual(a.ObjectMeta.Labels, b.ObjectMeta.Labels) {
157+
if !equality.Semantic.DeepEqual(a.Labels, b.Labels) {
158158
return true
159159
}
160160
return !equality.Semantic.DeepEqual(a.Spec, b.Spec)

internal/operator-controller/controllers/clusterextensionrevision_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ func (c *ClusterExtensionRevisionReconciler) Reconcile(ctx context.Context, req
102102

103103
// Compare resources - Annotations/Labels/Spec
104104
func checkForUnexpectedClusterExtensionRevisionFieldChange(a, b *ocv1.ClusterExtensionRevision) bool {
105-
if !equality.Semantic.DeepEqual(a.ObjectMeta.Annotations, b.ObjectMeta.Annotations) {
105+
if !equality.Semantic.DeepEqual(a.Annotations, b.Annotations) {
106106
return true
107107
}
108-
if !equality.Semantic.DeepEqual(a.ObjectMeta.Labels, b.ObjectMeta.Labels) {
108+
if !equality.Semantic.DeepEqual(a.Labels, b.Labels) {
109109
return true
110110
}
111111
return !equality.Semantic.DeepEqual(a.Spec, b.Spec)

0 commit comments

Comments
 (0)