Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { // RequireAnnotation means that the annotation must be given to inject. // If this is false, injection is default. RequireAnnotation bool VaultAddress string VaultAuthType string VaultAuthPath string ProxyAddress string ImageVault string Clientset *kubernetes.Clientset Log hclog.Logger RevokeOnShutdown bool UserID string GroupID string SameID bool SetSecurityContext bool DefaultTemplate string ResourceRequestCPU string ResourceRequestMem string ResourceLimitCPU string ResourceLimitMem string ExitOnRetryFailure bool StaticSecretRenderInterval string AuthMinBackoff string AuthMaxBackoff string }
Handler is the HTTP handler for admission webhooks.
func (*Handler) Handle ¶
func (h *Handler) Handle(w http.ResponseWriter, r *http.Request)
Handle is the http.HandlerFunc implementation that actually handles the webhook request for admission control. This should be registered or served via an HTTP server.
func (*Handler) Mutate ¶
func (h *Handler) Mutate(req *admissionv1.AdmissionRequest) *admissionv1.AdmissionResponse
Mutate takes an admission request and performs mutation if necessary, returning the final API response.
Click to show internal directories.
Click to hide internal directories.