generic

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 NewAdmissionHandler(webhookType string, gk schema.GroupKind, handler admission.Handler) *GenericAdmissionHandler

func (*GenericAdmissionHandler) Handle

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL