admitters

package
v0.56.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateDuplicateDHCPPrivateOptions

func ValidateDuplicateDHCPPrivateOptions(PrivateOptions []v1.DHCPPrivateOptions) error

func ValidateVMIPresetSpec

func ValidateVMIPresetSpec(field *k8sfield.Path, spec *v1.VirtualMachineInstancePresetSpec) []metav1.StatusCause

func ValidateVMPoolSpec added in v0.49.0

func ValidateVirtualMachineInstanceMandatoryFields

func ValidateVirtualMachineInstanceMandatoryFields(field *k8sfield.Path, spec *v1.VirtualMachineInstanceSpec) []metav1.StatusCause

ValidateVirtualMachineInstanceMandatoryFields should be invoked after all defaults and presets are applied. It is only meant to be used for VMI reviews, not if they are templates on other objects

func ValidateVirtualMachineInstanceMetadata

func ValidateVirtualMachineInstanceMetadata(field *k8sfield.Path, metadata *metav1.ObjectMeta, config *virtconfig.ClusterConfig, accountName string) []metav1.StatusCause

func ValidateVirtualMachineInstanceMigrationSpec

func ValidateVirtualMachineInstanceMigrationSpec(field *k8sfield.Path, spec *v1.VirtualMachineInstanceMigrationSpec) []metav1.StatusCause

func ValidateVirtualMachineInstanceSpec

func ValidateVirtualMachineInstanceSpec(field *k8sfield.Path, spec *v1.VirtualMachineInstanceSpec, config *virtconfig.ClusterConfig) []metav1.StatusCause

func ValidateVirtualMachineSpec

func ValidateVirtualMachineSpec(field *k8sfield.Path, spec *v1.VirtualMachineSpec, config *virtconfig.ClusterConfig, accountName string) []metav1.StatusCause

Types

type CloneAuthFunc added in v0.20.0

type CloneAuthFunc func(pvcNamespace, pvcName, saNamespace, saName string) (bool, string, error)

type ClusterInstancetypeAdmitter added in v0.56.0

type ClusterInstancetypeAdmitter struct{}

func (*ClusterInstancetypeAdmitter) Admit added in v0.56.0

type ClusterPreferenceAdmitter added in v0.54.0

type ClusterPreferenceAdmitter struct{}

func (*ClusterPreferenceAdmitter) Admit added in v0.54.0

type InstancetypeAdmitter added in v0.56.0

type InstancetypeAdmitter struct{}

func (*InstancetypeAdmitter) Admit added in v0.56.0

type MigrationCreateAdmitter

type MigrationCreateAdmitter struct {
	ClusterConfig *virtconfig.ClusterConfig
	VirtClient    kubecli.KubevirtClient
}

func (*MigrationCreateAdmitter) Admit

type MigrationPolicyAdmitter added in v0.49.0

type MigrationPolicyAdmitter struct {
	Client kubecli.KubevirtClient
}

MigrationPolicyAdmitter validates VirtualMachineSnapshots

func NewMigrationPolicyAdmitter added in v0.49.0

func NewMigrationPolicyAdmitter(client kubecli.KubevirtClient) *MigrationPolicyAdmitter

NewMigrationPolicyAdmitter creates a MigrationPolicyAdmitter

func (*MigrationPolicyAdmitter) Admit added in v0.49.0

Admit validates an AdmissionReview

type MigrationUpdateAdmitter

type MigrationUpdateAdmitter struct {
}

func (*MigrationUpdateAdmitter) Admit

type PodEvictionAdmitter added in v0.34.0

type PodEvictionAdmitter struct {
	ClusterConfig *virtconfig.ClusterConfig
	VirtClient    kubecli.KubevirtClient
}

func (*PodEvictionAdmitter) Admit added in v0.34.0

type PreferenceAdmitter added in v0.54.0

type PreferenceAdmitter struct{}

func (*PreferenceAdmitter) Admit added in v0.54.0

type StatusAdmitter added in v0.33.0

type StatusAdmitter struct {
	VmsAdmitter *VMsAdmitter
}

func (*StatusAdmitter) Admit added in v0.33.0

