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