Skip to content

Commit bd3c912

Browse files
committed
Sync the backrest restore, collect, pgbouncer and
backrest repo templates in the Ansible installer with those in the bash installer. Also, sync the pgo target role template in the bash installer with the same template in the Ansible installer. This ensures all template are in sync between the bash and Ansible installers.
1 parent d7d851b commit bd3c912

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

ansible/roles/pgo-operator/files/pgo-configs/backrest-restore-job.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@
8686
}
8787
}]
8888
}],
89+
"affinity": {
8990
{{.NodeSelector}}
91+
},
9092
"restartPolicy": "Never"
9193
}
9294
}

ansible/roles/pgo-operator/files/pgo-configs/collect.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
{
2626
"name": "JOB_NAME",
2727
"value": "{{.JobName}}"
28-
},
29-
{
28+
},{
3029
"name": "POSTGRES_EXPORTER_PORT",
3130
"value": "{{.ExporterPort}}"
3231
}

ansible/roles/pgo-operator/files/pgo-configs/pgbouncer-template.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"crunchy-pgbouncer": "true",
2020
"pg-cluster": "{{.ClusterName}}",
2121
"service-name": "{{.Name}}",
22+
"{{.PodAntiAffinityLabelName}}": "{{.PodAntiAffinityLabelValue}}",
2223
"vendor": "crunchydata"
2324
}
2425
},
@@ -29,6 +30,7 @@
2930
"crunchy-pgbouncer": "true",
3031
"pg-cluster": "{{.ClusterName}}",
3132
"service-name": "{{.Name}}",
33+
"{{.PodAntiAffinityLabelName}}": "{{.PodAntiAffinityLabelValue}}",
3234
"vendor": "crunchydata"
3335
}
3436
},

ansible/roles/pgo-operator/files/pgo-configs/pgo-backrest-repo-template.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"pg-cluster": "{{.ClusterName}}",
2020
"service-name": "{{.Name}}",
2121
"vendor": "crunchydata",
22+
"{{.PodAntiAffinityLabelName}}": "{{.PodAntiAffinityLabelValue}}",
2223
"pgo-backrest-repo": "true"
2324
}
2425
},
@@ -29,6 +30,7 @@
2930
"pg-cluster": "{{.ClusterName}}",
3031
"service-name": "{{.Name}}",
3132
"vendor": "crunchydata",
33+
"{{.PodAntiAffinityLabelName}}": "{{.PodAntiAffinityLabelValue}}",
3234
"pgo-backrest-repo": "true"
3335
}
3436
},

conf/postgres-operator/pgo-target-role.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,6 @@
7474
"verbs": [
7575
"*"
7676
]
77-
},
78-
{
79-
"apiGroups": [
80-
"apps"
81-
],
82-
"resources": [
83-
"deployments"
84-
],
85-
"verbs": [
86-
"patch"
87-
]
8877
}
8978
]
9079
}

0 commit comments

Comments
 (0)