Skip to content

PostgreSQL CRD lacks podLabels field for propagating custom labels to StatefulSet pods #99

@thpham

Description

@thpham

Please, answer some short questions which should help us to understand your problem / question better?

  • Which image of the operator are you using?
    cybertecpostgresql/cybertec-pg-operator:v0.8.3-2
  • Where do you run it - cloud or metal? Kubernetes or OpenShift?
    ARO Openshift 4.18
  • Are you running Postgres Operator in production?
    YES, soon.
  • Type of issue?
    Limitation.

Problem:

The CloudNativePG (CPO) PostgreSQL CRD does not provide a way to propagate custom labels to StatefulSet pods and their services. While the Helm chart supports commonLabels, these labels are only applied to the PostgreSQL custom resource itself, not to the pods/services created by the operator. This limitation prevents proper integration with service mesh observability tools (Istio/Kiali) and other tools that rely on pod labels for grouping, filtering, and visualization.

Expected result:

Pods should have both operator-managed labels AND custom labels from podLabels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions