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

Method GetClientCASecretNameOrDefault

api/v1/pooler_funcs.go:61–67  ·  view source on GitHub ↗

GetClientCASecretNameOrDefault returns the specified client CA secret name for PgBouncer if provided or the default name otherwise.

(cluster *Cluster)

Source from the content-addressed store, hash-verified

59// GetClientCASecretNameOrDefault returns the specified client CA secret name
60// for PgBouncer if provided or the default name otherwise.
61func (in *Pooler) GetClientCASecretNameOrDefault(cluster *Cluster) string {
62 if in.Spec.PgBouncer != nil && in.Spec.PgBouncer.ClientCASecret != nil {
63 return in.Spec.PgBouncer.ClientCASecret.Name
64 }
65
66 return cluster.GetClientCASecretName()
67}
68
69// GetClientTLSSecretNameOrDefault returns the specified client TLS secret name
70// for PgBouncer if provided or the default name otherwise.

Callers 4

BuildPodMonitorMethod · 0.80
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

GetClientCASecretNameMethod · 0.80

Tested by

no test coverage detected