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

Method GetServiceReadWriteName

api/v1/cluster_funcs.go:716–718  ·  view source on GitHub ↗

GetServiceReadWriteName return the default name of the service that is used for read-write transactions

()

Source from the content-addressed store, hash-verified

714// GetServiceReadWriteName return the default name of the service that is used for
715// read-write transactions
716func (cluster *Cluster) GetServiceReadWriteName() string {
717 return fmt.Sprintf("%v%v", cluster.Name, ServiceReadWriteSuffix)
718}
719
720// GetInstancesSelector returns the serialized label selector that matches all
721// the instance pods managed by this cluster. It is published in the status and

Calls

no outgoing calls

Tested by

no test coverage detected