bitpoke / mysql-operator

Asynchronous MySQL Replication on Kubernetes using Percona Server and Openark's Orchestrator.
https://www.bitpoke.io/docs/mysql-operator/getting-started/
Apache License 2.0
993 stars 275 forks source link

Change headless svc name #903

Open slepovdv opened 9 months ago

slepovdv commented 9 months ago

Change the Headless Service Name to Template-Generated Name


Overview: This pull request introduces a modification to the project that updates the naming convention of the Headless Service (SVC). Currently, the Headless Service name is hardcoded using a constant-defined name, which can lead to naming conflicts and limitations in certain scenarios. To address this issue and improve flexibility, this PR proposes changing the Headless Service name to be dynamically generated using a template.

Motivation: The primary motivation behind this change is to enhance the scalability and maintainability of the project by removing the constraints imposed by a static, constant-defined name. The template-generated name will allow for more dynamic and context-aware naming of the Headless Service, making it easier to manage in various deployment environments and configurations.