@@ -27,9 +27,7 @@ import (
27
27
clientgoinformers "k8s.io/client-go/informers"
28
28
corev1informers "k8s.io/client-go/informers/core/v1"
29
29
"k8s.io/client-go/rest"
30
- "k8s.io/client-go/tools/cache"
31
30
"k8s.io/kubernetes/openshift-kube-apiserver/admission/authorization/restrictusers"
32
- "k8s.io/kubernetes/openshift-kube-apiserver/admission/authorization/restrictusers/usercache"
33
31
"k8s.io/kubernetes/openshift-kube-apiserver/admission/autoscaling/managednode"
34
32
"k8s.io/kubernetes/openshift-kube-apiserver/admission/autoscaling/managementcpusoverride"
35
33
"k8s.io/kubernetes/openshift-kube-apiserver/admission/scheduler/nodeenv"
@@ -109,7 +107,8 @@ func OpenShiftKubeAPIServerConfigPatch(genericConfig *genericapiserver.Config, k
109
107
// END HANDLER CHAIN
110
108
111
109
openshiftAPIServiceReachabilityCheck := newOpenshiftAPIServiceReachabilityCheck (genericConfig .PublicAddress )
112
- oauthAPIServiceReachabilityCheck := newOAuthPIServiceReachabilityCheck (genericConfig .PublicAddress )
110
+ oauthAPIServiceReachabilityCheck := newOAuthAPIServiceReachabilityCheck (genericConfig .PublicAddress )
111
+
113
112
genericConfig .ReadyzChecks = append (genericConfig .ReadyzChecks , openshiftAPIServiceReachabilityCheck , oauthAPIServiceReachabilityCheck )
114
113
115
114
genericConfig .AddPostStartHookOrDie ("openshift.io-startkubeinformers" , func (context genericapiserver.PostStartHookContext ) error {
@@ -176,11 +175,6 @@ func newInformers(loopbackClientConfig *rest.Config) (*kubeAPIServerInformers, e
176
175
OpenshiftUserInformers : userinformer .NewSharedInformerFactory (userClient , defaultInformerResyncPeriod ),
177
176
OpenshiftConfigInformers : configv1informer .NewSharedInformerFactory (configClient , defaultInformerResyncPeriod ),
178
177
}
179
- if err := ret .OpenshiftUserInformers .User ().V1 ().Groups ().Informer ().AddIndexers (cache.Indexers {
180
- usercache .ByUserIndexName : usercache .ByUserIndexKeys ,
181
- }); err != nil {
182
- return nil , err
183
- }
184
178
185
179
return ret , nil
186
180
}
@@ -195,12 +189,15 @@ type kubeAPIServerInformers struct {
195
189
func (i * kubeAPIServerInformers ) getOpenshiftQuotaInformers () quotainformer.SharedInformerFactory {
196
190
return i .OpenshiftQuotaInformers
197
191
}
192
+
198
193
func (i * kubeAPIServerInformers ) getOpenshiftSecurityInformers () securityv1informer.SharedInformerFactory {
199
194
return i .OpenshiftSecurityInformers
200
195
}
196
+
201
197
func (i * kubeAPIServerInformers ) getOpenshiftUserInformers () userinformer.SharedInformerFactory {
202
198
return i .OpenshiftUserInformers
203
199
}
200
+
204
201
func (i * kubeAPIServerInformers ) getOpenshiftInfraInformers () configv1informer.SharedInformerFactory {
205
202
return i .OpenshiftConfigInformers
206
203
}
0 commit comments