Skip to content

Commit

Permalink
Fix unit test by not relying on GVK
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Mar 27, 2024
1 parent 1132ef1 commit 4ada6b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/asosecret_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ func (asos *ASOSecretReconciler) Reconcile(ctx context.Context, req ctrl.Request

// Return early if the ASO Secret Owner(AzureCluster or AzureManagedControlPlane) or Cluster is paused.
if annotations.IsPaused(cluster, asoSecretOwner) {
log.Info(fmt.Sprintf("%s or linked Cluster is marked as paused. Won't reconcile", asoSecretOwner.GetObjectKind()))
log.Info(fmt.Sprintf("%T or linked Cluster is marked as paused. Won't reconcile", asoSecretOwner))
asos.Recorder.Eventf(asoSecretOwner, corev1.EventTypeNormal, "ClusterPaused",
fmt.Sprintf("%s or linked Cluster is marked as paused. Won't reconcile", asoSecretOwner.GetObjectKind().GroupVersionKind().Kind))
fmt.Sprintf("%T or linked Cluster is marked as paused. Won't reconcile", asoSecretOwner))
return ctrl.Result{}, nil
}

Expand Down

0 comments on commit 4ada6b7

Please sign in to comment.