Skip to content

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented May 6, 2024

Issue

When retrieving the app secret containing the operator’s user passwords in the promotion of a cluster in an async replication setup, the charm fails to try to get the secret labelled as postgresql-k8s.app instead of database-peers.postgresql-k8s.app.

This happened after merging #447 to the main branch (which had some changes in the secret handling, which were not merged before to that PR branch).

Solution

Fix the secret label.

This is a quick fix. To improve it, it should be moved to a common data_interfaces interface.

There is a revision in the 14/edge/async-replication channel with the change from this PR.

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
@marceloneppel marceloneppel marked this pull request as ready for review May 6, 2024 19:07
@marceloneppel marceloneppel merged commit 2853224 into main May 8, 2024
@marceloneppel marceloneppel deleted the dpe-4296-fix-secret-label branch May 8, 2024 08:13
BON4 pushed a commit to BON4/postgresql-k8s-operator that referenced this pull request May 20, 2024
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants