Documentation ¶
Index ¶
- func DecodeAdmissionRequest(r *http.Request, decoder runtime.Decoder, ...) error
- func NewValidateKubeconfigSecretsHandler() http.HandlerFunc
- func NewValidateNamespaceDeletionHandler(ctx context.Context, k8sGardenClient kubernetes.Interface) (http.HandlerFunc, error)
- func NewValidateResourceSizeHandler(config *apisconfig.ResourceAdmissionConfiguration) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAdmissionRequest ¶
func DecodeAdmissionRequest(r *http.Request, decoder runtime.Decoder, into *admissionv1beta1.AdmissionReview, limit int64, logger logrus.FieldLogger) error
DecodeAdmissionRequest decodes the given http request into an admission request. An error is returned if the request exceeds the given limit.
func NewValidateKubeconfigSecretsHandler ¶
func NewValidateKubeconfigSecretsHandler() http.HandlerFunc
NewValidateKubeconfigSecretsHandler creates a new handler for validating namespace deletions.
func NewValidateNamespaceDeletionHandler ¶
func NewValidateNamespaceDeletionHandler(ctx context.Context, k8sGardenClient kubernetes.Interface) (http.HandlerFunc, error)
NewValidateNamespaceDeletionHandler creates a new handler for validating namespace deletions.
func NewValidateResourceSizeHandler ¶
func NewValidateResourceSizeHandler(config *apisconfig.ResourceAdmissionConfiguration) http.HandlerFunc
NewValidateResourceSizeHandler creates a new handler for validating the resource size of a request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.