Skip to content

Commit

Permalink
Reduce VPA mutating webhook timeout from 30s to 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmab committed Mar 23, 2020
1 parent a9226bb commit 26c93c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vertical-pod-autoscaler/pkg/admission-controller/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func selfRegistration(clientset *kubernetes.Clientset, caCert []byte, namespace,
RegisterClientConfig.URL = &url
}
sideEffects := v1beta1.SideEffectClassNone
timeoutSeconds := int32(10)
RegisterClientConfig.CABundle = caCert
webhookConfig := &v1beta1.MutatingWebhookConfiguration{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -101,8 +102,9 @@ func selfRegistration(clientset *kubernetes.Clientset, caCert []byte, namespace,
},
},
},
ClientConfig: RegisterClientConfig,
SideEffects: &sideEffects,
ClientConfig: RegisterClientConfig,
SideEffects: &sideEffects,
TimeoutSeconds: &timeoutSeconds,
},
},
}
Expand Down

0 comments on commit 26c93c7

Please sign in to comment.