Documentation ¶
Overview ¶
Copyright 2022 The KubeSphere Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDefaulter ¶
func RegisterDefaulter(name string, d *DefaulterWrap)
func RegisterValidator ¶
func RegisterValidator(name string, v *ValidatorWrap)
func UnRegisterDefaulter ¶
func UnRegisterDefaulter(name string)
func UnRegisterValidator ¶
func UnRegisterValidator(name string)
Types ¶
type DefaulterWrap ¶
func GetDefaulter ¶
func GetDefaulter(name string) *DefaulterWrap
type MutatingHandler ¶
func (*MutatingHandler) InjectDecoder ¶
func (h *MutatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into a MutatingHandler.
type ValidatingHandler ¶
func (*ValidatingHandler) InjectDecoder ¶
func (h *ValidatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into a ValidatingHandler.
type Validator ¶
type Validator interface { ValidateCreate(obj runtime.Object) error ValidateUpdate(old runtime.Object, new runtime.Object) error ValidateDelete(obj runtime.Object) error }
Validator defines functions for validating an operation
type ValidatorWrap ¶
func GetValidator ¶
func GetValidator(name string) *ValidatorWrap