Documentation ¶
Index ¶
- Constants
- func LogRequest(ctx context.Context, client client.Client, request admission.Request, ...)
- func Register(mgr ctrl.Manager, vmPool vmpool.VMPool, enablePolicyReports bool, ...) error
- func ReportRequest(ctx context.Context, client client.Client, request admission.Request, ...)
- type Handler
- type Response
- type Webhook
Constants ¶
View Source
const ( Source = "JsPolicy" PolicyReportPrefix = "js-policy-report-ns-" ClusterPolicyReportName = "js-cluster-policy-report" CategoryAnnotation = "policy.jspolicy.com/category" SeverityAnnotation = "policy.jspolicy.com/severity" )
View Source
const DefaultAuditLogSize = 20
Variables ¶
This section is empty.
Functions ¶
func LogRequest ¶
Types ¶
type Handler ¶
type Response ¶
type Response struct { Deny bool `json:"deny,omitempty"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` Code int `json:"code,omitempty"` Patched map[string]interface{} `json:"patched,omitempty"` Warnings []string `json:"warnings,omitempty"` // this is only used in background policies Reschedule bool `json:"reschedule,omitempty"` }
Click to show internal directories.
Click to hide internal directories.