From 24a2a62f120d36c6e624282fbf3de293de688a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mu=C3=9Fler?= Date: Tue, 27 Oct 2020 17:09:55 +0100 Subject: [PATCH] Adress typos. --- pkg/cluster/cluster.go | 2 +- pkg/cluster/util.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index 2f56db3d7..ca9c95a27 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -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 } diff --git a/pkg/cluster/util.go b/pkg/cluster/util.go index 78982260a..b8c5c995b 100644 --- a/pkg/cluster/util.go +++ b/pkg/cluster/util.go @@ -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)