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

Method GetPostgresGID

api/v1/cluster_funcs.go:1067–1072  ·  view source on GitHub ↗

GetPostgresGID returns the GID that is being used for the "postgres" user

()

Source from the content-addressed store, hash-verified

1065// GetPostgresGID returns the GID that is being used for the "postgres"
1066// user
1067func (cluster Cluster) GetPostgresGID() int64 {
1068 if cluster.Spec.PostgresGID == 0 {
1069 return DefaultPostgresGID
1070 }
1071 return cluster.Spec.PostgresGID
1072}
1073
1074// ExternalCluster gets the external server with a known name, returning
1075// true if the server was found and false otherwise

Callers 2

GetPodSecurityContextFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected