MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / GetLDAPSecretName

Method GetLDAPSecretName

api/v1/cluster_funcs.go:519–526  ·  view source on GitHub ↗

GetLDAPSecretName gets the secret name containing the LDAP password

()

Source from the content-addressed store, hash-verified

517
518// GetLDAPSecretName gets the secret name containing the LDAP password
519func (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
529func (cluster *Cluster) ContainsManagedRolesConfiguration() bool {

Callers 2

getInvolvedSecretNamesFunction · 0.80
refreshPGHBAMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected