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

Method GetReplicationSecretName

api/v1/cluster_funcs.go:689–694  ·  view source on GitHub ↗

GetReplicationSecretName get the name of the secret for the replication user

()

Source from the content-addressed store, hash-verified

687
688// GetReplicationSecretName get the name of the secret for the replication user
689func (cluster *Cluster) GetReplicationSecretName() string {
690 if cluster.Spec.Certificates != nil && cluster.Spec.Certificates.ReplicationTLSSecret != "" {
691 return cluster.Spec.Certificates.ReplicationTLSSecret
692 }
693 return fmt.Sprintf("%v%v", cluster.Name, ReplicationSecretSuffix)
694}
695
696// GetServiceAnyName return the name of the service that is used as DNS
697// domain for all the nodes, even if they are not ready

Calls

no outgoing calls

Tested by

no test coverage detected