GetReplicationSecretName get the name of the secret for the replication user
()
| 687 | |
| 688 | // GetReplicationSecretName get the name of the secret for the replication user |
| 689 | func (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 |
no outgoing calls
no test coverage detected