zalando / zalando/postgres-operator

[kustomize] use configMapGenerator instead of ConfigMap resource

Open
#1,937 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement felix-wishlist help wanted
Dominant language
Go
Stars
5.2k
Forks
1.1k
Avg merge
2d 16h
Merged PRs (30d)
3

Description

When making changes to the postgres-operator ConfigMap, the operator doesn't appear to detect the changes (at least judging by the logs).

If configMapGenerator was used instead, the ConfigMap name would be given a suffix of the hash of the contents (so as the contents change, the hash changes, and so do the references used in Deployments/StatefulSets for example, which in-turn are reconciled (likely restarting the pods).

I haven't taken a close look, so perhaps the operator is constantly watching for changes via the k8s API.

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

Locate the manifests that define the postgres-operator ConfigMap and its references in Deployments or StatefulSets, then inspect how the operator watches ConfigMap changes through the Kubernetes API. Compare the current behavior with configMapGenerator and verify through operator logs that changing the configuration causes the affected workloads to be reconciled.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes, postgresql
Domain
databases, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.