Adjust log levels in impersonatorconfig controller.

Signed-off-by: Margo Crawford <margaretc@vmware.com>
This commit is contained in:
Matt Moyer 2021-05-26 16:47:02 -05:00 committed by Margo Crawford
parent d780bf64bc
commit 0a47aa4843
No known key found for this signature in database
GPG Key ID: EAE88AD172C5AE2D
1 changed files with 4 additions and 4 deletions

View File

@ -127,8 +127,8 @@ func NewImpersonatorConfigController(
impersonationSigningCertProvider: impersonationSigningCertProvider, impersonationSigningCertProvider: impersonationSigningCertProvider,
impersonatorFunc: impersonatorFunc, impersonatorFunc: impersonatorFunc,
tlsServingCertDynamicCertProvider: dynamiccert.NewServingCert("impersonation-proxy-serving-cert"), tlsServingCertDynamicCertProvider: dynamiccert.NewServingCert("impersonation-proxy-serving-cert"),
infoLog: log, infoLog: log.V(2),
debugLog: log.V(10), debugLog: log.V(4),
}, },
}, },
withInformer(credentialIssuerInformer, withInformer(credentialIssuerInformer,
@ -299,7 +299,7 @@ func (c *impersonatorConfigController) loadImpersonationProxyConfiguration(credI
if err := validateCredentialIssuerSpec(spec); err != nil { if err := validateCredentialIssuerSpec(spec); err != nil {
return nil, fmt.Errorf("could not load CredentialIssuer spec.impersonationProxy: %w", err) return nil, fmt.Errorf("could not load CredentialIssuer spec.impersonationProxy: %w", err)
} }
c.infoLog.Info("read impersonation proxy config", "credentialIssuer", c.credentialIssuerResourceName) c.debugLog.Info("read impersonation proxy config", "credentialIssuer", c.credentialIssuerResourceName)
return spec, nil return spec, nil
} }
@ -926,7 +926,7 @@ func (c *impersonatorConfigController) loadSignerCA(status v1alpha1.StrategyStat
} }
func (c *impersonatorConfigController) clearSignerCA() { func (c *impersonatorConfigController) clearSignerCA() {
c.infoLog.Info("clearing credential signing certificate for impersonation proxy") c.debugLog.Info("clearing credential signing certificate for impersonation proxy")
c.impersonationSigningCertProvider.UnsetCertKeyContent() c.impersonationSigningCertProvider.UnsetCertKeyContent()
} }