add annotation to ignore resources thresholds (#3030)

* add annotation to ignore resources thresholds
* add test case when annotation key is set but value is not true
This commit is contained in:
Felix Kunde
2026-01-13 09:33:24 +01:00
committed by GitHub
parent a585b17796
commit 97115d6e3d
12 changed files with 105 additions and 9 deletions
+1
View File
@@ -44,6 +44,7 @@ func (c *Controller) importConfigurationFromCRD(fromCRD *acidv1.OperatorConfigur
result.MinInstances = fromCRD.MinInstances
result.MaxInstances = fromCRD.MaxInstances
result.IgnoreInstanceLimitsAnnotationKey = fromCRD.IgnoreInstanceLimitsAnnotationKey
result.IgnoreResourcesLimitsAnnotationKey = fromCRD.IgnoreResourcesLimitsAnnotationKey
result.ResyncPeriod = util.CoalesceDuration(time.Duration(fromCRD.ResyncPeriod), "30m")
result.RepairPeriod = util.CoalesceDuration(time.Duration(fromCRD.RepairPeriod), "5m")
result.SetMemoryRequestToLimit = fromCRD.SetMemoryRequestToLimit