IsMetricsTLSEnabled checks if the metrics endpoint should use TLS
()
| 125 | |
| 126 | // IsMetricsTLSEnabled checks if the metrics endpoint should use TLS |
| 127 | func (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 |
| 136 | func (in *Pooler) SetAdmissionError(msg string) { |
no outgoing calls
no test coverage detected