Skip to content

Commit

Permalink
chore: apecloud mysql support rerender after vscale (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophon-zt authored Jul 19, 2024
1 parent ba9bd91 commit 026c62a
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/apecloud-mysql/templates/cmpd-apecloudmysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
constraintRef: {{ include "apecloud-mysql.configConstraintName" . }}
volumeName: mysql-config
namespace: {{ .Release.Namespace }}
reRenderResourceTypes:
- vscale
- name: vttablet-config
templateRef: {{ include "apecloud-mysql.configTplVttabletName" . }}
constraintRef: {{ include "apecloud-mysql.configConstraintVttabletName" . }}
Expand Down
2 changes: 2 additions & 0 deletions addons/mysql/templates/cmpd-mysql57-orc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ spec:
constraintRef: mysql-config-constraints
volumeName: mysql-config
namespace: {{ .Release.Namespace }}
reRenderResourceTypes:
- vscale
runtime:
initContainers:
- image: {{ .Values.image.registry | default "docker.io" }}/apecloud/mysql_audit_log:5.7.44
Expand Down
2 changes: 2 additions & 0 deletions addons/mysql/templates/cmpd-mysql57.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
constraintRef: mysql-config-constraints
volumeName: mysql-config
namespace: {{ .Release.Namespace }}
reRenderResourceTypes:
- vscale
runtime:
initContainers:
- image: {{ .Values.image.registry | default "docker.io" }}/apecloud/mysql_audit_log:5.7.44
Expand Down
2 changes: 2 additions & 0 deletions addons/mysql/templates/cmpd-mysql80-orc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ spec:
constraintRef: mysql-config-constraints
volumeName: mysql-config
namespace: {{ .Release.Namespace }}
reRenderResourceTypes:
- vscale
runtime:
initContainers:
- image: {{ .Values.image.registry | default "docker.io" }}/apecloud/mysql_audit_log:8.0.33
Expand Down
2 changes: 2 additions & 0 deletions addons/mysql/templates/cmpd-mysql80.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
constraintRef: mysql-config-constraints
volumeName: mysql-config
namespace: {{ .Release.Namespace }}
reRenderResourceTypes:
- vscale
runtime:
initContainers:
- image: {{ .Values.image.registry | default "docker.io" }}/apecloud/mysql_audit_log:8.0.33
Expand Down
2 changes: 2 additions & 0 deletions addons/postgresql/templates/componentdefinition-12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ spec:
namespace: {{ .Release.Namespace }}
volumeName: postgresql-config
defaultMode: 0444
reRenderResourceTypes:
- vscale
- name: pgbouncer-configuration
templateRef: pgbouncer-configuration
keys:
Expand Down
2 changes: 2 additions & 0 deletions addons/postgresql/templates/componentdefinition-14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ spec:
namespace: {{ .Release.Namespace }}
volumeName: postgresql-config
defaultMode: 0444
reRenderResourceTypes:
- vscale
- name: pgbouncer-configuration
templateRef: pgbouncer-configuration
keys:
Expand Down
2 changes: 2 additions & 0 deletions addons/postgresql/templates/componentdefinition-15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ spec:
namespace: {{ .Release.Namespace }}
volumeName: postgresql-config
defaultMode: 0444
reRenderResourceTypes:
- vscale
- name: pgbouncer-configuration
templateRef: pgbouncer-configuration
keys:
Expand Down
2 changes: 2 additions & 0 deletions addons/pulsar/templates/componentdef-bkrecovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
- bookies-recovery
- check-bookies
volumeName: recovery-config-env
reRenderResourceTypes:
- vscale
scripts:
- name: pulsar-scripts
templateRef: {{ include "pulsar.name" . }}-scripts
Expand Down
4 changes: 4 additions & 0 deletions addons/pulsar/templates/componentdef-bookkeeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ spec:
injectEnvTo:
- init-bookies
- bookies
reRenderResourceTypes:
- vscale
- name: bookies-config
templateRef: {{ include "pulsar.name" . }}{{include "pulsar.major.version" .}}-bookies-config-tpl
namespace: {{ .Release.Namespace }}
volumeName: pulsar-bookies-config
constraintRef: pulsar{{include "pulsar.major.version" .}}-bookies-cc
reRenderResourceTypes:
- vscale
scripts:
- name: pulsar-scripts
templateRef: {{ include "pulsar.name" . }}-scripts
Expand Down
2 changes: 2 additions & 0 deletions addons/pulsar/templates/componentdef-broker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ spec:
- broker
- init-pulsar-client-config
volumeName: broker-env
reRenderResourceTypes:
- vscale
- name: broker-config
templateRef: {{ include "pulsar.name" . }}{{include "pulsar.major.version" .}}-broker-config-tpl
namespace: {{ .Release.Namespace }}
Expand Down
2 changes: 2 additions & 0 deletions addons/pulsar/templates/componentdef-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
injectEnvTo:
- proxy
- check-broker
reRenderResourceTypes:
- vscale
- name: proxy-config
templateRef: {{ include "pulsar.name" . }}{{include "pulsar.major.version" .}}-proxy-config-tpl
namespace: {{ .Release.Namespace }}
Expand Down
2 changes: 2 additions & 0 deletions addons/redis/templates/componentdefinition-redis-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ spec:
constraintRef: redis-cluster7-config-constraints
namespace: {{ .Release.Namespace }}
volumeName: redis-cluster-config
reRenderResourceTypes:
- vscale
- name: redis-metrics-config
templateRef: redis-metrics-config
namespace: {{ .Release.Namespace }}
Expand Down

0 comments on commit 026c62a

Please sign in to comment.