Skip to content

Commit

Permalink
fix: polarx role probe (apecloud#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuriwuyun authored Mar 12, 2024
1 parent 81d5e10 commit 4603ca8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
4 changes: 2 additions & 2 deletions addons/polardbx/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: polardbx
description: PolarDB-X is a cloud native distributed SQL Database designed for high concurrency, massive storage, complex querying scenarios.

type: application
version: 0.8.0
version: 0.8.1
appVersion: v2.3

keywords:
Expand All @@ -21,4 +21,4 @@ maintainers:
annotations:
addon.kubeblocks.io/kubeblocks-version: ">=0.7.0"
addon.kubeblocks.io/model: "RDBMS"
addon.kubeblocks.io/provider: "community"
addon.kubeblocks.io/provider: "community"
28 changes: 8 additions & 20 deletions addons/polardbx/templates/clusterDefintion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,10 @@ spec:
customHandler:
- image: "arey/mysql-client:latest"
command:
- mysql
- "-h127.0.0.1"
- "-P3306"
- "-uroot"
- "-N"
- "-B"
- "-e"
- "\"select role from information_schema.alisql_cluster_local\""
- "|"
- "xargs echo -n"
- sh
- -c
- |
mysql -h127.0.0.1 -P3306 -uroot -N -B -e "select role from information_schema.alisql_cluster_local" | xargs echo -n
memberUpdateStrategy: Serial
service:
ports:
Expand Down Expand Up @@ -251,16 +245,10 @@ spec:
customHandler:
- image: "arey/mysql-client:latest"
command:
- mysql
- "-h127.0.0.1"
- "-P3306"
- "-uroot"
- "-N"
- "-B"
- "-e"
- "\"select role from information_schema.alisql_cluster_local\""
- "|"
- "xargs echo -n"
- sh
- -c
- |
mysql -h127.0.0.1 -P3306 -uroot -N -B -e "select role from information_schema.alisql_cluster_local" | xargs echo -n
memberUpdateStrategy: Serial
service:
ports:
Expand Down

0 comments on commit 4603ca8

Please sign in to comment.