GetClientCASecretNameOrDefault returns the specified client CA secret name for PgBouncer if provided or the default name otherwise.
(cluster *Cluster)
| 59 | // GetClientCASecretNameOrDefault returns the specified client CA secret name |
| 60 | // for PgBouncer if provided or the default name otherwise. |
| 61 | func (in *Pooler) GetClientCASecretNameOrDefault(cluster *Cluster) string { |
| 62 | if in.Spec.PgBouncer != nil && in.Spec.PgBouncer.ClientCASecret != nil { |
| 63 | return in.Spec.PgBouncer.ClientCASecret.Name |
| 64 | } |
| 65 | |
| 66 | return cluster.GetClientCASecretName() |
| 67 | } |
| 68 | |
| 69 | // GetClientTLSSecretNameOrDefault returns the specified client TLS secret name |
| 70 | // for PgBouncer if provided or the default name otherwise. |
no test coverage detected