Skip to content

Commit 9edab1e

Browse files
Merge pull request #80 from csfldf/dev/netns_attribute
feat(qrm): add ResourceAnnotationKeyNICNetNSName
2 parents 2f4bf2b + c680e32 commit 9edab1e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

pkg/consts/resource.go

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ const (
2828
ResourceMemoryBandwidth v1.ResourceName = "resource.katalyst.kubewharf.io/memory_bandwidth"
2929
)
3030

31-
// ResourceAnnotationKeyResourceIdentifier nominated the key to override the default name
32-
// field in pod-resource-server (for qrm-related protocols); if the name field can't be
33-
// guaranteed to be unique in some cases, we can relay on this annotation to get unique keys
34-
// (to replace with the default name)
35-
const ResourceAnnotationKeyResourceIdentifier = "katalyst.kubewharf.io/resource_identifier"
31+
// const variables for resource attributes of resources
32+
const (
33+
// ResourceAnnotationKeyResourceIdentifier nominated the key to override the default name
34+
// field in pod-resource-server (for qrm-related protocols); if the name field can't be
35+
// guaranteed to be unique in some cases, we can relay on this annotation to get unique keys
36+
// (to replace with the default name)
37+
ResourceAnnotationKeyResourceIdentifier = "katalyst.kubewharf.io/resource_identifier"
38+
39+
// ResourceAnnotationKeyResourceIdentifier nominated the key indicating net namespace name of the NIC
40+
ResourceAnnotationKeyNICNetNSName = "katalyst.kubewharf.io/netns_name"
41+
)

0 commit comments

Comments
 (0)