Documentation ¶
Overview ¶
* hyperv utilities are in the webhooks package because they are used both * by validation and mutation webhooks.
Index ¶
- Variables
- func GetAllowedServiceAccounts() map[string]struct{}
- func SetInformers(informers *Informers)
- func SetVirtualMachineInstanceHypervFeatureDependencies(vmi *v1.VirtualMachineInstance) error
- func ValidateVirtualMachineInstanceHypervFeatureDependencies(field *k8sfield.Path, spec *v1.VirtualMachineInstanceSpec) []metav1.StatusCause
- type HypervFeature
- type Informers
Constants ¶
This section is empty.
Variables ¶
View Source
var KubeVirtGroupVersionResource = metav1.GroupVersionResource{ Group: v1.KubeVirtGroupVersionKind.Group, Version: v1.KubeVirtGroupVersionKind.Version, Resource: "kubevirts", }
View Source
var MigrationGroupVersionResource = metav1.GroupVersionResource{ Group: v1.VirtualMachineInstanceMigrationGroupVersionKind.Group, Version: v1.VirtualMachineInstanceMigrationGroupVersionKind.Version, Resource: "virtualmachineinstancemigrations", }
View Source
var Validator = openapi.CreateOpenAPIValidator(rest.ComposeAPIDefinitions())
View Source
var VirtualMachineGroupVersionResource = metav1.GroupVersionResource{ Group: v1.VirtualMachineGroupVersionKind.Group, Version: v1.VirtualMachineGroupVersionKind.Version, Resource: "virtualmachines", }
View Source
var VirtualMachineInstanceGroupVersionResource = metav1.GroupVersionResource{ Group: v1.VirtualMachineInstanceGroupVersionKind.Group, Version: v1.VirtualMachineInstanceGroupVersionKind.Version, Resource: "virtualmachineinstances", }
View Source
var VirtualMachineInstancePresetGroupVersionResource = metav1.GroupVersionResource{ Group: v1.VirtualMachineInstancePresetGroupVersionKind.Group, Version: v1.VirtualMachineInstancePresetGroupVersionKind.Version, Resource: "virtualmachineinstancepresets", }
View Source
var VirtualMachineInstanceReplicaSetGroupVersionResource = metav1.GroupVersionResource{ Group: v1.VirtualMachineInstanceReplicaSetGroupVersionKind.Group, Version: v1.VirtualMachineInstanceReplicaSetGroupVersionKind.Version, Resource: "virtualmachineinstancereplicasets", }
Functions ¶
func GetAllowedServiceAccounts ¶ added in v0.33.0
func GetAllowedServiceAccounts() map[string]struct{}
func SetInformers ¶
func SetInformers(informers *Informers)
SetInformers created for unittest usage only
func SetVirtualMachineInstanceHypervFeatureDependencies ¶ added in v0.19.0
func SetVirtualMachineInstanceHypervFeatureDependencies(vmi *v1.VirtualMachineInstance) error
func ValidateVirtualMachineInstanceHypervFeatureDependencies ¶ added in v0.19.0
func ValidateVirtualMachineInstanceHypervFeatureDependencies(field *k8sfield.Path, spec *v1.VirtualMachineInstanceSpec) []metav1.StatusCause
Types ¶
type HypervFeature ¶ added in v0.19.0
type HypervFeature struct { State **v1.FeatureState Field *k8sfield.Path Requires *HypervFeature }
func (HypervFeature) IsRequirementFulfilled ¶ added in v0.19.0
func (hf HypervFeature) IsRequirementFulfilled() (metav1.StatusCause, bool)
func (HypervFeature) String ¶ added in v0.19.0
func (hf HypervFeature) String() string
func (HypervFeature) TryToSetRequirement ¶ added in v0.19.0
func (hf HypervFeature) TryToSetRequirement() error
a requirement is compatible if 1. it is already enabled (either by the user or by us previously) 2. the user has not set it, so we can do on its behalf
type Informers ¶
type Informers struct { VMIPresetInformer cache.SharedIndexInformer NamespaceLimitsInformer cache.SharedIndexInformer VMIInformer cache.SharedIndexInformer VMRestoreInformer cache.SharedIndexInformer }
func GetInformers ¶
func GetInformers() *Informers
Click to show internal directories.
Click to hide internal directories.