Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyHandlers ¶ added in v1.8.0
type PolicyHandlers interface { // Mutate performs the mutation of policy resources Mutate(logr.Logger, *admissionv1.AdmissionRequest, time.Time) *admissionv1.AdmissionResponse // Validate performs the validation check on policy resources Validate(logr.Logger, *admissionv1.AdmissionRequest, time.Time) *admissionv1.AdmissionResponse }
type ResourceHandlers ¶ added in v1.8.0
type ResourceHandlers interface { // Mutate performs the mutation of kube resources Mutate(logr.Logger, *admissionv1.AdmissionRequest, string, time.Time) *admissionv1.AdmissionResponse // Validate performs the validation check on kube resources Validate(logr.Logger, *admissionv1.AdmissionRequest, string, time.Time) *admissionv1.AdmissionResponse }
type Server ¶ added in v1.8.0
type Server interface { // Run TLS server in separate thread and returns control immediately Run(<-chan struct{}) // Stop TLS server and returns control after the server is shut down Stop(context.Context) }
func NewServer ¶ added in v1.8.0
func NewServer( policyHandlers PolicyHandlers, resourceHandlers ResourceHandlers, tlsProvider TlsProvider, configuration config.Configuration, register *webhookconfig.Register, monitor *webhookconfig.Monitor, cleanUp chan<- struct{}, ) Server
NewServer creates new instance of server accordingly to given configuration
type TlsProvider ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.