Skip to content

Commit 4b80a9d

Browse files
carlyjiangYu Jiang
and
Yu Jiang
authored
Add object name and ns for periodical reconcile (#158)
Signed-off-by: Yu Jiang <[email protected]> Co-authored-by: Yu Jiang <[email protected]>
1 parent ac96c47 commit 4b80a9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

controllers/iamrole_reconcile_manager.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
api "github.com/keikoproj/iam-manager/api/v1alpha1"
88
"github.com/keikoproj/iam-manager/internal/config"
99
"github.com/keikoproj/iam-manager/pkg/logging"
10+
"k8s.io/apimachinery/pkg/types"
1011
ctrl "sigs.k8s.io/controller-runtime"
1112
)
1213

@@ -71,7 +72,8 @@ func (r *IamroleReconciler) ReconcileAllReadyStateIamRoles(ctx context.Context)
7172
continue
7273
}
7374

74-
res, err = r.HandleReconcile(ctx, ctrl.Request{}, iamrole)
75+
req := ctrl.Request{NamespacedName: types.NamespacedName{Namespace: iamrole.Namespace, Name: iamrole.Name}}
76+
res, err = r.HandleReconcile(ctx, req, iamrole)
7577
log.Info("Reconcile result", "result", res, "error", err)
7678

7779
// sleep for 2 seconds for politeness

0 commit comments

Comments
 (0)