zalando / zalando/postgres-operator

Feature Request: Specific pod annotations

Open
#2,540 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
5.2k
Forks
1.1k
Avg merge
2d 16h
Merged PRs (30d)
3

Description

  • Which image of the operator are you using? registry.opensource.zalan.do/acid/postgres-operator:v1.10.0
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? Tanzu on vSphere
  • Are you running Postgres Operator in production? yes
  • Type of issue? Feature request

We'd like to use the telegraf operator to fetch database logs. This operator is using pod annotations to install its sidecar to. The manifest parameter podAnnotations allows to set these annotations, but they are propagated to every pod the operator manages. This e.g. includes logical backup and connection pooler pods, where the server logs obviously don't exist.

It would be nice to have a parameter to only set the pod annotations for the spilo pods.

A workaround for this could be to use the sidecars parameter to manually set the telegraf sidecar, but this would break how we do it with our other deployments.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing where the manifest parameter podAnnotations is applied to managed pods, then compare the handling of Spilo, logical backup, and connection pooler pods. The change is complete when a parameter can target annotations to Spilo pods without propagating them to backup or pooler pods; check the relevant operator tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes, postgresql
Domain
databases, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.