@@ -45,7 +45,7 @@ const (
4545 cleanupStatusTimedOut = "timed-out"
4646
4747 // helmUninstallTimeout is the maximum time to wait for HelmChartProxy deletion
48- // before giving up and allowing cluster deletion to proceed
48+ // before giving up and allowing cluster deletion to proceed.
4949 helmUninstallTimeout = 5 * time .Minute
5050)
5151
@@ -468,7 +468,7 @@ func (n *DefaultKonnectorAgent) checkCleanupStatus(
468468 ctx context.Context ,
469469 cluster * clusterv1.Cluster ,
470470 log logr.Logger ,
471- ) (string , string , error ) {
471+ ) (status , statusMsg string , err error ) {
472472 clusterUUID , ok := cluster .Annotations [v1alpha1 .ClusterUUIDAnnotationKey ]
473473 if ! ok {
474474 return cleanupStatusCompleted , "No cluster UUID found, assuming no agent installed" , nil
@@ -482,7 +482,7 @@ func (n *DefaultKonnectorAgent) checkCleanupStatus(
482482 },
483483 }
484484
485- err : = n .client .Get (ctx , ctrlclient .ObjectKeyFromObject (hcp ), hcp )
485+ err = n .client .Get (ctx , ctrlclient .ObjectKeyFromObject (hcp ), hcp )
486486 if err != nil {
487487 if apierrors .IsNotFound (err ) {
488488 log .Info ("HelmChartProxy not found, cleanup completed" , "name" , hcp .Name )
0 commit comments