GetServiceAccountName returns the name of the ServiceAccount for this pooler.
()
| 117 | |
| 118 | // GetServiceAccountName returns the name of the ServiceAccount for this pooler. |
| 119 | func (in *Pooler) GetServiceAccountName() string { |
| 120 | if in.Spec.ServiceAccountName != "" { |
| 121 | return in.Spec.ServiceAccountName |
| 122 | } |
| 123 | return in.Name |
| 124 | } |
| 125 | |
| 126 | // IsMetricsTLSEnabled checks if the metrics endpoint should use TLS |
| 127 | func (in *Pooler) IsMetricsTLSEnabled() bool { |
no outgoing calls
no test coverage detected