Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Policy ¶
type Policy interface { Name() string Validate(ctx context.Context, config policies.Config, ar *admissionv1beta1.AdmissionRequest, ) ([]policies.ResourceViolation, []policies.PatchOperation) }
Policy specifies how a Policy is implemented Returns a slice of violations and an optional slice of patch operations if mutation is desired.
type PolicySettings ¶
type Server ¶
type Server struct { Config Config RequestedShutdown bool EnforcedPolicies []Policy ReportOnlyPolicies []Policy Exemptions []policies.CompiledExemption }
Server contains configuration state needed for the API server
func (*Server) LogAndPrintError ¶
func (*Server) ValidatingWebhook ¶
func (s *Server) ValidatingWebhook(w http.ResponseWriter, r *http.Request)
ValidatingWebhook is a ValidatingWebhook endpoint that accepts K8s resources to process
Click to show internal directories.
Click to hide internal directories.