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

Method GetServiceReadName

api/v1/cluster_funcs.go:704–706  ·  view source on GitHub ↗

GetServiceReadName return the default name of the service that is used for read transactions (including the primary)

()

Source from the content-addressed store, hash-verified

702// GetServiceReadName return the default name of the service that is used for
703// read transactions (including the primary)
704func (cluster *Cluster) GetServiceReadName() string {
705 return fmt.Sprintf("%v%v", cluster.Name, ServiceReadSuffix)
706}
707
708// GetServiceReadOnlyName return the default name of the service that is used for
709// read-only transactions (excluding the primary)

Calls

no outgoing calls

Tested by

no test coverage detected