Error: couldn't find key postgresql-password in Secret wxtdrupal/wxtdrupal-release-postgresql
ulan-yisaev opened this issue · 1 comments
ulan-yisaev commented
Hi team,
Having issues after enabling postgresql:
mysql:
enabled: false
postgresql:
enabled: true
1s Normal Pulled pod/wxtdrupal-release-5ccdb5dd59-7vhb7 Container image "drupalwxt/site-wxt:4.3.3" already present on machine
1s Warning Failed pod/wxtdrupal-release-5ccdb5dd59-7vhb7 Error: couldn't find key postgresql-password in Secret wxtdrupal/wxtdrupal-release-postgresql
1s Normal Pulled pod/wxtdrupal-release-site-install-h2rn2 Container image "drupalwxt/site-wxt:4.3.3" already present on machine
1s Warning Failed pod/wxtdrupal-release-site-install-h2rn2 Error: couldn't find key postgresql-password in Secret wxtdrupal/wxtdrupal-release-postgresql
kubectl logs -f wxtdrupal-release-postgresql-0 -n wxtdrupal
postgresql 18:13:20.91 INFO ==> ** PostgreSQL setup finished! **
postgresql 18:13:20.94 INFO ==> ** Starting PostgreSQL **
2022-08-22 18:13:20.956 GMT [1] LOG: syntax error in file "/opt/bitnami/postgresql/conf/postgresql.conf" line 1, near token "listenAddresses:"
2022-08-22 18:13:20.956 GMT [1] LOG: syntax error in file "/opt/bitnami/postgresql/conf/postgresql.conf" line 2, near token "maxConnections:"
2022-08-22 18:13:20.956 GMT [1] LOG: syntax error in file "/opt/bitnami/postgresql/conf/postgresql.conf" line 3, near token "sharedBuffers:"
2022-08-22 18:13:20.956 GMT [1] LOG: syntax error in file "/opt/bitnami/postgresql/conf/postgresql.conf" line 4, near token "workMem:"
2022-08-22 18:13:20.956 GMT [1] LOG: syntax error in file "/opt/bitnami/postgresql/conf/postgresql.conf" line 5, near token "effectiveCacheSize:"
2022-08-22 18:13:20.956 GMT [1] LOG: syntax error in file "/opt/bitnami/postgresql/conf/postgresql.conf" line 6, near token "maintenanceWorkMem:"
2022-08-22 18:13:20.956 GMT [1] LOG: syntax error in file "/opt/bitnami/postgresql/conf/postgresql.conf" line 7, near token "minWalSize:"
2022-08-22 18:13:20.956 GMT [1] LOG: syntax error in file "/opt/bitnami/postgresql/conf/postgresql.conf" line 8, near token "maxWalSize:"
2022-08-22 18:13:20.956 GMT [1] LOG: syntax error in file "/opt/bitnami/postgresql/conf/postgresql.conf" line 9, near token "walBuffers:"
2022-08-22 18:13:20.956 GMT [1] LOG: syntax error in file "/opt/bitnami/postgresql/conf/postgresql.conf" line 10, near token "byteaOutput:"
2022-08-22 18:13:20.956 GMT [1] FATAL: configuration file "/opt/bitnami/postgresql/conf/postgresql.conf" contains errors
Workaround:
{{- else if .Values.postgresql.enabled }}
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: "{{ .Release.Name }}-postgresql"
key: password
sylus commented
Thanks so much @ulan-yisaev and sorry for the regressions I think this is fixed up with the associated P.R. now :D