Commit 655cf2b
Ensure Kubernetes Secrets associated with backups are deleted when specified.
During a PostgreSQL delete operation where the user explicitly specifies to
delete the backups `e.g. pgo delete cluster clustername --delete-backups`, the
`<clustername>-pgbackrest-repo-config` secret was not being deleted. Given all
the backups for that cluster are destroyed, the secret is effectively moot and
should be removed.
This ensures that the `<clustername>-pgbackrest-repo-config` secret is removed
when `--delete-backups` is specified. However, if only `--delete-data` is
specified but not `--delete-backups`, the aforementioned secret remains.
Issue: [ch6254]1 parent 945a009 commit 655cf2b
1 file changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
157 | 160 | | |
158 | 161 | | |
159 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
160 | 188 | | |
161 | 189 | | |
162 | 190 | | |
| |||
0 commit comments