@@ -62,7 +62,7 @@ func OpenShiftKubeAPIServerConfigPatch(genericConfig *genericapiserver.Config, k
6262 // ADMISSION
6363 clusterQuotaMappingController := newClusterQuotaMappingController (kubeInformers .Core ().V1 ().Namespaces (), openshiftInformers .OpenshiftQuotaInformers .Quota ().V1 ().ClusterResourceQuotas ())
6464 genericConfig .AddPostStartHookOrDie ("quota.openshift.io-clusterquotamapping" , func (context genericapiserver.PostStartHookContext ) error {
65- go clusterQuotaMappingController .Run (5 , context .StopCh )
65+ go clusterQuotaMappingController .Run (5 , context .Done () )
6666 return nil
6767 })
6868
@@ -95,7 +95,7 @@ func OpenShiftKubeAPIServerConfigPatch(genericConfig *genericapiserver.Config, k
9595 }
9696 apiRequestCountController := apirequestcount .NewController (apiserverClient .APIRequestCounts (), nodeFor ())
9797 genericConfig .AddPostStartHook ("openshift.io-api-request-count-filter" , func (context genericapiserver.PostStartHookContext ) error {
98- go apiRequestCountController .Start (context .StopCh )
98+ go apiRequestCountController .Start (context .Done () )
9999 return nil
100100 })
101101 genericConfig .BuildHandlerChainFunc , err = BuildHandlerChain (
@@ -113,7 +113,7 @@ func OpenShiftKubeAPIServerConfigPatch(genericConfig *genericapiserver.Config, k
113113 genericConfig .ReadyzChecks = append (genericConfig .ReadyzChecks , openshiftAPIServiceReachabilityCheck , oauthAPIServiceReachabilityCheck )
114114
115115 genericConfig .AddPostStartHookOrDie ("openshift.io-startkubeinformers" , func (context genericapiserver.PostStartHookContext ) error {
116- go openshiftInformers .Start (context .StopCh )
116+ go openshiftInformers .Start (context .Done () )
117117 return nil
118118 })
119119 genericConfig .AddPostStartHookOrDie ("openshift.io-openshift-apiserver-reachable" , func (context genericapiserver.PostStartHookContext ) error {
0 commit comments