Skip to content

Commit

Permalink
add id for sgscripts
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Nelson <[email protected]>
  • Loading branch information
jnels124 committed Feb 21, 2025
1 parent c9e3297 commit b57a54b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ spec:
instances: {{ .Values.stackgres.coordinator.instances }}
managedSql:
scripts:
- id: 0
sgScript: {{ include "hedera-mirror.stackgres" . }}-coordinator
- sgScript: {{ include "hedera-mirror.stackgres" . }}-coordinator
pods:
disableEnvoy: {{ not .Values.stackgres.coordinator.enableEnvoy }}
disablePostgresUtil: {{ not .Values.stackgres.coordinator.enablePostgresUtil }}
Expand Down Expand Up @@ -65,8 +64,7 @@ spec:
instancesPerCluster: {{ .Values.stackgres.worker.replicasPerInstance }}
managedSql:
scripts:
- id: 1
sgScript: {{ include "hedera-mirror.stackgres" . }}-worker
- sgScript: {{ include "hedera-mirror.stackgres" . }}-worker
overrides: {{ .Values.stackgres.worker.overrides | toYaml | nindent 6 }}
pods:
disableEnvoy: {{ not .Values.stackgres.worker.enableEnvoy }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
managedVersions: true
scripts:
- database: postgres
id: 0
name: all-postgres
retryOnError: true
scriptFrom:
Expand All @@ -20,6 +21,7 @@ spec:
user: postgres
wrapInTransaction: serializable
- database: {{ .Values.db.name }}
id: 1
name: all-db
retryOnError: true
scriptFrom:
Expand All @@ -30,6 +32,7 @@ spec:
user: postgres
wrapInTransaction: serializable
- database: {{ .Values.db.name }}
id: 2
name: coordinator-owner
retryOnError: true
scriptFrom:
Expand All @@ -40,6 +43,7 @@ spec:
user: {{ .Values.db.owner.username }}
wrapInTransaction: serializable
- database: {{ .Values.db.name }}
id: 3
name: coordinator-superuser
retryOnError: true
scriptFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
managedVersions: true
scripts:
- database: postgres
id: 0
name: all-postgres
retryOnError: true
scriptFrom:
Expand All @@ -19,6 +20,7 @@ spec:
user: postgres
wrapInTransaction: serializable
- database: {{ .Values.db.name }}
id: 1
name: all-db
retryOnError: true
scriptFrom:
Expand Down

0 comments on commit b57a54b

Please sign in to comment.