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

Method IsMetricsTLSEnabled

api/v1/pooler_funcs.go:127–133  ·  view source on GitHub ↗

IsMetricsTLSEnabled checks if the metrics endpoint should use TLS

()

Source from the content-addressed store, hash-verified

125
126// IsMetricsTLSEnabled checks if the metrics endpoint should use TLS
127func (in *Pooler) IsMetricsTLSEnabled() bool {
128 if in.Spec.Monitoring != nil && in.Spec.Monitoring.TLSConfig != nil {
129 return in.Spec.Monitoring.TLSConfig.Enabled
130 }
131
132 return false
133}
134
135// SetAdmissionError sets the admission error status on the Pooler resource
136func (in *Pooler) SetAdmissionError(msg string) {

Callers 10

BuildPodMonitorMethod · 0.45
createPostgresContainersFunction · 0.45
BuildPodMonitorMethod · 0.45
DeploymentFunction · 0.45
validateMonitoringMethod · 0.45
AssertMetricsDataFunction · 0.45
metrics_test.goFile · 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