From eecf7d018ec81557d2bdbf738d1d4fdc89d10567 Mon Sep 17 00:00:00 2001 From: "jia.deng" Date: Thu, 27 Nov 2025 16:57:08 +0800 Subject: [PATCH 1/3] spd support custom key --- pkg/consts/spd.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/consts/spd.go b/pkg/consts/spd.go index f016fea4..41f87c88 100644 --- a/pkg/consts/spd.go +++ b/pkg/consts/spd.go @@ -48,3 +48,9 @@ const ( // SPDAggMetricNameMemoryBandwidth is per core memory bandwidth SPDAggMetricNameMemoryBandwidth = "memory_bandwidth" ) + +// const for stateful socket spd baseline based on shard +const ( + LabelStatefulSetExtensionName = "statefulset_extension_name" + ServiceProfileDescriptorAnnotationKeyCustomCompareKey = "spd.katalyst.kubewharf.io/customCompareKey" +) From 22ef188e06dcc8f5bb39ca61997eabca9e542d3b Mon Sep 17 00:00:00 2001 From: "jia.deng" Date: Thu, 27 Nov 2025 18:11:32 +0800 Subject: [PATCH 2/3] custom label move to adapter --- pkg/consts/spd.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/consts/spd.go b/pkg/consts/spd.go index 41f87c88..3e67d86e 100644 --- a/pkg/consts/spd.go +++ b/pkg/consts/spd.go @@ -51,6 +51,5 @@ const ( // const for stateful socket spd baseline based on shard const ( - LabelStatefulSetExtensionName = "statefulset_extension_name" ServiceProfileDescriptorAnnotationKeyCustomCompareKey = "spd.katalyst.kubewharf.io/customCompareKey" ) From 9ce02e83bf898da7492df1ab91b36567dc17fd66 Mon Sep 17 00:00:00 2001 From: "jia.deng" Date: Thu, 27 Nov 2025 20:27:27 +0800 Subject: [PATCH 3/3] comment --- pkg/consts/spd.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg/consts/spd.go b/pkg/consts/spd.go index 3e67d86e..23f57758 100644 --- a/pkg/consts/spd.go +++ b/pkg/consts/spd.go @@ -39,6 +39,9 @@ const ( SPDAnnotationBaselineSentinelKey = "spd.katalyst.kubewharf.io/baselineSentinel" SPDAnnotationExtendedBaselineSentinelKey = "spd.katalyst.kubewharf.io/extendedBaselineSentinel" + // SPDAnnotationKeyCustomCompareKey holds annotation for spd baseline compare key + SPDAnnotationKeyCustomCompareKey = "spd.katalyst.kubewharf.io/customCompareKey" + SPDBaselinePercentMax = 100 SPDBaselinePercentMin = 0 ) @@ -48,8 +51,3 @@ const ( // SPDAggMetricNameMemoryBandwidth is per core memory bandwidth SPDAggMetricNameMemoryBandwidth = "memory_bandwidth" ) - -// const for stateful socket spd baseline based on shard -const ( - ServiceProfileDescriptorAnnotationKeyCustomCompareKey = "spd.katalyst.kubewharf.io/customCompareKey" -)