GetServerCASecretNameOrDefault returns the specified server CA secret name for PgBouncer if provided or the default name otherwise.
(cluster *Cluster)
| 49 | // GetServerCASecretNameOrDefault returns the specified server CA secret name |
| 50 | // for PgBouncer if provided or the default name otherwise. |
| 51 | func (in *Pooler) GetServerCASecretNameOrDefault(cluster *Cluster) string { |
| 52 | if in.Spec.PgBouncer != nil && in.Spec.PgBouncer.ServerCASecret != nil { |
| 53 | return in.Spec.PgBouncer.ServerCASecret.Name |
| 54 | } |
| 55 | |
| 56 | return cluster.GetServerCASecretName() |
| 57 | } |
| 58 | |
| 59 | // GetClientCASecretNameOrDefault returns the specified client CA secret name |
| 60 | // for PgBouncer if provided or the default name otherwise. |
no test coverage detected