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

Function PvcNameForTablespace

pkg/specs/volumes.go:83–85  ·  view source on GitHub ↗

PvcNameForTablespace returns the normalized tablespace PVC name for a given tablespace, on a cluster pod

(podName, tablespaceName string)

Source from the content-addressed store, hash-verified

81// PvcNameForTablespace returns the normalized tablespace PVC name for a given
82// tablespace, on a cluster pod
83func PvcNameForTablespace(podName, tablespaceName string) string {
84 return podName + apiv1.TablespaceVolumeInfix + convertPostgresIDToK8sName(tablespaceName)
85}
86
87// VolumeMountNameForTablespace returns the normalized tablespace volume name for a given
88// tablespace, on a cluster pod

Callers 3

GetNameMethod · 0.92
buildPVCCheckerFunction · 0.92
createPostgresVolumesFunction · 0.85

Calls 1

Tested by

no test coverage detected