mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-02 23:41:58 +02:00
minor change
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user