Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuriwuyun committed Oct 25, 2024
1 parent 675d1c9 commit 32b67f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 0 additions & 4 deletions addons-cluster/apecloud-mysql/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ metadata:
{{- end }}
spec:
terminationPolicy: {{ .Values.extra.terminationPolicy }}
{{- include "kblib.affinity" . | indent 2 }}
clusterDef: apecloud-mysql # ref clusterdefinition.name
topology: {{ include "apecloud-mysql-cluster.topology" . }}
componentSpecs:
Expand All @@ -23,9 +22,6 @@ spec:
{{ include "apecloud-mysql-cluster.serviceRef" . | indent 8 }}
{{- end }}
replicas: {{ include "apecloud-mysql-cluster.replicas" . }}
enabledLogs:
- slow
- error
{{- include "kblib.componentResources" . | indent 6 }}
{{- include "kblib.componentStorages" . | indent 6 }}
{{- if and (eq .Values.mode "raftGroup") .Values.proxyEnabled }}
Expand Down
7 changes: 3 additions & 4 deletions addons/apecloud-mysql/config/mysql8-config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,14 @@ log_statements_unsafe_for_binlog=OFF
log_error_verbosity=2
log_output=FILE
log_error=/data/mysql/log/mysqld-error.log
{{- if hasKey $.component "enabledLogs" }}
{{- if mustHas "slow" $.component.enabledLogs }}

slow_query_log=ON
long_query_time=5
slow_query_log_file=/data/mysql/log/mysqld-slowquery.log
{{- end }}
general_log_file=/data/mysql/log/mysqld.log
{{- if hasKey $.component "enabledLogs" }}
{{- if mustHas "general" $.component.enabledLogs }}
general_log=ON
general_log_file=/data/mysql/log/mysqld.log
{{- end }}
{{- end }}
{{ end }}
Expand Down
1 change: 1 addition & 0 deletions addons/apecloud-mysql/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ lifecycleActions:
accountProvision:
exec:
container: mysql
image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:8.0.30-5.beta3.20240330.g94d1caf.15
command:
- bash
- -c
Expand Down
9 changes: 6 additions & 3 deletions addons/apecloud-mysql/templates/cmpv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ spec:
vtablet: {{ .Values.wesqlscale.image.registry | default ( .Values.image.registry | default "docker.io" ) }}/{{ .Values.wesqlscale.image.repository }}:0.2.7
compatibilityRules:
- releases: [apecloud-mysql-8.0.30]
compDefs: [apecloud-mysql]
compDefs:
- {{ include "apecloud-mysql.cmpdNameApecloudMySQLPrefix" . }}
---
apiVersion: apps.kubeblocks.io/v1
kind: ComponentVersion
Expand All @@ -35,6 +36,8 @@ spec:
vtgate: *wescale
compatibilityRules:
- releases: [wescale-ctrl-0.2.7]
compDefs: [wescale-ctrl]
compDefs:
- {{ include "apecloud-mysql.cmpdNameWescaleCtrlPrefix" . }}
- releases: [wescale-0.2.7]
compDefs: [wescale]
compDefs:
- {{ include "apecloud-mysql.cmpdNameWescalePrefix" . }}

0 comments on commit 32b67f3

Please sign in to comment.