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

Method GetServerCASecretNameOrDefault

api/v1/pooler_funcs.go:51–57  ·  view source on GitHub ↗

GetServerCASecretNameOrDefault returns the specified server CA secret name for PgBouncer if provided or the default name otherwise.

(cluster *Cluster)

Source from the content-addressed store, hash-verified

49// GetServerCASecretNameOrDefault returns the specified server CA secret name
50// for PgBouncer if provided or the default name otherwise.
51func (in *Pooler) GetServerCASecretNameOrDefault(cluster *Cluster) string {
52 if in.Spec.PgBouncer != nil && in.Spec.PgBouncer.ServerCASecret != nil {
53 return in.Spec.PgBouncer.ServerCASecret.Name
54 }
55
56 return cluster.GetServerCASecretName()
57}
58
59// GetClientCASecretNameOrDefault returns the specified client CA secret name
60// for PgBouncer if provided or the default name otherwise.

Callers 3

getManagedResourcesMethod · 0.80
waitForPrerequisitesMethod · 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 1

GetServerCASecretNameMethod · 0.80

Tested by

no test coverage detected