GetAuthQuerySecretName returns the specified AuthQuerySecret name for PgBouncer if provided or the default name otherwise.
()
| 29 | // GetAuthQuerySecretName returns the specified AuthQuerySecret name for PgBouncer |
| 30 | // if provided or the default name otherwise. |
| 31 | func (in *Pooler) GetAuthQuerySecretName() string { |
| 32 | if in.Spec.PgBouncer != nil && in.Spec.PgBouncer.AuthQuerySecret != nil { |
| 33 | return in.Spec.PgBouncer.AuthQuerySecret.Name |
| 34 | } |
| 35 | |
| 36 | return in.Spec.Cluster.Name + DefaultPgBouncerPoolerSecretSuffix |
| 37 | } |
| 38 | |
| 39 | // GetServerTLSSecretName returns the specified server TLS secret name |
| 40 | // for PgBouncer if provided or the default name otherwise. |
no outgoing calls
no test coverage detected