Documentation ¶
Overview ¶
Package patcher provides functionality required to patch pods by the FPGA admission webhook.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PatcherManager ¶
type PatcherManager struct {
// contains filtered or unexported fields
}
PatcherManager keeps track of patchers registered for different Kubernetes namespaces.
func NewPatcherManager ¶
func NewPatcherManager(log logr.Logger) *PatcherManager
NewPatcherManager creates a new PatcherManager.
func (*PatcherManager) GetPatcher ¶
func (pm *PatcherManager) GetPatcher(namespace string) *patcher
GetPatcher returns a patcher specific to given namespace.
func (*PatcherManager) GetPodMutator ¶
func (pm *PatcherManager) GetPodMutator() func(ctx context.Context, req webhook.AdmissionRequest) webhook.AdmissionResponse
GetPodMutator returns a handler function replacing FPGA resource names with real FPGA resources in pods.
Click to show internal directories.
Click to hide internal directories.