Documentation ¶
Index ¶
- func Serialize(ctx context.Context, mapping *v1beta1.ClusterWorkloadResourceMapping, ...) error
- func SetupWithManager(mgr ctrl.Manager, serviceAccountName string)
- type MappingValidator
- func (validator *MappingValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (validator *MappingValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (validator *MappingValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (validator *MappingValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serialize ¶ added in v1.4.0
func Serialize(ctx context.Context, mapping *v1beta1.ClusterWorkloadResourceMapping, client dynamic.Interface, lookup kubernetes.K8STypeLookup) error
func SetupWithManager ¶
Types ¶
type MappingValidator ¶ added in v1.4.0
type MappingValidator struct {
// contains filtered or unexported fields
}
func NewMappingValidator ¶ added in v1.4.0
func NewMappingValidator(config *rest.Config, mapper meta.RESTMapper) (*MappingValidator, error)
func (*MappingValidator) SetupWebhookWithManager ¶ added in v1.4.0
func (validator *MappingValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*MappingValidator) ValidateCreate ¶ added in v1.4.0
func (*MappingValidator) ValidateDelete ¶ added in v1.4.0
func (*MappingValidator) ValidateUpdate ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.