|
|
@@ -2295,7 +2295,7 @@ func measureTimeAsync(start time.Time, threshold time.Duration, name string, ch
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-func (cm *CostModel) QueryAllocation(window kubecost.Window, resolution, step time.Duration, aggregate []string, includeIdle, idleByNode, includeProportionalAssetResourceCosts bool) (*kubecost.AllocationSetRange, error) {
|
|
|
+func (cm *CostModel) QueryAllocation(window kubecost.Window, resolution, step time.Duration, aggregate []string, includeIdle, idleByNode, includeProportionalAssetResourceCosts, includeNamespaceLabels bool) (*kubecost.AllocationSetRange, error) {
|
|
|
// Validate window is legal
|
|
|
if window.IsOpen() || window.IsNegative() {
|
|
|
return nil, fmt.Errorf("illegal window: %s", window)
|
|
|
@@ -2347,6 +2347,7 @@ func (cm *CostModel) QueryAllocation(window kubecost.Window, resolution, step ti
|
|
|
opts := &kubecost.AllocationAggregationOptions{
|
|
|
IncludeProportionalAssetResourceCosts: includeProportionalAssetResourceCosts,
|
|
|
IdleByNode: idleByNode,
|
|
|
+ IncludeNamespaceLabels: includeNamespaceLabels,
|
|
|
}
|
|
|
|
|
|
// Aggregate
|