GetLDAPSecretName gets the secret name containing the LDAP password
()
| 517 | |
| 518 | // GetLDAPSecretName gets the secret name containing the LDAP password |
| 519 | func (cluster *Cluster) GetLDAPSecretName() string { |
| 520 | if cluster.Spec.PostgresConfiguration.LDAP != nil && |
| 521 | cluster.Spec.PostgresConfiguration.LDAP.BindSearchAuth != nil && |
| 522 | cluster.Spec.PostgresConfiguration.LDAP.BindSearchAuth.BindPassword != nil { |
| 523 | return cluster.Spec.PostgresConfiguration.LDAP.BindSearchAuth.BindPassword.Name |
| 524 | } |
| 525 | return "" |
| 526 | } |
| 527 | |
| 528 | // ContainsManagedRolesConfiguration returns true iff there are managed roles configured |
| 529 | func (cluster *Cluster) ContainsManagedRolesConfiguration() bool { |
no outgoing calls
no test coverage detected