Skip to content

Commit 46f5119

Browse files
author
Arnar Gauti Ingason
committed
Fixing typos
1 parent ca51152 commit 46f5119

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/controller/postgresuser/postgresuser_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func (r *ReconcilePostgresUser) Reconcile(request reconcile.Request) (reconcile.
150150
return r.requeue(instance, errors.NewInternalError(err))
151151
}
152152
if !database.Status.Succeeded {
153-
err = fmt.Errorf("Databse \"%s\" is not ready", database.Name)
153+
err = fmt.Errorf("Database \"%s\" is not ready", database.Name)
154154
return r.requeue(instance, err)
155155
}
156156

pkg/postgres/postgres.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (c *pg) GrantRole(role, grantee string) error {
8282
}
8383

8484
func (c *pg) AlterDefaultLoginRole(role, setRole string) error {
85-
// On AWS RDS the posgres user isn't really superuser so he doesn't have permissions
85+
// On AWS RDS the postgres user isn't really superuser so he doesn't have permissions
8686
// to ALTER USER unless he belongs to both roles
8787
err := c.GrantRole(role, c.user)
8888
if err != nil {
@@ -105,7 +105,7 @@ func (c *pg) RevokeRole(role, revoked string) error {
105105
}
106106

107107
func (c *pg) DropRole(role, newOwner, database string, logger logr.Logger) error {
108-
// On AWS RDS the posgres user isn't really superuser so he doesn't have permissions
108+
// On AWS RDS the postgres user isn't really superuser so he doesn't have permissions
109109
// to REASSIGN OWNED BY unless he belongs to both roles
110110
err := c.GrantRole(role, c.user)
111111
if err != nil && err.(*pq.Error).Code != "0LP01" {

0 commit comments

Comments
 (0)