Skip to content

fix(template): normalize provider DB labels#170

Merged
aimeritething merged 3 commits into
labring:mainfrom
Che-Zhu:fix/template-provider-db-label-normalization
Jul 13, 2026
Merged

fix(template): normalize provider DB labels#170
aimeritething merged 3 commits into
labring:mainfrom
Che-Zhu:fix/template-provider-db-label-normalization

Conversation

@Che-Zhu

@Che-Zhu Che-Zhu commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • normalize KubeBlocks Cluster labels after provider template deployment so Brain DB discovery can find embedded DBs
  • infer DB provider labels from existing clusterdefinition/spec/kb.io database metadata for PostgreSQL, MySQL, Redis, and MongoDB
  • keep provider deployment creation in the create-resources step while applying the post-deploy label patch there

Tests

  • bun test apps/ui/src/lib/template-provider-db-labels.test.ts
  • bun test apps/ui/src/lib/template-provider.test.ts
  • bun test apps/ui/src/lib/template-k8s-apply.test.ts
  • bun typecheck
  • bun check

Che-Zhu added 2 commits July 9, 2026 17:42
@aimeritething aimeritething merged commit 07cbd23 into labring:main Jul 13, 2026
1 check passed
@Che-Zhu Che-Zhu deleted the fix/template-provider-db-label-normalization branch July 13, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants