File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed 
pkg/controlplane/controller/crdregistration Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -221,8 +221,8 @@ func (c *crdRegistrationController) handleVersionUpdate(groupVersion schema.Grou
221221				Spec : v1.APIServiceSpec {
222222					Group :                groupVersion .Group ,
223223					Version :              groupVersion .Version ,
224- 					GroupPriorityMinimum : 1000 , // CRDs should have relatively low priority 
225- 					VersionPriority :      100 ,  // CRDs will be sorted by kube-like versions like any other APIService with the same VersionPriority 
224+ 					GroupPriorityMinimum : getGroupPriorityMin ( groupVersion . Group ) , // CRDs should have relatively low priority 
225+ 					VersionPriority :      100 ,                                      // CRDs will be sorted by kube-like versions like any other APIService with the same VersionPriority 
226226				},
227227			})
228228			return  nil 
Original file line number Diff line number Diff line change 1+ package  crdregistration
2+ 
3+ func  getGroupPriorityMin (group  string ) int32  {
4+ 	switch  group  {
5+ 	case  "config.openshift.io" :
6+ 		return  1100 
7+ 	case  "operator.openshift.io" :
8+ 		return  1080 
9+ 	default :
10+ 		return  1000 
11+ 	}
12+ }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments