raise log level for malformed secrets (#1235)

Co-authored-by: Sergey Dudoladov <sergey.dudoladov@zalando.de>
This commit is contained in:
Sergey Dudoladov 2020-11-27 18:47:50 +01:00 committed by GitHub
parent 2b5382edf3
commit 6f5751fe55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ func (c *Cluster) syncSecrets() error {
return fmt.Errorf("could not get current secret: %v", err) return fmt.Errorf("could not get current secret: %v", err)
} }
if secretUsername != string(secret.Data["username"]) { if secretUsername != string(secret.Data["username"]) {
c.logger.Warningf("secret %s does not contain the role %q", secretSpec.Name, secretUsername) c.logger.Errorf("secret %s does not contain the role %q", secretSpec.Name, secretUsername)
continue continue
} }
c.Secrets[secret.UID] = secret c.Secrets[secret.UID] = secret