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 committed Sep 2, 2024
1 parent a3c61c6 commit 07d9753
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 7 deletions.
2 changes: 2 additions & 0 deletions addons/apecloud-mysql/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,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
6 changes: 4 additions & 2 deletions addons/postgresql/templates/componentdefinition-12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ spec:
- postgresql.conf
namespace: {{ .Release.Namespace }}
volumeName: postgresql-config
defaultMode: 0777
defaultMode: 0444
reRenderResourceTypes:
- vscale
- name: pgbouncer-configuration
templateRef: pgbouncer-configuration
keys:
Expand Down Expand Up @@ -344,4 +346,4 @@ spec:
compDef: postgresql-12
name: postgres
optional: false
password: Required
password: Required
6 changes: 4 additions & 2 deletions addons/postgresql/templates/componentdefinition-14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ spec:
- postgresql.conf
namespace: {{ .Release.Namespace }}
volumeName: postgresql-config
defaultMode: 0777
defaultMode: 0444
reRenderResourceTypes:
- vscale
- name: pgbouncer-configuration
templateRef: pgbouncer-configuration
keys:
Expand Down Expand Up @@ -344,4 +346,4 @@ spec:
compDef: postgresql-14
name: postgres
optional: false
password: Required
password: Required
6 changes: 4 additions & 2 deletions addons/postgresql/templates/componentdefinition-15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ spec:
- postgresql.conf
namespace: {{ .Release.Namespace }}
volumeName: postgresql-config
defaultMode: 0777
defaultMode: 0444
reRenderResourceTypes:
- vscale
- name: pgbouncer-configuration
templateRef: pgbouncer-configuration
keys:
Expand Down Expand Up @@ -344,4 +346,4 @@ spec:
compDef: postgresql-15
name: postgres
optional: false
password: Required
password: Required
4 changes: 3 additions & 1 deletion addons/postgresql/templates/componentdefinition-16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ spec:
- postgresql.conf
namespace: {{ .Release.Namespace }}
volumeName: postgresql-config
defaultMode: 0777
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 07d9753

Please sign in to comment.