type VMExportAdmitter added in v0.55.0

type VMExportAdmitter struct {
	Config *virtconfig.ClusterConfig
}

VMExportAdmitter validates VirtualMachineExports

func NewVMExportAdmitter added in v0.55.0

func NewVMExportAdmitter(config *virtconfig.ClusterConfig) *VMExportAdmitter

NewVMExportAdmitter creates a VMExportAdmitter

func (*VMExportAdmitter) Admit added in v0.55.0

Admit validates an AdmissionReview

type VMICreateAdmitter

type VMICreateAdmitter struct {
	ClusterConfig *virtconfig.ClusterConfig
}

func (*VMICreateAdmitter) Admit

type VMIPresetAdmitter

type VMIPresetAdmitter struct {
}

func (*VMIPresetAdmitter) Admit

type VMIRSAdmitter

type VMIRSAdmitter struct {
	ClusterConfig *virtconfig.ClusterConfig
}

func (*VMIRSAdmitter) Admit

type VMIUpdateAdmitter

type VMIUpdateAdmitter struct {
	ClusterConfig *virtconfig.ClusterConfig
}

func (*VMIUpdateAdmitter) Admit

type VMPoolAdmitter added in v0.49.0

type VMPoolAdmitter struct {
	ClusterConfig *virtconfig.ClusterConfig
}

func (*VMPoolAdmitter) Admit added in v0.49.0

type VMRestoreAdmitter added in v0.34.0

type VMRestoreAdmitter struct {
	Config            *virtconfig.ClusterConfig
	Client            kubecli.KubevirtClient
	VMRestoreInformer cache.SharedIndexInformer
}

VMRestoreAdmitter validates VirtualMachineRestores

func NewVMRestoreAdmitter added in v0.34.0

func NewVMRestoreAdmitter(config *virtconfig.ClusterConfig, client kubecli.KubevirtClient, vmRestoreInformer cache.SharedIndexInformer) *VMRestoreAdmitter

NewVMRestoreAdmitter creates a VMRestoreAdmitter

func (*VMRestoreAdmitter) Admit added in v0.34.0

Admit validates an AdmissionReview

type VMSnapshotAdmitter added in v0.31.0

type VMSnapshotAdmitter struct {
	Config *virtconfig.ClusterConfig
	Client kubecli.KubevirtClient
}

VMSnapshotAdmitter validates VirtualMachineSnapshots

func NewVMSnapshotAdmitter added in v0.31.0

func NewVMSnapshotAdmitter(config *virtconfig.ClusterConfig, client kubecli.KubevirtClient) *VMSnapshotAdmitter

NewVMSnapshotAdmitter creates a VMSnapshotAdmitter

func (*VMSnapshotAdmitter) Admit added in v0.31.0

Admit validates an AdmissionReview

type VMsAdmitter

type VMsAdmitter struct {
	VirtClient          kubecli.KubevirtClient
	DataSourceInformer  cache.SharedIndexInformer
	InstancetypeMethods instancetype.Methods
	ClusterConfig       *virtconfig.ClusterConfig
	// contains filtered or unexported fields
}

func NewVMsAdmitter added in v0.20.0

func NewVMsAdmitter(clusterConfig *virtconfig.ClusterConfig, client kubecli.KubevirtClient, informers *webhooks.Informers) *VMsAdmitter

func (*VMsAdmitter) Admit

func (*VMsAdmitter) AdmitStatus added in v0.33.0

type VirtualMachineCloneAdmitter added in v0.55.0

type VirtualMachineCloneAdmitter struct {
	Config *virtconfig.ClusterConfig
	Client kubecli.KubevirtClient
}

VirtualMachineCloneAdmitter validates VirtualMachineClones

func NewVMCloneAdmitter added in v0.55.0

func NewVMCloneAdmitter(config *virtconfig.ClusterConfig, client kubecli.KubevirtClient) *VirtualMachineCloneAdmitter

NewMigrationPolicyAdmitter creates a MigrationPolicyAdmitter

func (*VirtualMachineCloneAdmitter) Admit added in v0.55.0

Admit validates an AdmissionReview

Jump to

Keyboard shortcuts

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