charts icon indicating copy to clipboard operation
charts copied to clipboard

Cluster poolers is missing serviceTemplate

Open PseudoResonance opened this issue 9 months ago • 2 comments

The readme states that poolers can have a ServiceTemplateSpec defined under template, however this is where the PodTemplateSpec is supposed to go. When trying to specify a service template, CNPG complains about missing pod template spec.

A new serviceTemplate option should be added instead to properly configure this.

PseudoResonance avatar Mar 10 '25 11:03 PseudoResonance

Not sure I got your point, serviceTemplate is already available: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-PoolerSpec

phisco avatar Mar 10 '25 13:03 phisco

Sorry, I meant there's no way to specify serviceTemplate in the Helm chart.

Only template.

PseudoResonance avatar Mar 10 '25 14:03 PseudoResonance

I'm also encountering the same issue. The chart doesn't currently surface the serviceTemplate property for Poolers, so there isn't a way to add annotations to the pooler services using the chart.

kimkroening avatar May 08 '25 18:05 kimkroening

Hi, @PseudoResonance. I'm Dosu, and I'm helping the charts team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You identified that the Helm chart for cluster poolers does not support a separate serviceTemplate option.
  • Documentation mentions serviceTemplate for service customization, but the chart only exposes template.
  • This limitation prevents adding annotations to pooler services as intended.
  • Maintainer phisco confirmed serviceTemplate exists in the CRD but is not exposed in the Helm chart.
  • The issue remains unresolved, highlighting a gap between documentation and chart functionality.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of the charts by commenting here.
  • If I don’t hear back within 7 days, I will automatically close the issue.

Thank you for your understanding and contribution!

dosubot[bot] avatar Aug 07 '25 16:08 dosubot[bot]

no-stale

PseudoResonance avatar Aug 07 '25 16:08 PseudoResonance

@phisco, PseudoResonance has indicated that this issue is still relevant. Could you please assist with the support for serviceTemplate in the Helm chart?

dosubot[bot] avatar Aug 07 '25 16:08 dosubot[bot]