Commit 925c6b7
committed
Use separate observer for root password
If another object is referenced via the connectionDetails for a kube
object, it can happen that the kube object can't be deleted, if the
referenced object is deleted first.
In this specific case, we used to reference the secret that StackGres
creates to expose the root password via the connectionDetails of the
`cluster` kube object. However that secret is managed by StackGres. So it
will be created by StackGres once a sgcluster object is created.
This sgcluster object is managed by the `cluster` kube object, which
leads to the race condition.
It can happen that StackGres is faster with removing the secret than
provider-kubernetes in remove the `cluster` kube object. When that
happens the `cluster` kube object doesn't get deleted, because
provider-kubernetes throws observation warnings. These warnings prevent
the deletion of the actual sgcluster object and the wrapping `cluster`
kube object.1 parent acc6d8c commit 925c6b7
File tree
1 file changed
+40
-11
lines changed- pkg/comp-functions/functions/vshnpostgres
1 file changed
+40
-11
lines changedLines changed: 40 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
73 | | - | |
| 79 | + | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
| |||
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 109 | | |
114 | 110 | | |
115 | 111 | | |
| |||
154 | 150 | | |
155 | 151 | | |
156 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
0 commit comments