Adress typos.

This commit is contained in:
Jan Mußler 2020-10-27 17:09:55 +01:00
parent 60cbd4ebbe
commit 24a2a62f12
2 changed files with 2 additions and 2 deletions

View File

@ -595,7 +595,7 @@ func (c *Cluster) enforceMinResourceLimits(spec *acidv1.PostgresSpec) error {
return fmt.Errorf("could not compare defined memory limit %s with configured minimum value %s: %v", memoryLimit, minMemoryLimit, err)
}
if isSmaller {
c.logger.Warningf("defined memory limit %s is below required minimum %s and will be increase", memoryLimit, minMemoryLimit)
c.logger.Warningf("defined memory limit %s is below required minimum %s and will be increased", memoryLimit, minMemoryLimit)
c.eventRecorder.Eventf(c.GetReference(), v1.EventTypeWarning, "ResourceLimits", "defined memory limit %s is below required minimum %s and will be set to it", memoryLimit, minMemoryLimit)
spec.Resources.ResourceLimits.Memory = minMemoryLimit
}

View File

@ -176,7 +176,7 @@ func logNiceDiff(log *logrus.Entry, old, new interface{}) {
n, errn := json.MarshalIndent(new, "", " ")
if erro != nil || errn != nil {
panic("could not marschal API objects, should not happen")
panic("could not marshal API objects, should not happen")
}
nice := nicediff.Diff(string(o), string(n), true)