File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
pkg/controller/postgresuser Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -130,16 +130,6 @@ func (r *ReconcilePostgresUser) Reconcile(request reconcile.Request) (reconcile.
130
130
// Initialize database name for connection with default database
131
131
// in case postgres cr isn't here anymore
132
132
db := r .pg .GetDefaultDatabase ()
133
- // Search Postgres CR
134
- postgres , err := r .getPostgresCR (instance )
135
- // Check if error exists and not a not found error
136
- if err != nil && ! errors .IsNotFound (err ) {
137
- return reconcile.Result {}, err
138
- }
139
- // Check if postgres cr is found and not in deletion state
140
- if postgres != nil && ! postgres .GetDeletionTimestamp ().IsZero () {
141
- db = instance .Status .DatabaseName
142
- }
143
133
err = r .pg .DropRole (instance .Status .PostgresRole , instance .Status .PostgresGroup ,
144
134
db , reqLogger )
145
135
if err != nil {
You can’t perform that action at this time.
0 commit comments