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

Method GetAuthQuerySecretName

api/v1/pooler_funcs.go:31–37  ·  view source on GitHub ↗

GetAuthQuerySecretName returns the specified AuthQuerySecret name for PgBouncer if provided or the default name otherwise.

()

Source from the content-addressed store, hash-verified

29// GetAuthQuerySecretName returns the specified AuthQuerySecret name for PgBouncer
30// if provided or the default name otherwise.
31func (in *Pooler) GetAuthQuerySecretName() string {
32 if in.Spec.PgBouncer != nil && in.Spec.PgBouncer.AuthQuerySecret != nil {
33 return in.Spec.PgBouncer.AuthQuerySecret.Name
34 }
35
36 return in.Spec.Cluster.Name + DefaultPgBouncerPoolerSecretSuffix
37}
38
39// GetServerTLSSecretName returns the specified server TLS secret name
40// for PgBouncer if provided or the default name otherwise.

Callers 9

RoleFunction · 0.80
getManagedResourcesMethod · 0.80
waitForPrerequisitesMethod · 0.80
getPoolersUsingSecretFunction · 0.80
getSecretsFunction · 0.80

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