postgres-operator
postgres-operator copied to clipboard
Add {{.ClusterName}} support into collect.json, pgbackrest-env-vars
**What is the motivation or use case for the change? **
ClusterName might be used inside configuration of primary deployment - e.g. backup path
Using {{.Name}} - breaks things while restored pod or replica would have another name.
Workaround - fetching ClusterName from the label. But all other modules like cluster-service-1.json, pgo-backrest-repo-template.json , etc - all of them do have {{.ClusterName}}
Describe the solution you'd like
It would be great to have it wherever any configuration is possible
wrong description. my bad - better to recreate