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

Method GetServiceAccountName

api/v1/pooler_funcs.go:119–124  ·  view source on GitHub ↗

GetServiceAccountName returns the name of the ServiceAccount for this pooler.

()

Source from the content-addressed store, hash-verified

117
118// GetServiceAccountName returns the name of the ServiceAccount for this pooler.
119func (in *Pooler) GetServiceAccountName() string {
120 if in.Spec.ServiceAccountName != "" {
121 return in.Spec.ServiceAccountName
122 }
123 return in.Name
124}
125
126// IsMetricsTLSEnabled checks if the metrics endpoint should use TLS
127func (in *Pooler) IsMetricsTLSEnabled() bool {

Callers 11

CreatePrimaryJobFunction · 0.45
createClusterPodSpecFunction · 0.45
rbac_test.goFile · 0.45
DeploymentFunction · 0.45
updateRBACMethod · 0.45
createRoleBindingMethod · 0.45

Implementers 5

fakePoolerpkg/management/postgres/suite_test.go
fakePoolerpkg/management/postgres/logicalimport/
ConnectionPoolpkg/management/postgres/pool/pool.go
fakePoolerpkg/management/pgbouncer/metricsserver
fakePoolerinternal/pgbouncer/management/controll

Calls

no outgoing calls

Tested by

no test coverage detected