Skip to content

Commit 55d5e33

Browse files
committed
megre(addons): megre from upstream
1 parent 6b5eaef commit 55d5e33

8 files changed

Lines changed: 6 additions & 51 deletions

File tree

addons/postgresql-cluster/15/chart/postgresql-cluster/README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ backup:
7171

7272
- Login database web with admin user & password
7373

74-
<<<<<<< HEAD
7574
- Change administrator initial password
7675
```
7776
ALTER USER administrator WITH ENCRYPTED PASSWORD 'newpassword';
@@ -88,15 +87,7 @@ GRANT `myuser` to administrator ;
8887
- CREATE APP DATABASE
8988
```
9089
CREATE DATABASE `mydb` OWNER `myuser`;
91-
=======
92-
- CREATE APP USER
93-
```
94-
CREATE USER `my_user` WITH CONNECTION LIMIT `conn_limit` LOGIN ENCRYPTED PASSWORD 'password';
95-
```
96-
- CREATE APP DATABASE
97-
```
98-
CREATE DATABASE `my_db` OWNER `my_user`;
99-
>>>>>>> d9ed1063e1d4d34d5a535bf86bacd2c9d2a31dfd
90+
10091
```
10192
- CREATE EXTENSIONS
10293
```

addons/postgresql-cluster/15/chart/postgresql-cluster/templates/_helpers.tpl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,7 @@ Get the administrator password ;
189189
{{- if .Values.adminRole.password }}
190190
{{- .Values.adminRole.password -}}
191191
{{- else -}}
192-
<<<<<<< HEAD
193192
{{- include "getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "common.names.fullname" .) "Length" 10 "Key" "admin-password") -}}
194-
=======
195-
{{- include "getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "common.names.fullname" .) "Length" 10 "Key" "password-replication") -}}
196-
>>>>>>> d9ed1063e1d4d34d5a535bf86bacd2c9d2a31dfd
197193
{{- end -}}
198194
{{- end }}
199195

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
<<<<<<< HEAD
2-
=======
3-
{{- if (include "backup.createConfigmap" .) }}
4-
>>>>>>> d9ed1063e1d4d34d5a535bf86bacd2c9d2a31dfd
51
apiVersion: v1
62
kind: ConfigMap
73
metadata:
@@ -17,13 +13,5 @@ metadata:
1713
{{- end }}
1814
data:
1915
backup.env: |-
20-
<<<<<<< HEAD
2116
{{- include "common.tplvalues.render" ( dict "value" .Values.backupEnv "context" $ ) | nindent 4 }}
22-
=======
23-
{{- include "common.tplvalues.render" ( dict "value" .Values.backupEnv "context" $ ) | nindent 4 }}
24-
# archive_command.sh: | -
25-
# #/bin/bash
26-
# source backup.env
27-
# [ $USE_WALG ] ? sh /opt/drycc/postgresql/walbackup.sh %p : /bin/true
28-
{{- end -}}
29-
>>>>>>> d9ed1063e1d4d34d5a535bf86bacd2c9d2a31dfd
17+

addons/postgresql-cluster/15/chart/postgresql-cluster/templates/sec.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,5 @@ data:
1414
password-superuser: {{ include "credentials.superuserValue" . | b64enc | quote }}
1515
password-rewind: {{ include "credentials.rewindValue" . | b64enc | quote }}
1616
password-replication: {{ include "credentials.replicationValue" . | b64enc | quote }}
17-
<<<<<<< HEAD
1817
admin-user: {{ .Values.adminRole.username | b64enc | quote }}
19-
admin-password: {{ include "adminRole.passwordValue" . | b64enc | quote }}
20-
=======
21-
admin-user: {{ .Values.adminRole.username | b64enc }}
22-
admin-password: {{ .Values.adminRole.password | b64enc }}
23-
>>>>>>> d9ed1063e1d4d34d5a535bf86bacd2c9d2a31dfd
18+
admin-password: {{ include "adminRole.passwordValue" . | b64enc | quote }}

addons/postgresql-cluster/15/chart/postgresql-cluster/templates/statefulset.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,6 @@ spec:
161161
resources: {{- toYaml .Values.metrics.resources | nindent 12 }}
162162
{{- end }}
163163
{{- end }}
164-
<<<<<<< HEAD
165-
166-
=======
167-
{{- if .Values.backup.enabled }}
168-
>>>>>>> d9ed1063e1d4d34d5a535bf86bacd2c9d2a31dfd
169164
- name: {{ .Chart.Name }}-backup
170165
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
171166
imagePullPolicy: {{ .Values.image.pullPolicy }}

addons/postgresql-cluster/15/chart/postgresql-cluster/values.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,10 @@ postInitScript: |
124124
psql -w -c "CREATE USER tea_mon WITH ROLE pg_monitor;create extension pg_stat_statements;create extension pg_buffercache ;"
125125
# Create admin user
126126
if [[( -n "$ADMIN_USER") && ( -n "$ADMIN_PASSWORD")]]; then
127-
<<<<<<< HEAD
127+
128128
echo "Creating user ${ADMIN_USER}"
129129
psql -w -c "CREATE USER ${ADMIN_USER} WITH SUPERUSER CREATEDB CREATEROLE CONNECTION LIMIT 10 LOGIN ENCRYPTED PASSWORD '${ADMIN_PASSWORD}'"
130-
=======
131-
echo "Creating user ${ADMIN_USER}"
132-
# psql -w -c "CREATE USER ${ADMIN_USER} WITH NOSUPERUSER CREATEDB CREATEROLE REPLICATION CONNECTION LIMIT 10 LOGIN ENCRYPTED PASSWORD '${ADMIN_PASSWORD}'"
133-
>>>>>>> d9ed1063e1d4d34d5a535bf86bacd2c9d2a31dfd
130+
134131
else
135132
echo "Skipping create admin user"
136133
fi

addons/postgresql-cluster/15/plans/standard-10/bind.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ credential:
3232
name: {{ template "common.names.fullname" . }}
3333
jsonpath: '{ .data.admin-user }'
3434
- name: PORT
35-
<<<<<<< HEAD
3635
value: 5432
3736
- name: DADABASE
3837
value: postgres
39-
=======
40-
value: 5432
41-
>>>>>>> d9ed1063e1d4d34d5a535bf86bacd2c9d2a31dfd
38+
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: "standard-50"
22
id: 0542f411-4e7b-46af-966c-c9989e54873c
3-
<<<<<<< HEAD
43
description: "PostgreSQL Cluster standard-50 plan: Disk 50Gi ,vCPUs 2 , RAM 8G , DB MAX Connection 2000"
5-
=======
6-
description: "PostgreSQL standard-50 plan: Disk 50Gi ,vCPUs 2 , RAM 8G , DB MAX Connection 2000"
7-
>>>>>>> d9ed1063e1d4d34d5a535bf86bacd2c9d2a31dfd
84
displayName: "standard-50"
95
bindable: true
106
maximum_polling_duration: 1800

0 commit comments

Comments
 (0)