Skip to content

Commit 1e353c7

Browse files
committed
fixup! Use SSA instead of Update for finalizer operations
Signed-off-by: Todd Short <[email protected]>
1 parent 35c1c07 commit 1e353c7

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
@@ -103,10 +103,10 @@ func (c *ClusterExtensionRevisionReconciler) Reconcile(ctx context.Context, req
103103

104104
// Compare resources - Annotations/Labels/Spec
105105
func checkForUnexpectedClusterExtensionRevisionFieldChange(a, b *ocv1.ClusterExtensionRevision) bool {
106-
if !equality.Semantic.DeepEqual(a.ObjectMeta.Annotations, b.ObjectMeta.Annotations) {
106+
if !equality.Semantic.DeepEqual(a.Annotations, b.Annotations) {
107107
return true
108108
}
109-
if !equality.Semantic.DeepEqual(a.ObjectMeta.Labels, b.ObjectMeta.Labels) {
109+
if !equality.Semantic.DeepEqual(a.Labels, b.Labels) {
110110
return true
111111
}
112112
return !equality.Semantic.DeepEqual(a.Spec, b.Spec)

0 commit comments

Comments
 (0)