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

Function VolumeMountNameForTablespace

pkg/specs/volumes.go:89–91  ·  view source on GitHub ↗

VolumeMountNameForTablespace returns the normalized tablespace volume name for a given tablespace, on a cluster pod

(tablespaceName string)

Source from the content-addressed store, hash-verified

87// VolumeMountNameForTablespace returns the normalized tablespace volume name for a given
88// tablespace, on a cluster pod
89func VolumeMountNameForTablespace(tablespaceName string) string {
90 return "tbs-" + convertPostgresIDToK8sName(tablespaceName)
91}
92
93// SnapshotBackupNameForTablespace returns the volume snapshot backup name for the tablespace
94func SnapshotBackupNameForTablespace(backupName, tablespaceName string) string {

Calls 1