INNER CODE UNIT · Go
tlsConfig
backube/volsync · cmd/main.go:255
tlsConfig := platform.GetTLSConfigFromProfile(*tlsSecurityProfileSpec, setupLog)
tlsOpts = append(tlsOpts, tlsConfig)
}
// Create watchers for metrics and webhooks certificates
var metricsCertWatcher *certwatcher.CertWatcher
//var webhookCertWatcher *certwatcher.CertWatcher
// // Initial webhook TLS options
// webhookTLSOpts := tlsOpts
// if len(webhookCertPath) > 0 {
// setupLog.Info("Initializing webhook certificate watcher using provided certificates",
// "webhook-cert-path", webhookCertPath, "webhook-cert-name", webhookCertName, "webhook-cert-key", webhookCertKey)
// var err error
// webhookCertWatcher, err = certwatcher.New(
// filepath.Join(webhookCertPath, webhookCertName),