Skip to content

Commit

Permalink
Merge pull request #19 from luomingmeng/dev/add_resource_identifier_c…
Browse files Browse the repository at this point in the history
…onst

add resource_identifier resource annotation key
  • Loading branch information
waynepeking348 authored Jul 4, 2023
2 parents dcb57b0 + 590ac94 commit 25ce232
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ replace (
k8s.io/kube-proxy => k8s.io/kube-proxy v0.24.6
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.24.6
k8s.io/kubectl => k8s.io/kubectl v0.24.6
k8s.io/kubelet => github.com/kubewharf/kubelet v1.24.6-kubewharf.2
k8s.io/kubelet => github.com/kubewharf/kubelet v1.24.6-kubewharf.5
k8s.io/kubernetes => k8s.io/kubernetes v1.24.6
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.24.6
k8s.io/metrics => k8s.io/metrics v0.24.6
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/kubewharf/kubelet v1.24.6-kubewharf.2 h1:2KLdb/ErOpqAj068trr+xA3jyj8+d2aN1Pm5Bu2ZQjM=
github.com/kubewharf/kubelet v1.24.6-kubewharf.2/go.mod h1:MxbSZUx3wXztFneeelwWWlX7NAAStJ6expqq7gY2J3c=
github.com/kubewharf/kubelet v1.24.6-kubewharf.5 h1:i3BcfBY3fFTzPWi5BCYyhkiSZCrIGczaGNAwgUvga6U=
github.com/kubewharf/kubelet v1.24.6-kubewharf.5/go.mod h1:MxbSZUx3wXztFneeelwWWlX7NAAStJ6expqq7gY2J3c=
github.com/libopenstorage/openstorage v1.0.0/go.mod h1:Sp1sIObHjat1BeXhfMqLZ14wnOzEhNx2YQedreMcUyc=
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE=
github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc=
Expand Down
6 changes: 6 additions & 0 deletions pkg/consts/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ const (
const (
ResourceNetBandwidth v1.ResourceName = "resource.katalyst.kubewharf.io/net_bandwidth"
)

// ResourceAnnotationKeyResourceIdentifier nominated the key to override the default name
// field in pod-resource-server (for qrm-related protocols); if the name field can't be
// guaranteed to be unique in some cases, we can relay on this annotation to get unique keys
// (to replace with the default name)
const ResourceAnnotationKeyResourceIdentifier = "katalyst.kubewharf.io/resource_identifier"

0 comments on commit 25ce232

Please sign in to comment.