Documentation ¶
Index ¶
- func DefaultingWebhookFor(scheme *runtime.Scheme, converter k8s_common.Converter) *admission.Webhook
- func NewContainerPatchValidatorWebhook() k8s_common.AdmissionValidator
- func NewValidatingWebhook(converter k8s_common.Converter, coreRegistry core_registry.TypeRegistry, ...) k8s_common.AdmissionValidator
- func NewZoneValidatorWebhook(validator zone.Validator, unsafeDelete bool) k8s_common.AdmissionValidator
- func PodMutatingWebhook(mutator PodMutator) *kube_admission.Webhook
- type ContainerPatchValidator
- type Defaulter
- type OwnerReferenceMutator
- type PodMutator
- type PolicyNamespaceValidator
- type ServiceValidator
- type ZoneValidator
- func (z *ZoneValidator) Handle(ctx context.Context, req admission.Request) admission.Response
- func (z *ZoneValidator) InjectDecoder(_ admission.Decoder)
- func (z *ZoneValidator) Supports(req admission.Request) bool
- func (z *ZoneValidator) ValidateDelete(ctx context.Context, req admission.Request) admission.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultingWebhookFor ¶
func NewContainerPatchValidatorWebhook ¶
func NewContainerPatchValidatorWebhook() k8s_common.AdmissionValidator
func NewValidatingWebhook ¶
func NewValidatingWebhook( converter k8s_common.Converter, coreRegistry core_registry.TypeRegistry, k8sRegistry k8s_registry.TypeRegistry, mode core.CpMode, federatedZone bool, disableOriginLabelValidation bool, ) k8s_common.AdmissionValidator
func NewZoneValidatorWebhook ¶
func NewZoneValidatorWebhook(validator zone.Validator, unsafeDelete bool) k8s_common.AdmissionValidator
func PodMutatingWebhook ¶
func PodMutatingWebhook(mutator PodMutator) *kube_admission.Webhook
Types ¶
type ContainerPatchValidator ¶
type ContainerPatchValidator struct {
SystemNamespace string
}
func (*ContainerPatchValidator) InjectDecoder ¶
func (h *ContainerPatchValidator) InjectDecoder(d admission.Decoder)
type Defaulter ¶
type Defaulter interface { core_model.Resource Default() error }
type OwnerReferenceMutator ¶
type OwnerReferenceMutator struct { Client kube_client.Client CoreRegistry core_registry.TypeRegistry K8sRegistry k8s_registry.TypeRegistry Decoder admission.Decoder Scheme *kube_runtime.Scheme }
type PolicyNamespaceValidator ¶
func (*PolicyNamespaceValidator) InjectDecoder ¶
func (p *PolicyNamespaceValidator) InjectDecoder(decoder admission.Decoder)
type ServiceValidator ¶
ServiceValidator validates Dubbo-specific annotations on Services.
type ZoneValidator ¶
type ZoneValidator struct {
// contains filtered or unexported fields
}
func (*ZoneValidator) InjectDecoder ¶
func (z *ZoneValidator) InjectDecoder(_ admission.Decoder)
func (*ZoneValidator) ValidateDelete ¶
Click to show internal directories.
Click to hide internal directories.