Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Reject is used to pass status between webhooks PodValidationRejectAnnotation = "pods.warden.kyma-project.io/validate-reject" ValidationReject = "reject" )
View Source
const (
DefaultingPath = "/defaulting/pods"
)
View Source
const PodType = "Pod"
View Source
const (
ValidationPath = "/validation/pods"
)
Variables ¶
This section is empty.
Functions ¶
func IsValidationNeededForOperation ¶
func IsValidationNeededForOperation(operation admissionv1.Operation) bool
Types ¶
type DefaultingWebHook ¶
type DefaultingWebHook struct {
// contains filtered or unexported fields
}
func NewDefaultingWebhook ¶
func NewDefaultingWebhook(client k8sclient.Client, ValidationSvc validate.PodValidator, timeout time.Duration, strictMode bool, logger *zap.SugaredLogger) *DefaultingWebHook
func (*DefaultingWebHook) InjectDecoder ¶
func (w *DefaultingWebHook) InjectDecoder(decoder *admission.Decoder) error
type Handler ¶
func HandleWithLogger ¶
func HandleWithLogger(baseLogger *zap.SugaredLogger, handler Handler) Handler
func HandleWithTimeout ¶
func HandleWithTimeout(timeout time.Duration, handler Handler, timeoutHandler TimeoutHandler) Handler
func HandlerWithTimeMeasure ¶
type TimeoutHandler ¶
type ValidationWebhook ¶
type ValidationWebhook struct {
// contains filtered or unexported fields
}
func NewValidationWebhook ¶
func NewValidationWebhook(logger *zap.SugaredLogger) *ValidationWebhook
func (*ValidationWebhook) InjectDecoder ¶
func (w *ValidationWebhook) InjectDecoder(decoder *admission.Decoder) error
Click to show internal directories.
Click to hide internal directories.