Documentation ¶
Index ¶
- Variables
- func DefaultingWebhookFor(factory func() core_model.Resource, converter k8s_common.Converter) *admission.Webhook
- func NewContainerPatchValidatorWebhook() k8s_common.AdmissionValidator
- func NewDataplaneValidatorWebhook(validator dataplane.Validator, converter k8s_common.Converter, ...) k8s_common.AdmissionValidator
- func NewExternalServiceValidatorWebhook(validator externalservice_managers.ExternalServiceValidator, ...) k8s_common.AdmissionValidator
- func NewGatewayAPIMultizoneValidator(cpMode config_core.CpMode) *kube_admission.Webhook
- func NewGatewayInstanceValidatorWebhook(converter k8s_common.Converter, resourceManager manager.ResourceManager) k8s_common.AdmissionValidator
- func NewMeshValidatorWebhook(validator managers_mesh.MeshValidator, converter k8s_common.Converter, ...) k8s_common.AdmissionValidator
- func NewRateLimitValidatorWebhook(validator ratelimit_managers.RateLimitValidator, ...) 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 DataplaneValidator
- func (h *DataplaneValidator) Handle(ctx context.Context, req admission.Request) admission.Response
- func (h *DataplaneValidator) InjectDecoder(d *admission.Decoder) error
- func (h *DataplaneValidator) Supports(req admission.Request) bool
- func (h *DataplaneValidator) ValidateCreate(ctx context.Context, req admission.Request) admission.Response
- func (h *DataplaneValidator) ValidateUpdate(ctx context.Context, req admission.Request) admission.Response
- type Defaulter
- type ExternalServiceValidator
- func (h *ExternalServiceValidator) Handle(ctx context.Context, req admission.Request) admission.Response
- func (h *ExternalServiceValidator) InjectDecoder(d *admission.Decoder) error
- func (h *ExternalServiceValidator) Supports(req admission.Request) bool
- func (h *ExternalServiceValidator) ValidateCreate(ctx context.Context, req admission.Request) admission.Response
- func (h *ExternalServiceValidator) ValidateDelete(ctx context.Context, req admission.Request) admission.Response
- func (h *ExternalServiceValidator) ValidateUpdate(ctx context.Context, req admission.Request) admission.Response
- type GatewayAPIMultizoneValidator
- type GatewayInstanceValidator
- func (h *GatewayInstanceValidator) Handle(ctx context.Context, req admission.Request) admission.Response
- func (h *GatewayInstanceValidator) InjectDecoder(d *admission.Decoder) error
- func (h *GatewayInstanceValidator) Supports(req admission.Request) bool
- func (h *GatewayInstanceValidator) ValidateCreate(ctx context.Context, req admission.Request) admission.Response
- func (h *GatewayInstanceValidator) ValidateDelete(ctx context.Context, req admission.Request) admission.Response
- func (h *GatewayInstanceValidator) ValidateUpdate(ctx context.Context, req admission.Request) admission.Response
- type MeshValidator
- func (h *MeshValidator) Handle(ctx context.Context, req admission.Request) admission.Response
- func (h *MeshValidator) InjectDecoder(d *admission.Decoder) error
- func (h *MeshValidator) Supports(req admission.Request) bool
- func (h *MeshValidator) ValidateCreate(ctx context.Context, req admission.Request) admission.Response
- func (h *MeshValidator) ValidateDelete(ctx context.Context, req admission.Request) admission.Response
- func (h *MeshValidator) ValidateUpdate(ctx context.Context, req admission.Request) admission.Response
- type OwnerReferenceMutator
- type PodMutator
- type RateLimitValidator
- func (h *RateLimitValidator) Handle(ctx context.Context, req admission.Request) admission.Response
- func (h *RateLimitValidator) InjectDecoder(d *admission.Decoder) error
- func (h *RateLimitValidator) Supports(req admission.Request) bool
- func (h *RateLimitValidator) ValidateCreate(ctx context.Context, req admission.Request) admission.Response
- func (h *RateLimitValidator) ValidateDelete(ctx context.Context, req admission.Request) admission.Response
- func (h *RateLimitValidator) ValidateUpdate(ctx context.Context, req admission.Request) admission.Response
- type SecretValidator
- type ServiceValidator
- type ZoneValidator
- func (z *ZoneValidator) Handle(ctx context.Context, req admission.Request) admission.Response
- func (z *ZoneValidator) InjectDecoder(_ *admission.Decoder) error
- 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 ¶
View Source
var GatewayAPINotSupportedErr = errors.New("GatewayAPI of Kuma is only supported in Standalone deployments")
Functions ¶
func DefaultingWebhookFor ¶
func DefaultingWebhookFor(factory func() core_model.Resource, converter k8s_common.Converter) *admission.Webhook
func NewContainerPatchValidatorWebhook ¶ added in v1.8.1
func NewContainerPatchValidatorWebhook() k8s_common.AdmissionValidator
func NewDataplaneValidatorWebhook ¶ added in v1.8.1
func NewDataplaneValidatorWebhook(validator dataplane.Validator, converter k8s_common.Converter, resourceManager manager.ResourceManager) k8s_common.AdmissionValidator
func NewExternalServiceValidatorWebhook ¶ added in v1.8.1
func NewExternalServiceValidatorWebhook(validator externalservice_managers.ExternalServiceValidator, converter k8s_common.Converter) k8s_common.AdmissionValidator
func NewGatewayAPIMultizoneValidator ¶ added in v1.8.1
func NewGatewayAPIMultizoneValidator(cpMode config_core.CpMode) *kube_admission.Webhook
func NewGatewayInstanceValidatorWebhook ¶ added in v1.8.1
func NewGatewayInstanceValidatorWebhook(converter k8s_common.Converter, resourceManager manager.ResourceManager) k8s_common.AdmissionValidator
func NewMeshValidatorWebhook ¶
func NewMeshValidatorWebhook( validator managers_mesh.MeshValidator, converter k8s_common.Converter, unsafeDelete bool, ) k8s_common.AdmissionValidator
func NewRateLimitValidatorWebhook ¶ added in v1.8.1
func NewRateLimitValidatorWebhook(validator ratelimit_managers.RateLimitValidator, converter k8s_common.Converter) k8s_common.AdmissionValidator
func NewValidatingWebhook ¶
func NewValidatingWebhook(converter k8s_common.Converter, coreRegistry core_registry.TypeRegistry, k8sRegistry k8s_registry.TypeRegistry, mode core.CpMode, cpServiceAccountName string) 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 ¶ added in v1.8.1
type ContainerPatchValidator struct {
SystemNamespace string
}
func (*ContainerPatchValidator) InjectDecoder ¶ added in v1.8.1
func (h *ContainerPatchValidator) InjectDecoder(d *admission.Decoder) error
type DataplaneValidator ¶ added in v1.8.1
type DataplaneValidator struct {
// contains filtered or unexported fields
}
func (*DataplaneValidator) InjectDecoder ¶ added in v1.8.1
func (h *DataplaneValidator) InjectDecoder(d *admission.Decoder) error
func (*DataplaneValidator) Supports ¶ added in v1.8.1
func (h *DataplaneValidator) Supports(req admission.Request) bool
func (*DataplaneValidator) ValidateCreate ¶ added in v1.8.1
func (*DataplaneValidator) ValidateUpdate ¶ added in v1.8.1
type Defaulter ¶
type Defaulter interface { core_model.Resource Default() error }
type ExternalServiceValidator ¶ added in v1.8.1
type ExternalServiceValidator struct {
// contains filtered or unexported fields
}
func (*ExternalServiceValidator) InjectDecoder ¶ added in v1.8.1
func (h *ExternalServiceValidator) InjectDecoder(d *admission.Decoder) error
func (*ExternalServiceValidator) Supports ¶ added in v1.8.1
func (h *ExternalServiceValidator) Supports(req admission.Request) bool
func (*ExternalServiceValidator) ValidateCreate ¶ added in v1.8.1
func (*ExternalServiceValidator) ValidateDelete ¶ added in v1.8.1
func (*ExternalServiceValidator) ValidateUpdate ¶ added in v1.8.1
type GatewayAPIMultizoneValidator ¶ added in v1.8.1
type GatewayAPIMultizoneValidator struct { CpMode config_core.CpMode Decoder *kube_admission.Decoder }
func (*GatewayAPIMultizoneValidator) Handle ¶ added in v1.8.1
func (g *GatewayAPIMultizoneValidator) Handle(_ context.Context, req kube_admission.Request) kube_admission.Response
func (*GatewayAPIMultizoneValidator) InjectDecoder ¶ added in v1.8.1
func (g *GatewayAPIMultizoneValidator) InjectDecoder(d *kube_admission.Decoder) error
type GatewayInstanceValidator ¶ added in v1.8.1
type GatewayInstanceValidator struct {
// contains filtered or unexported fields
}
func (*GatewayInstanceValidator) InjectDecoder ¶ added in v1.8.1
func (h *GatewayInstanceValidator) InjectDecoder(d *admission.Decoder) error
func (*GatewayInstanceValidator) Supports ¶ added in v1.8.1
func (h *GatewayInstanceValidator) Supports(req admission.Request) bool
func (*GatewayInstanceValidator) ValidateCreate ¶ added in v1.8.1
func (*GatewayInstanceValidator) ValidateDelete ¶ added in v1.8.1
func (*GatewayInstanceValidator) ValidateUpdate ¶ added in v1.8.1
type MeshValidator ¶
type MeshValidator struct {
// contains filtered or unexported fields
}
func (*MeshValidator) InjectDecoder ¶
func (h *MeshValidator) InjectDecoder(d *admission.Decoder) error
func (*MeshValidator) ValidateCreate ¶
func (*MeshValidator) ValidateDelete ¶
func (*MeshValidator) ValidateUpdate ¶
type OwnerReferenceMutator ¶
type OwnerReferenceMutator struct { Client kube_client.Client CoreRegistry core_registry.TypeRegistry K8sRegistry k8s_registry.TypeRegistry Decoder *admission.Decoder Scheme *kube_runtime.Scheme }
func (*OwnerReferenceMutator) InjectDecoder ¶
func (m *OwnerReferenceMutator) InjectDecoder(d *admission.Decoder) error
type RateLimitValidator ¶ added in v1.8.1
type RateLimitValidator struct {
// contains filtered or unexported fields
}
func (*RateLimitValidator) InjectDecoder ¶ added in v1.8.1
func (h *RateLimitValidator) InjectDecoder(d *admission.Decoder) error
func (*RateLimitValidator) Supports ¶ added in v1.8.1
func (h *RateLimitValidator) Supports(req admission.Request) bool
func (*RateLimitValidator) ValidateCreate ¶ added in v1.8.1
func (*RateLimitValidator) ValidateDelete ¶ added in v1.8.1
func (*RateLimitValidator) ValidateUpdate ¶ added in v1.8.1
type SecretValidator ¶
type SecretValidator struct { Decoder *admission.Decoder Client kube_client.Reader Validator secret_manager.SecretValidator UnsafeDelete bool }
func (*SecretValidator) InjectDecoder ¶
func (v *SecretValidator) InjectDecoder(d *admission.Decoder) error
type ServiceValidator ¶
type ServiceValidator struct {
// contains filtered or unexported fields
}
ServiceValidator validates Kuma-specific annotations on Services.
func (*ServiceValidator) Handle ¶
Handle admits a Service only if Kuma-specific annotations have proper values.
func (*ServiceValidator) InjectDecoder ¶
func (v *ServiceValidator) InjectDecoder(d *admission.Decoder) error
type ZoneValidator ¶
type ZoneValidator struct {
// contains filtered or unexported fields
}
func (*ZoneValidator) InjectDecoder ¶
func (z *ZoneValidator) InjectDecoder(_ *admission.Decoder) error
func (*ZoneValidator) ValidateDelete ¶
Source Files ¶
- containerpatch_validator.go
- dataplane_validator.go
- defaulter.go
- externalservice_validator.go
- gateway_instance_validator.go
- gatewayapi_multizone_validator.go
- mesh_validator.go
- owner_reference_mutator.go
- pod_mutator.go
- ratelimit_validator.go
- secret_validator.go
- service_validator.go
- validation.go
- zone_validator.go
Click to show internal directories.
Click to hide internal directories.