raise log level for malformed secrets
This commit is contained in:
parent
85d1a72cd6
commit
32f42cc23c
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue