Versions in this module Expand all Collapse all v0 v0.6.7 Jan 13, 2021 Changes in this version + func LoggingMiddleware(logger log.Logger) func(http.Handler) http.Handler + type AdmissionError struct + Allowed bool + Debug string + Message string + func (e AdmissionError) Error() string + type AdmissionHandler struct + AdmitFunc AdmitFunc + LimitBytes int64 + Logger log.Logger + func (ah *AdmissionHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type AdmissionServer struct + GracePeriod time.Duration + func NewServer(srv *http.Server, logger log.Logger) (*AdmissionServer, error) + func (as *AdmissionServer) Run(ctx context.Context) error + func (as *AdmissionServer) Stop() error + type AdmitFunc func(reviewRequest *admission.AdmissionReview) (*admission.AdmissionResponse, error) + func DenyIngresses(ignoredNamespaces []string) AdmitFunc + func DenyPublicLoadBalancers(ignoredNamespaces []string, provider CloudProvider) AdmitFunc + func EnforcePodAnnotations(ignoredNamespaces []string, requiredAnnotations map[string]func(string) bool) AdmitFunc + type CloudProvider int + const AWS + const Azure + const GCP + const OpenStack