Documentation ¶
Index ¶
- func HandleAdmissionWebhook(webhook controllermanager.Webhook) http.HandlerFunc
- func ListenAndServe(ctx context.Context, config *configv1alpha1.HTTPSpec, mgr Manager) error
- func ListenAndServeWebhooks(ctx context.Context, config *configv1alpha1.WebhookServerSpec, ...) error
- func ServeHealth(mux *http.ServeMux, cfg *configv1alpha1.HealthSpec, mgr Manager)
- func ServeMetrics(mux *http.ServeMux, cfg *configv1alpha1.MetricsSpec)
- func ServeWebhooks(mux *http.ServeMux, webhooks []controllermanager.Webhook)
- type Manager
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAdmissionWebhook ¶
func HandleAdmissionWebhook(webhook controllermanager.Webhook) http.HandlerFunc
HandleAdmissionWebhook returns a http.HandlerFunc for a Webhook.
func ListenAndServe ¶
ListenAndServe listens on the given TCP address and gracefully stops when the given context is canceled, setting up all HTTP handlers.
func ListenAndServeWebhooks ¶
func ListenAndServeWebhooks( ctx context.Context, config *configv1alpha1.WebhookServerSpec, webhooks []controllermanager.Webhook, ) error
ListenAndServeWebhooks listens on the given TCP address and gracefully stops when the given context is canceled, setting up all webhooks handlers.
func ServeHealth ¶
func ServeHealth(mux *http.ServeMux, cfg *configv1alpha1.HealthSpec, mgr Manager)
ServeHealth adds health probe handlers to the given serve mux.
func ServeMetrics ¶
func ServeMetrics(mux *http.ServeMux, cfg *configv1alpha1.MetricsSpec)
ServeMetrics adds Prometheus metrics handlers to the given serve mux.
func ServeWebhooks ¶
func ServeWebhooks(mux *http.ServeMux, webhooks []controllermanager.Webhook)
ServeWebhooks prepares admission webhooks to be served. TODO(irvinlim): Handle conversion webhooks here in the future too.
Types ¶
type Manager ¶
type Manager interface { GetReadiness() error GetHealth() []controllermanager.HealthStatus }
Click to show internal directories.
Click to hide internal directories.