This worked fine, and I didn't experience the KeyError issue, so I think the fix is good. Would be good if others could confirm.
I did see the following error in debug-log - https://pastebin.ubuntu.com/p/skt8Jq8xB7/ - but things continued fine without my intervention (my model-config has automatically-retry-hooks set to true, which I believe is the default), but that's unrelated I believe.
I've built a custom version of the charm using the latest commit and published it to cs:~mthaddon/ postgresql- k8s.
I've then spun up a juju k8s model and ran the following immediately after each other:
juju deploy cs:~mthaddon/ postgresql- k8s postgresql charmers/ mattermost
juju deploy cs:~mattermost-
juju add-relation mattermost postgresql:db
This worked fine, and I didn't experience the KeyError issue, so I think the fix is good. Would be good if others could confirm.
I did see the following error in debug-log - https:/ /pastebin. ubuntu. com/p/skt8Jq8xB 7/ - but things continued fine without my intervention (my model-config has automatically- retry-hooks set to true, which I believe is the default), but that's unrelated I believe.