Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMutatingHandler ¶
func RegisterMutatingHandler(mgr manager.Manager, args controller.Args)
RegisterMutatingHandler will register component mutation handler to the webhook
func RegisterValidatingHandler ¶
RegisterValidatingHandler will register ComponentDefinition validation to webhook
func ValidateWorkload ¶
func ValidateWorkload(mapper meta.RESTMapper, cd *v1beta1.ComponentDefinition) error
ValidateWorkload validates whether the Workload field is valid
Types ¶
type MutatingHandler ¶
type MutatingHandler struct { Client client.Client // Decoder decodes objects Decoder *admission.Decoder // AutoGenWorkloadDef indicates whether create workloadDef which componentDef refers to AutoGenWorkloadDef bool }
MutatingHandler handles ComponentDefinition
func (*MutatingHandler) Mutate ¶
func (h *MutatingHandler) Mutate(obj *v1beta1.ComponentDefinition) error
Mutate sets all the default value for the ComponentDefinition
Click to show internal directories.
Click to hide internal directories.