mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-23 14:36:54 +00:00
feat: requests and limit policies (#2095)
* chore: save progress Signed-off-by: Oliver Baehler <oliver@sudo-i.net> * feat: requests and limit policies Signed-off-by: Oliver Baehler <oliver@sudo-i.net> * feat: requests and limit policies Signed-off-by: Oliver Baehler <oliver@sudo-i.net> * feat: requests and limit policies Signed-off-by: Oliver Baehler <oliver@sudo-i.net> * feat: requests and limit policies Signed-off-by: Oliver Baehler <oliver@sudo-i.net> * feat: requests and limit policies Signed-off-by: Oliver Baehler <oliver@sudo-i.net> * feat: requests and limit policies Signed-off-by: Oliver Baehler <oliver@sudo-i.net> * feat: requests and limit policies Signed-off-by: Oliver Baehler <oliver@sudo-i.net> * feat: requests and limit policies Signed-off-by: Oliver Baehler <oliver@sudo-i.net> * feat: requests and limit policies Signed-off-by: Oliver Baehler <oliver@sudo-i.net> --------- Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
This commit is contained in:
@@ -613,6 +613,21 @@ func main() {
|
||||
_ = manager.AddReadyzCheck("ping", healthz.Ping)
|
||||
_ = manager.AddHealthzCheck("ping", healthz.Ping)
|
||||
|
||||
if directCfg.EnableTLSConfiguration() && webhookCertWatcher != nil {
|
||||
if err := manager.AddReadyzCheck(
|
||||
"webhook-certificate",
|
||||
tlscontroller.WebhookCertificateReadinessCheck(
|
||||
directClient,
|
||||
directCfg,
|
||||
ns,
|
||||
webhookCertWatcher.GetCertificate,
|
||||
),
|
||||
); err != nil {
|
||||
setupLog.Error(err, "unable to add webhook certificate readiness check")
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
dc, err := discovery.NewDiscoveryClientForConfig(manager.GetConfig())
|
||||
if err != nil {
|
||||
setupLog.Error(err, "unable to create discovery client")
|
||||
|
||||
Reference in New Issue
Block a user