From 23a1761cefcd050286f302bac5196d13c2e400e5 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/ytconfig/node.go b/pkg/ytconfig/node.go index 1ff9fdd1..13998a66 100644 --- a/pkg/ytconfig/node.go +++ b/pkg/ytconfig/node.go @@ -323,9 +323,10 @@ func getDataNodeServerCarcass(spec *ytv1.DataNodesSpec) (DataNodeServer, error) MediumName: location.Medium, Path: location.Path, } - if quota != nil { + if quote != nil { storeLocation.Quota = *quota - + } + if location.LowWatermark != nil or storeLocation.Quota != nil { if location.LowWatermark != nil { storeLocation.LowWatermark = location.LowWatermark.Value() } else {