Skip to content

Catalog of PostgreSQL images #12

Closed

Description

@gbartolini

From a usability standpoint, it would be great if had to only specify the major version of PostgreSQL in an image (e.g. quay.io/enterprisedb/postgresql:14) and let the operator figure out which image to pull down and when to update the operands.

Every time a new set of images is built in the postgres-containers project, update a JSON file that contains the metadata of the container images, including the major version (14, 13, …), the full version (e.g. 14.2), the tag and the digest.

This is still a stub of idea. We need further analysis.

Activity

  1. added this to the 2022-Q2 milestone on Apr 11, 2022
  2. moved this to Todo in Roadmapon May 5, 2022
  3. removed this from the 2022-Q2 milestone on Jun 14, 2022
  4. moved this from Todo to No status in Roadmapon Oct 19, 2022
  5. gbartolini commented on Jan 16, 2024

    @gbartolini
    ContributorAuthor

    A proposal is to add a new CRD called PostgresImageCatalog, like in the following example:

    apiVersion: postgresql.cnpg.io/v1
    kind: PostgresImageCatalog
    metadata:
      name: postgresql
    spec:
      baseName: …
      versions:
       - major: “15”
          fullVersion: “15.1”
          imageID: xxxx
          tag: 15.1-2-debian
         architectures? … registryURL?

    We should shop around and look for well defined and possibly standard ways to define image metadata (for example goharbor?).

    The idea is that CloudNativePG ships with a predefined catalog that is updated with each release of CloudNativePG.

    The catalog could be used in the Cluster definition as follows:

    apiVersion: postgresql.cnpg.io/v1
    kind: Cluster
    metadata:
      name: cluster-example
    spec:
      instances: 3
      imageCatalog:
        name: postgresql
        major: 15
  6. fcanovai commented on Jan 21, 2024

    @fcanovai
    Contributor

    I've prepared a draft PR (#3711) . It is missing user documentation and needs thorough testing, but I'd like some feedback first.

  7. added this to the 1.23.0, 1.22.2, 1.21.4 milestone on Mar 1, 2024
  8. added a commit that references this issue on Mar 5, 2024
    67fdadf
  9. added a commit that references this issue on Mar 5, 2024
    155baa1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions