File tree 2 files changed +14
-2
lines changed
pkg/controlplane/controller/crdregistration
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -224,8 +224,8 @@ func (c *crdRegistrationController) handleVersionUpdate(groupVersion schema.Grou
224
224
Spec : v1.APIServiceSpec {
225
225
Group : groupVersion .Group ,
226
226
Version : groupVersion .Version ,
227
- GroupPriorityMinimum : 1000 , // CRDs should have relatively low priority
228
- VersionPriority : 100 , // CRDs will be sorted by kube-like versions like any other APIService with the same VersionPriority
227
+ GroupPriorityMinimum : getGroupPriorityMin ( groupVersion . Group ) , // CRDs should have relatively low priority
228
+ VersionPriority : 100 , // CRDs will be sorted by kube-like versions like any other APIService with the same VersionPriority
229
229
},
230
230
})
231
231
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