observatorium / thanos-receive-controller

Kubernetes controller to automatically configure Thanos receive hashrings
Apache License 2.0
96 stars 46 forks source link

Allow to annotate pods on change using a different label #126

Open rtnpro opened 1 year ago

rtnpro commented 1 year ago

This change allows users to optionally specify a different label (than the one used to watch receiver pods) for annotating pods on hashring change.

This is useful in a separate Thanos receiver router and ingestor setup: https://thanos.io/tip/proposals-accepted/202012-receive-split.md/ where we need to watch a different set of ingestor pods to update the hashring, but the hashring is consumed by a different set of router pods.

Fixes #125

philipgough commented 6 months ago

@rtnpro would you mind rebasing on main

rtnpro commented 5 months ago

@philipgough I have rebased this PR on top of latest main