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

Function LocationForTablespace

pkg/specs/volumes.go:54–56  ·  view source on GitHub ↗

LocationForTablespace returns the data location for tablespace on a cluster pod

(tablespaceName string)

Source from the content-addressed store, hash-verified

52
53// LocationForTablespace returns the data location for tablespace on a cluster pod
54func LocationForTablespace(tablespaceName string) string {
55 return path.Join(MountForTablespace(tablespaceName), "data")
56}
57
58// convertPostgresIDToK8sName returns a postgres identifier without the characters
59// that are illegal in K8s names and domains. (Lowercase RFC 1123)

Callers 3

getStorageLocationMethod · 0.92
CreateFunction · 0.92
UpdateFunction · 0.92

Calls 2

MountForTablespaceFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected