Skip to content

fix(template): normalize provider DB labels#170

Open
Che-Zhu wants to merge 3 commits into
labring:mainfrom
Che-Zhu:fix/template-provider-db-label-normalization
Open

fix(template): normalize provider DB labels#170
Che-Zhu wants to merge 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
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.

1 participant