@@ -121,11 +121,11 @@ func UpdateValidatingWebhookCABundle(config *rest.Config, webhookConfigName stri
121121
122122 kc := kubernetes .NewForConfigOrDie (config )
123123 lw := & cache.ListWatch {
124- ListFunc : func (options metav1.ListOptions ) (runtime.Object , error ) {
124+ ListWithContextFunc : func (ctx context. Context , options metav1.ListOptions ) (runtime.Object , error ) {
125125 options .FieldSelector = fields .OneTermEqualSelector (kutil .ObjectNameField , webhookConfigName ).String ()
126126 return kc .AdmissionregistrationV1beta1 ().ValidatingWebhookConfigurations ().List (ctx , options )
127127 },
128- WatchFunc : func (options metav1.ListOptions ) (watch.Interface , error ) {
128+ WatchFuncWithContext : func (ctx context. Context , options metav1.ListOptions ) (watch.Interface , error ) {
129129 options .FieldSelector = fields .OneTermEqualSelector (kutil .ObjectNameField , webhookConfigName ).String ()
130130 return kc .AdmissionregistrationV1beta1 ().ValidatingWebhookConfigurations ().Watch (ctx , options )
131131 },
@@ -177,11 +177,11 @@ func SyncValidatingWebhookCABundle(config *rest.Config, webhookConfigName string
177177
178178 kc := kubernetes .NewForConfigOrDie (config )
179179 lw := & cache.ListWatch {
180- ListFunc : func (options metav1.ListOptions ) (runtime.Object , error ) {
180+ ListWithContextFunc : func (ctx context. Context , options metav1.ListOptions ) (runtime.Object , error ) {
181181 options .FieldSelector = fields .OneTermEqualSelector (kutil .ObjectNameField , webhookConfigName ).String ()
182182 return kc .AdmissionregistrationV1beta1 ().ValidatingWebhookConfigurations ().List (ctx , options )
183183 },
184- WatchFunc : func (options metav1.ListOptions ) (watch.Interface , error ) {
184+ WatchFuncWithContext : func (ctx context. Context , options metav1.ListOptions ) (watch.Interface , error ) {
185185 options .FieldSelector = fields .OneTermEqualSelector (kutil .ObjectNameField , webhookConfigName ).String ()
186186 return kc .AdmissionregistrationV1beta1 ().ValidatingWebhookConfigurations ().Watch (ctx , options )
187187 },
0 commit comments