Documentation ¶
Index ¶
- func DefaultPodSpecWorkload(obj *v1alpha1.PodSpecWorkload)
- func ValidateCreate(r *v1alpha1.PodSpecWorkload) field.ErrorList
- func ValidateDelete(r *v1alpha1.PodSpecWorkload) field.ErrorList
- func ValidateUpdate(r *v1alpha1.PodSpecWorkload, _ *v1alpha1.PodSpecWorkload) field.ErrorList
- type MutatingHandler
- type ValidatingHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPodSpecWorkload ¶
func DefaultPodSpecWorkload(obj *v1alpha1.PodSpecWorkload)
DefaultPodSpecWorkload will set the default value for the PodSpecWorkload
func ValidateCreate ¶
func ValidateCreate(r *v1alpha1.PodSpecWorkload) field.ErrorList
ValidateCreate validates the PodSpecWorkload on creation
func ValidateDelete ¶
func ValidateDelete(r *v1alpha1.PodSpecWorkload) field.ErrorList
ValidateDelete validates the PodSpecWorkload on delete
func ValidateUpdate ¶
func ValidateUpdate(r *v1alpha1.PodSpecWorkload, _ *v1alpha1.PodSpecWorkload) field.ErrorList
ValidateUpdate validates the PodSpecWorkload on update
Types ¶
type MutatingHandler ¶
type MutatingHandler struct { Client client.Client // Decoder decodes objects Decoder *admission.Decoder }
MutatingHandler handles PodSpec workload
func (*MutatingHandler) InjectClient ¶
func (h *MutatingHandler) InjectClient(c client.Client) error
InjectClient injects the client into the MutatingHandler
func (*MutatingHandler) InjectDecoder ¶
func (h *MutatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the MutatingHandler
type ValidatingHandler ¶
type ValidatingHandler struct { Client client.Client // Decoder decodes objects Decoder *admission.Decoder }
ValidatingHandler handles PodSpecWorkload
func (*ValidatingHandler) InjectClient ¶
func (h *ValidatingHandler) InjectClient(c client.Client) error
InjectClient injects the client into the ValidatingHandler
func (*ValidatingHandler) InjectDecoder ¶
func (h *ValidatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the ValidatingHandler
Click to show internal directories.
Click to hide internal directories.