Recreating a cluster using an existing storage volume leaves passwords in an odd state

I’m not sure if this is a bug or a feature :slight_smile:

If you uninstall a Percona Postgres cluster but do not delete the storage volume… if you recreate the cluster the database password for pguser, that is stored in a kubernetes secret, becomes inconsistent with the password stored in the database.

I suspect that there might be a way to specifically set the password when creating the cluster when using an existing storage volume but I am sure that someone is going to fall into this trap.

Perhaps there should be a warning in the docs… or better still a way to retrieve the password from the existing storage volume, if one exists.