percona-postgresql-operator icon indicating copy to clipboard operation
percona-postgresql-operator copied to clipboard

Patroni Version check does not respect default images defined in env variables

Open Kajot-dev opened this issue 6 months ago • 2 comments
trafficstars

Report

Operator allows to specify default images via RELATED_IMAGE_POSTGRES_* env variables, to not require users to define spec.image by themselves.

When creating a new cluster operator tries to do Patroni version check which fails because cluster defined by the user uses default image instead :/

More about the problem

Expected behaviour is that if spec.image is not defined it will try to use the default image if specified like all other components.

Instead creating/doing anything to the cluster fails

Steps to reproduce

  1. Configure operator with default images
  2. Try to create a cluster which utilizes default image (no spec.image)
  3. Creating/managing cluster fails

Versions

  1. Kubernetes 1.24 (present on all versions)
  2. Operator 2.6.0+ (since patroni check was introduced)
  3. Database 15 (present on all versions)

Anything else?

No response

Kajot-dev avatar May 08 '25 17:05 Kajot-dev