Skip to content

Commit

Permalink
feat: kbcli support connect wesql with vtgate (#3850)
Browse files Browse the repository at this point in the history
Co-authored-by: 1aal <1aal@users.noreply.github.com>
  • Loading branch information
2 people authored and ldming committed Nov 21, 2023
1 parent e919439 commit 18e2ab9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions apecloud-mysql/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ spec:
command: ["/scripts/vtctld.sh"]
volumeMounts:
- name: scripts
mountPath: /scripts
mountPath: /scripts
- name: vtconsensus
imagePullPolicy: {{ default "IfNotPresent" .Values.wesqlscale.image.pullPolicy }}
ports:
Expand Down Expand Up @@ -455,7 +455,7 @@ spec:
- name: mysql-scale-config
mountPath: /conf
- name: vtgate
characterType: vtgate
characterType: mysql
workloadType: Stateless
scriptSpecs:
- name: apecloud-mysql-scripts
Expand Down Expand Up @@ -490,7 +490,7 @@ spec:
image: busybox:1.35
env:
- name: VTCTLD_HOST
value: "$(KB_CLUSTER_NAME)-vtcontroller-headless"
value: "$(KB_CLUSTER_NAME)-vtcontroller-headless"
- name: VTCTLD_GRPC_PORT
value: "15999"
command: ["/scripts/wait-for-service.sh", "vtctld", "$(VTCTLD_HOST)", "$(VTCTLD_GRPC_PORT)"]
Expand Down Expand Up @@ -536,6 +536,8 @@ spec:
value: "2379"
- name: TOPOLOGY_FLAGS
value: "--topo_implementation etcd2 --topo_global_server_address $(ETCD_SERVER):$(ETCD_PORT) --topo_global_root /vitess/global"
- name: MYSQL_UNIX_PORT
value: "/tmp/mysql.sock"
command: ["/scripts/vtgate.sh"]
volumeMounts:
- name: scripts
Expand Down
4 changes: 2 additions & 2 deletions postgresql/templates/configconstraint-14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ spec:
matchLabels:
"apps.kubeblocks.postgres.patroni/role": "master"

# top level mysql configuration type
# top level pg configuration type
cfgSchemaTopLevelName: PGParameter

# ConfigurationSchema that impose restrictions on engine parameter's rule
configurationSchema:
# schema: auto generate from mmmcue scripts
# schema: auto generate from cue scripts
# example: ../../internal/configuration/testdata/mysql_openapi.json
cue: |-
{{- .Files.Get "config/pg14-config-constraint.cue" | nindent 6 }}
Expand Down

0 comments on commit 18e2ab9

Please sign in to comment.