diff --git a/charts/ext-postgres-operator/Chart.yaml b/charts/ext-postgres-operator/Chart.yaml index 790492e7..c7ba86fd 100644 --- a/charts/ext-postgres-operator/Chart.yaml +++ b/charts/ext-postgres-operator/Chart.yaml @@ -11,10 +11,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.2.3 +version: 1.2.4 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.2.3" +appVersion: "1.2.4" diff --git a/pkg/controller/postgresuser/postgresuser_controller.go b/pkg/controller/postgresuser/postgresuser_controller.go index 5925f2a6..8ffda4c1 100644 --- a/pkg/controller/postgresuser/postgresuser_controller.go +++ b/pkg/controller/postgresuser/postgresuser_controller.go @@ -130,16 +130,6 @@ func (r *ReconcilePostgresUser) Reconcile(request reconcile.Request) (reconcile. // Initialize database name for connection with default database // in case postgres cr isn't here anymore db := r.pg.GetDefaultDatabase() - // Search Postgres CR - postgres, err := r.getPostgresCR(instance) - // Check if error exists and not a not found error - if err != nil && !errors.IsNotFound(err) { - return reconcile.Result{}, err - } - // Check if postgres cr is found and not in deletion state - if postgres != nil && !postgres.GetDeletionTimestamp().IsZero() { - db = instance.Status.DatabaseName - } err = r.pg.DropRole(instance.Status.PostgresRole, instance.Status.PostgresGroup, db, reqLogger) if err != nil {