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

Method GetServiceReadOnlyName

api/v1/cluster_funcs.go:710–712  ·  view source on GitHub ↗

GetServiceReadOnlyName return the default name of the service that is used for read-only transactions (excluding the primary)

()

Source from the content-addressed store, hash-verified

708// GetServiceReadOnlyName return the default name of the service that is used for
709// read-only transactions (excluding the primary)
710func (cluster *Cluster) GetServiceReadOnlyName() string {
711 return fmt.Sprintf("%v%v", cluster.Name, ServiceReadOnlySuffix)
712}
713
714// GetServiceReadWriteName return the default name of the service that is used for
715// read-write transactions

Calls

no outgoing calls

Tested by

no test coverage detected