File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ func (c *Cluster) enforceMinResourceLimits(resources *v1.ResourceRequirements) e
188188 if isSmaller {
189189 msg = fmt .Sprintf ("defined CPU limit %s for %q container is below required minimum %s and will be increased" ,
190190 cpuLimit .String (), constants .PostgresContainerName , minCPULimit )
191- c .logger .Warningf (msg )
191+ c .logger .Warningf ("%s" , msg )
192192 c .eventRecorder .Eventf (c .GetReference (), v1 .EventTypeWarning , "ResourceLimits" , msg )
193193 resources .Limits [v1 .ResourceCPU ], _ = resource .ParseQuantity (minCPULimit )
194194 }
@@ -205,7 +205,7 @@ func (c *Cluster) enforceMinResourceLimits(resources *v1.ResourceRequirements) e
205205 if isSmaller {
206206 msg = fmt .Sprintf ("defined memory limit %s for %q container is below required minimum %s and will be increased" ,
207207 memoryLimit .String (), constants .PostgresContainerName , minMemoryLimit )
208- c .logger .Warningf (msg )
208+ c .logger .Warningf ("%s" , msg )
209209 c .eventRecorder .Eventf (c .GetReference (), v1 .EventTypeWarning , "ResourceLimits" , msg )
210210 resources .Limits [v1 .ResourceMemory ], _ = resource .ParseQuantity (minMemoryLimit )
211211 }
You can’t perform that action at this time.
0 commit comments