Skip to content

Commit

Permalink
Merge pull request #156 from a-hilaly/rm-rolearn
Browse files Browse the repository at this point in the history
Update `AWSResourceManagerFactory` to include `roleARN` paramter
  • Loading branch information
TiberiuGC authored Aug 29, 2024
2 parents 63238ad + 9fdb7f0 commit a606fd1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
18 changes: 9 additions & 9 deletions mocks/pkg/types/aws_resource_manager_factory.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/runtime/adoption_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (r *adoptionReconciler) reconcile(ctx context.Context, req ctrlrt.Request)
ackrtlog.InfoAdoptedResource(r.log, res, "starting adoption reconciliation")

rm, err := rmf.ManagerFor(
r.cfg, r.log, r.metrics, r, sess, acctID, region,
r.cfg, r.log, r.metrics, r, sess, acctID, region, roleARN,
)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion pkg/runtime/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func (r *resourceReconciler) Reconcile(ctx context.Context, req ctrlrt.Request)
)

rm, err := r.rmf.ManagerFor(
r.cfg, r.log, r.metrics, r, sess, acctID, region,
r.cfg, r.log, r.metrics, r, sess, acctID, region, roleARN,
)
if err != nil {
return ctrlrt.Result{}, err
Expand Down
1 change: 1 addition & 0 deletions pkg/types/aws_resource_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ type AWSResourceManagerFactory interface {
*session.Session,
ackv1alpha1.AWSAccountID,
ackv1alpha1.AWSRegion,
ackv1alpha1.AWSResourceName,
) (AWSResourceManager, error)
// IsAdoptable returns true if the resource is able to be adopted
IsAdoptable() bool
Expand Down

0 comments on commit a606fd1

Please sign in to comment.