MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / ClusterVolumeSnapshot

Function ClusterVolumeSnapshot

internal/naming/names.go:261–266  ·  view source on GitHub ↗

ClusterVolumeSnapshot returns the ObjectMeta, including a random name, for a new pgdata VolumeSnapshot.

(cluster *v1beta1.PostgresCluster)

Source from the content-addressed store, hash-verified

259// ClusterVolumeSnapshot returns the ObjectMeta, including a random name, for a
260// new pgdata VolumeSnapshot.
261func ClusterVolumeSnapshot(cluster *v1beta1.PostgresCluster) metav1.ObjectMeta {
262 return metav1.ObjectMeta{
263 Namespace: cluster.Namespace,
264 Name: cluster.Name + "-pgdata-snapshot-" + rand.String(4),
265 }
266}
267
268// GenerateInstance returns a random name for a member of cluster and set.
269func GenerateInstance(

Callers 2

Calls 1

StringMethod · 0.45

Tested by 1