Skip to content

[Backport release-1.2] [mariadb] fix: always enable replication for consistent service naming - #2651

Closed
github-actions[bot] wants to merge 2 commits into
release-1.2from
backport-2279-to-release-1.2
Closed

github-actions[bot] wants to merge 2 commits into
release-1.2from
backport-2279-to-release-1.2

Conversation

@github-actions

Copy link
Copy Markdown

Description

Backport of #2279 to release-1.2.

Enable replication unconditionally regardless of replica count.
Previously, single-replica instances created a general service
without -primary/-secondary suffixes, causing dashboard and
backup-cronjob to reference non-existent services.

Also fix duplicate YAML key in backup-cronjob template.

BREAKING CHANGE: Single-replica MariaDB instances will now have
service names with -primary/-secondary suffixes instead of the
bare instance name. Applications connecting via the old service
DNS name need to be updated.

Assisted-By: Claude AI
Signed-off-by: Kirill Ilin <[email protected]>
(cherry picked from commit d2030be)
When replicas=1, the secondary service has no endpoints because the
only pod is the primary. Route backups to the primary service in this
case to ensure they work correctly.

Assisted-By: Claude AI
Signed-off-by: Kirill Ilin <[email protected]>
(cherry picked from commit 1d58c18)
@dosubot dosubot Bot added area/database Issues or PRs related to managed databases (postgres, mariadb, redis, etcd, kafka, clickhouse) kind/backport-previous Categorizes issue or PR as requiring a backport to the previous release line labels May 14, 2026
@kvaps

Copy link
Copy Markdown
Member

Closing — this backport pulls in PR #2279 in full, but the author marked it as a BREAKING CHANGE (single-replica MariaDB services renamed from <name> to <name>-primary / <name>-secondary). Not appropriate for a v1.2.x patch release.

Will open a minimal backport that removes only the duplicate template: key in backup-cronjob.yaml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/database Issues or PRs related to managed databases (postgres, mariadb, redis, etcd, kafka, clickhouse) kind/backport-previous Categorizes issue or PR as requiring a backport to the previous release line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants