From bea2ba11208f1ee53d379dfd9fa65190339f82a2 Mon Sep 17 00:00:00 2001 From: Antti Kervinen Date: Mon, 21 Oct 2024 12:49:51 +0300 Subject: [PATCH] balloons: allow balloon type option shareIdleCPUsInSame: l2cache Signed-off-by: Antti Kervinen --- config/crd/bases/config.nri_balloonspolicies.yaml | 1 + deployment/helm/balloons/crds/config.nri_balloonspolicies.yaml | 1 + pkg/apis/config/v1alpha1/resmgr/policy/balloons/config.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/crd/bases/config.nri_balloonspolicies.yaml b/config/crd/bases/config.nri_balloonspolicies.yaml index 1ec9a1cdd..ff48dca4b 100644 --- a/config/crd/bases/config.nri_balloonspolicies.yaml +++ b/config/crd/bases/config.nri_balloonspolicies.yaml @@ -247,6 +247,7 @@ spec: - package - die - numa + - l2cache - core - thread type: string diff --git a/deployment/helm/balloons/crds/config.nri_balloonspolicies.yaml b/deployment/helm/balloons/crds/config.nri_balloonspolicies.yaml index 1ec9a1cdd..ff48dca4b 100644 --- a/deployment/helm/balloons/crds/config.nri_balloonspolicies.yaml +++ b/deployment/helm/balloons/crds/config.nri_balloonspolicies.yaml @@ -247,6 +247,7 @@ spec: - package - die - numa + - l2cache - core - thread type: string diff --git a/pkg/apis/config/v1alpha1/resmgr/policy/balloons/config.go b/pkg/apis/config/v1alpha1/resmgr/policy/balloons/config.go index 1449a7017..07c9add2a 100644 --- a/pkg/apis/config/v1alpha1/resmgr/policy/balloons/config.go +++ b/pkg/apis/config/v1alpha1/resmgr/policy/balloons/config.go @@ -211,7 +211,7 @@ type BalloonDef struct { // as any CPU in the balloon, then allow // workloads to run on those (shared) CPUs in addition to the // (dedicated) CPUs of the balloon. - // +kubebuilder:validation:Enum="";system;package;die;numa;core;thread + // +kubebuilder:validation:Enum="";system;package;die;numa;l2cache;core;thread // +kubebuilder:validation:Format:string ShareIdleCpusInSame CPUTopologyLevel `json:"shareIdleCPUsInSame,omitempty"` // PreferCloseToDevices: prefer creating new balloons of this