observatorium / thanos-receive-controller

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

support az aware hashring and multiple sts in one hashring #129

Closed christopherzli closed 6 months ago

christopherzli commented 10 months ago

What changes are proposed in this pull request?

  1. Support az aware hashring in Thanos v0.32+ https://thanos.io/tip/components/receive.md/#az-aware-ketama-hashring-experimental
  2. supported multiple sts in one hashring
  3. Update dependencies including golang version, along with bingo and golangci-lint version, and fixed all lint tests

    How is this tested?

    main_test.go, Make thanos-receive-controller https://github.com/observatorium/thanos-receive-controller/issues/127

christopherzli commented 10 months ago

tested it worked when scale up 1 node, the configmap updates the configmap too:

Screenshot 2024-01-25 at 2 16 19 AM