From a9cfeb2bc33b9fc4a354dd1b9874e5b3453d2bb9 Mon Sep 17 00:00:00 2001 From: Pavel Kalugin Date: Wed, 18 Dec 2024 17:51:20 +0300 Subject: [PATCH] Do not require specifying quota when specifying location watermarks --- pkg/ytconfig/node.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/ytconfig/node.go b/pkg/ytconfig/node.go index 1ff9fdd1..8c8b465c 100644 --- a/pkg/ytconfig/node.go +++ b/pkg/ytconfig/node.go @@ -325,7 +325,8 @@ func getDataNodeServerCarcass(spec *ytv1.DataNodesSpec) (DataNodeServer, error) } if quota != nil { storeLocation.Quota = *quota - + } + if location.LowWatermark != nil or storeLocation.Quota != nil { if location.LowWatermark != nil { storeLocation.LowWatermark = location.LowWatermark.Value() } else {