From aa60ff9dd09557b4981ee50e2b5fcecfe01c2ca0 Mon Sep 17 00:00:00 2001 From: Lenin Alevski Date: Tue, 20 Jul 2021 15:14:29 -0700 Subject: [PATCH] Initialize TLS configuration for operatorApi (#879) Signed-off-by: Lenin Alevski Co-authored-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> --- operatorapi/configure_operator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/operatorapi/configure_operator.go b/operatorapi/configure_operator.go index 9facfd3fe..cb787bb6d 100644 --- a/operatorapi/configure_operator.go +++ b/operatorapi/configure_operator.go @@ -104,7 +104,8 @@ func configureAPI(api *operations.OperatorAPI) http.Handler { // The TLS configuration before HTTPS server starts. func configureTLS(tlsConfig *tls.Config) { - // Make all necessary changes to the TLS configuration here. + tlsConfig.RootCAs = GlobalRootCAs + tlsConfig.GetCertificate = GlobalTLSCertsManager.GetCertificate } // As soon as server is initialized but not run yet, this function will be called.