patcher

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

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.

Jump to

Keyboard shortcuts

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