Documentation
¶
Index ¶
Constants ¶
View Source
const (
PCIClaimByVM = "harvesterhci.io/pciclaim-by-vnname"
)
View Source
const (
VMLabel = "harvesterhci.io/vmName"
)
Variables ¶
View Source
var (
MutatorName = "pcidevices-mutator"
)
Functions ¶
func NewPodMutator ¶
func NewPodMutator(cache v1beta1.PCIDeviceClaimCache) types.Mutator
func RegisterIndexers ¶
func RegisterIndexers(clients *Clients)
Types ¶
type AdmissionWebhookServer ¶
type AdmissionWebhookServer struct {
// contains filtered or unexported fields
}
AdmissionWebhookServer serves the mutating webhook for pcidevices
func New ¶
func New(ctx context.Context, restConfig *rest.Config) *AdmissionWebhookServer
New helps initialise a new AdmissionWebhookServer
func (*AdmissionWebhookServer) ListenAndServe ¶
func (s *AdmissionWebhookServer) ListenAndServe() error
ListenAndServe starts the http listener and handlers
type Clients ¶
type Clients struct {
clients.Clients
CoreFactory *ctlcore.Factory
HarvesterFactory *ctlharvesterv1.Factory
KubevirtFactory *ctlkubevirtv1.Factory
PCIFactory *ctlpcidevices.Factory
}
Click to show internal directories.
Click to hide internal directories.