Documentation
¶
Index ¶
- type GenericAdmissionHandler
- func (h *GenericAdmissionHandler) Handle(ctx context.Context, req admission.Request) admission.Response
- func (m *GenericAdmissionHandler) InjectClient(c client.Client) error
- func (m *GenericAdmissionHandler) InjectDecoder(d *admission.Decoder) error
- func (m *GenericAdmissionHandler) InjectLogger(l logr.Logger) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericAdmissionHandler ¶
type GenericAdmissionHandler struct { *mixin.WebhookAdmissionHandlerMixin // contains filtered or unexported fields }
func NewAdmissionHandler ¶
func (*GenericAdmissionHandler) Handle ¶
func (h *GenericAdmissionHandler) Handle(ctx context.Context, req admission.Request) admission.Response
Handle handles admission requests. It will only handle Pod creation and update. It will query the workload that manages it via the pod's ownerReference, and then apply the processing label from the workload onto the pod. In special cases where the pod's ownerReference is a ReplicaSet, it will continue to query its ownerReference to find the corresponding Deployment workload.
func (*GenericAdmissionHandler) InjectClient ¶
func (m *GenericAdmissionHandler) InjectClient(c client.Client) error
InjectClient implements inject.Client.
func (*GenericAdmissionHandler) InjectDecoder ¶
func (m *GenericAdmissionHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder implements admission.DecoderInjector.
func (*GenericAdmissionHandler) InjectLogger ¶
func (m *GenericAdmissionHandler) InjectLogger(l logr.Logger) error
InjectLogger implements inject.Logger.
Click to show internal directories.
Click to hide internal directories.