Commit eb9b742
committed
fix(cluster): ensure externalClusters is always defined during recovery
The _external_clusters.tpl template was modified to ensure that the
externalClusters list is always explicitly defined when the cluster
is in recovery mode. Previously, if recovery.method did not match
pg_basebackup, import, or object_store, the externalClusters
key might have been rendered without any associated list items, or
possibly not at all depending on template rendering specifics.
By repeating externalClusters: within each conditional block and
adding an explicit else case that sets externalClusters: [], the
template now guarantees a consistent and valid YAML structure for
this field, preventing potential issues with YAML parsers expecting
an empty list rather than just a key with no values.
Signed-off-by: Enrique Hernández Bello <ehernandez@maarlab.com>1 parent dc20328 commit eb9b742
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
0 commit comments