File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ import (
3232)
3333
3434const  (
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
106106func  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	}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments