We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f8165 commit bc10341Copy full SHA for bc10341
cmd/external-secrets-operator/main.go
@@ -154,7 +154,11 @@ func main() {
154
metricsServerOptions.KeyName = metricsKeyFileName
155
}
156
metricsTLSOpts = append(metricsTLSOpts, func(c *tls.Config) {
157
- certPool := x509.NewCertPool()
+ certPool, err := x509.SystemCertPool()
158
+ if err != nil {
159
+ setupLog.Info("unable to load system certificate pool", "error", err)
160
+ certPool = x509.NewCertPool()
161
+ }
162
openshiftCACert, err := os.ReadFile(openshiftCACertificateFile)
163
if err != nil {
164
setupLog.Error(err, "failed to read OpenShift CA certificate")
0 commit comments