Skip to content

Commit 0b1057d

Browse files
authored
fix GrantReconciler cleanup connecting to the correct database (#20)
1 parent 6e99f7a commit 0b1057d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

operator/src/main/java/it/aboutbits/postgresql/crd/grant/GrantReconciler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,10 @@ public DeleteControl cleanup(
169169
.rescheduleAfter(60, TimeUnit.SECONDS);
170170
}
171171

172+
var database = spec.getDatabase();
172173
var clusterConnection = clusterConnectionOptional.get();
173174

174-
try (var dsl = contextFactory.getDSLContext(clusterConnection)) {
175+
try (var dsl = contextFactory.getDSLContext(clusterConnection, database)) {
175176
dsl.transaction(cfg -> {
176177
var tx = cfg.dsl();
177178

0 commit comments

Comments
 (0)