From 2fe4f2b7b6bcd819730935ee65ac3e7a8680aa87 Mon Sep 17 00:00:00 2001 From: "romg@pecan.ai" Date: Tue, 20 Aug 2024 08:52:02 +0100 Subject: [PATCH] debug --- pkg/postgres/aws.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/postgres/aws.go b/pkg/postgres/aws.go index 35e9cdde..443b8105 100644 --- a/pkg/postgres/aws.go +++ b/pkg/postgres/aws.go @@ -5,8 +5,10 @@ import ( "github.com/go-logr/logr" "github.com/lib/pq" + logf "sigs.k8s.io/controller-runtime/pkg/runtime/log" ) + type awspg struct { pg } @@ -45,7 +47,7 @@ func (c *awspg) CreateUserRole(role, password string, iamAuthentication bool) (s return "", err } if iamAuthentication { - err = c.GrantRole("rds_iam", c.user) + err = c.GrantRole("rds_iam", role) if err != nil { return "", err }