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

Method GetPostgresUID

api/v1/cluster_funcs.go:1058–1063  ·  view source on GitHub ↗

GetPostgresUID returns the UID that is being used for the "postgres" user

()

Source from the content-addressed store, hash-verified

1056// GetPostgresUID returns the UID that is being used for the "postgres"
1057// user
1058func (cluster Cluster) GetPostgresUID() int64 {
1059 if cluster.Spec.PostgresUID == 0 {
1060 return DefaultPostgresUID
1061 }
1062 return cluster.Spec.PostgresUID
1063}
1064
1065// GetPostgresGID returns the GID that is being used for the "postgres"
1066// user

Callers 3

GetPodSecurityContextFunction · 0.80
getDatabasUserUIDFunction · 0.80

Calls

no outgoing calls

Tested by 1

getDatabasUserUIDFunction · 0.64