Skip to content

Commit 51d2799

Browse files
wangshulei098ahg-g
andcommitted
Update pkg/utils/utils.go
Co-authored-by: Abdullah Gharaibeh <[email protected]>
1 parent 8b87efa commit 51d2799

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/utils/utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ import (
3232
)
3333

3434
const (
35-
defaultNamespace = "lws-system"
36-
AnnotationPrefix = "volcano.sh/"
35+
defaultNamespace = "lws-system"
36+
VolcanoAnnotationPrefix = "volcano.sh/"
3737
)
3838

3939
// Sha1Hash accepts an input string and returns the 40 character SHA1 hash digest of the input string.
@@ -106,7 +106,7 @@ func CalculatePGMinResources(lws *leaderworkerset.LeaderWorkerSet) corev1.Resour
106106
func InheritVolcanoAnnotations(lws *leaderworkerset.LeaderWorkerSet) map[string]string {
107107
res := map[string]string{}
108108
for k, v := range lws.Annotations {
109-
if strings.HasPrefix(k, AnnotationPrefix) {
109+
if strings.HasPrefix(k, VolcanoAnnotationPrefix) {
110110
res[k] = v
111111
}
112112
}

0 commit comments

Comments
 (0)