ClusterConfigMap populates the shared ConfigMap with fields needed to run Patroni.
(ctx context.Context, inCluster *v1beta1.PostgresCluster, inHBAs *postgres.OrderedHBAs, inParameters *postgres.ParameterSet, outClusterConfigMap *corev1.ConfigMap, patroniLogStorageLimit int64, )
| 28 | |
| 29 | // ClusterConfigMap populates the shared ConfigMap with fields needed to run Patroni. |
| 30 | func ClusterConfigMap(ctx context.Context, |
| 31 | inCluster *v1beta1.PostgresCluster, |
| 32 | inHBAs *postgres.OrderedHBAs, |
| 33 | inParameters *postgres.ParameterSet, |
| 34 | outClusterConfigMap *corev1.ConfigMap, |
| 35 | patroniLogStorageLimit int64, |
| 36 | ) error { |
| 37 | var err error |
| 38 | |
| 39 | initialize.Map(&outClusterConfigMap.Data) |
| 40 | |
| 41 | outClusterConfigMap.Data[configMapFileKey], err = clusterYAML(inCluster, inHBAs, |
| 42 | inParameters, patroniLogStorageLimit) |
| 43 | |
| 44 | return err |
| 45 | } |
| 46 | |
| 47 | // InstanceConfigMap populates the shared ConfigMap with fields needed to run Patroni. |
| 48 | func InstanceConfigMap(ctx context.Context, |