Skip to content

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

Open
@Kajot-dev

Description

@Kajot-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions