minor change

This commit is contained in:
Felix Kunde 2022-03-18 20:44:29 +01:00
parent 0d55e2e60c
commit cd5b440ec6
1 changed files with 0 additions and 1 deletions

View File

@ -693,7 +693,6 @@ func (c *Cluster) enforceMinResourceLimits(spec *acidv1.PostgresSpec) error {
cpuLimit := spec.Resources.ResourceLimits.CPU
if cpuLimit != "" {
cpuLimit := spec.Resources.ResourceLimits.CPU
isSmaller, err = util.IsSmallerQuantity(cpuLimit, minCPULimit)
if err != nil {
return fmt.Errorf("could not compare defined CPU limit %s with configured minimum value %s: %v", cpuLimit, minCPULimit, err)