GetServerTLSSecretName returns the specified server TLS secret name for PgBouncer if provided or the default name otherwise.
()
| 39 | // GetServerTLSSecretName returns the specified server TLS secret name |
| 40 | // for PgBouncer if provided or the default name otherwise. |
| 41 | func (in *Pooler) GetServerTLSSecretName() string { |
| 42 | if in.Spec.PgBouncer != nil && in.Spec.PgBouncer.ServerTLSSecret != nil { |
| 43 | return in.Spec.PgBouncer.ServerTLSSecret.Name |
| 44 | } |
| 45 | |
| 46 | return "" |
| 47 | } |
| 48 | |
| 49 | // GetServerCASecretNameOrDefault returns the specified server CA secret name |
| 50 | // for PgBouncer if provided or the default name otherwise. |
no outgoing calls
no test coverage detected