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

Method GetServerTLSSecretName

api/v1/pooler_funcs.go:41–47  ·  view source on GitHub ↗

GetServerTLSSecretName returns the specified server TLS secret name for PgBouncer if provided or the default name otherwise.

()

Source from the content-addressed store, hash-verified

39// GetServerTLSSecretName returns the specified server TLS secret name
40// for PgBouncer if provided or the default name otherwise.
41func (in *Pooler) GetServerTLSSecretName() string {
42 if in.Spec.PgBouncer != nil && in.Spec.PgBouncer.ServerTLSSecret != nil {
43 return in.Spec.PgBouncer.ServerTLSSecret.Name
44 }
45
46 return ""
47}
48
49// GetServerCASecretNameOrDefault returns the specified server CA secret name
50// for PgBouncer if provided or the default name otherwise.

Callers 11

getInvolvedSecretNamesFunction · 0.45
DeploymentFunction · 0.45
getManagedResourcesMethod · 0.45
waitForPrerequisitesMethod · 0.45
getPoolersUsingSecretFunction · 0.45
updateResourceStatusMethod · 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