From d75aaad0c77436611a36fc29b41c7acb34ed5cce Mon Sep 17 00:00:00 2001 From: Maciej Zimnoch Date: Mon, 20 Jul 2020 15:23:01 +0200 Subject: [PATCH] operator: correct resource validation when cpuset is used One of the chceks wasn't ported during v2 migration. --- pkg/api/v1alpha1/cluster_validation.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/api/v1alpha1/cluster_validation.go b/pkg/api/v1alpha1/cluster_validation.go index 4e7afdeedc0..140ee4de165 100644 --- a/pkg/api/v1alpha1/cluster_validation.go +++ b/pkg/api/v1alpha1/cluster_validation.go @@ -41,7 +41,6 @@ func checkValues(c *Cluster) error { if requests.Memory().MilliValue() != limits.Memory().MilliValue() { return errors.Errorf("when using cpuset, memory requests must be the same as memory limits in rack %s", rack.Name) } - return errors.Errorf("when using cpuset, requests must be the same as limits in rack %s", rack.Name) } else { // Copy the limits rack.Resources.Requests = limits.DeepCopy()