Documentation ¶
Overview ¶
package v1beta1 contains API Schema definitions for the hco v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=hco.kubevirt.io
package v1beta1 contains API Schema definitions for the hco vbeta1 API group +k8s:deepcopy-gen=package,register +groupName=hco.kubevirt.io
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func GetWebhookCertDir() string
- func RegisterDefaults(scheme *runtime.Scheme) error
- type CertRotateConfigCA
- type CertRotateConfigServer
- type HyperConverged
- func (in *HyperConverged) DeepCopy() *HyperConverged
- func (in *HyperConverged) DeepCopyInto(out *HyperConverged)
- func (in *HyperConverged) DeepCopyObject() runtime.Object
- func (r *HyperConverged) SetupWebhookWithManager(ctx context.Context, mgr ctrl.Manager, handler WebhookHandlerIfs, ...) error
- func (r *HyperConverged) ValidateCreate() error
- func (r *HyperConverged) ValidateDelete() error
- func (r *HyperConverged) ValidateUpdate(old runtime.Object) error
- type HyperConvergedCertConfig
- type HyperConvergedConfig
- type HyperConvergedFeatureGates
- type HyperConvergedList
- type HyperConvergedObsoleteCPUs
- type HyperConvergedSpec
- type HyperConvergedStatus
- type LiveMigrationConfigurations
- type MediatedHostDevice
- type OperandResourceRequirements
- type PciHostDevice
- type PermittedHostDevices
- type StorageImportConfig
- type Version
- type Versions
- type WebhookHandlerIfs
Constants ¶
const ( // ConditionReconcileComplete communicates the status of the HyperConverged resource's // reconcile functionality. Basically, is the Reconcile function running to completion. ConditionReconcileComplete conditionsv1.ConditionType = "ReconcileComplete" // ConditionTaintedConfiguration indicates that a hidden/debug configuration // has been applied to the HyperConverged resource via a specialized annotation. // This condition is exposed only when its value is True, and is otherwise hidden. ConditionTaintedConfiguration conditionsv1.ConditionType = "TaintedConfiguration" )
const ( DefaultWebhookCertDir = "/apiserver.local.config/certificates" WebhookCertName = "apiserver.crt" WebhookKeyName = "apiserver.key" )
const HyperConvergedName = "kubevirt-hyperconverged"
HyperConvergedName is the name of the HyperConverged resource that will be reconciled
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: hcoutils.APIVersionGroup, Version: hcoutils.APIVersionBeta} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme tbd AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func GetWebhookCertDir ¶ added in v1.4.0
func GetWebhookCertDir() string
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
Types ¶
type CertRotateConfigCA ¶ added in v1.4.1
type CertRotateConfigCA struct { // The requested 'duration' (i.e. lifetime) of the Certificate. // This should comply with golang's ParseDuration format (https://golang.org/pkg/time/#ParseDuration) // +kubebuilder:default="48h0m0s" // +optional Duration metav1.Duration `json:"duration,omitempty"` // The amount of time before the currently issued certificate's `notAfter` // time that we will begin to attempt to renew the certificate. // This should comply with golang's ParseDuration format (https://golang.org/pkg/time/#ParseDuration) // +kubebuilder:default="24h0m0s" // +optional RenewBefore metav1.Duration `json:"renewBefore,omitempty"` }
CertRotateConfigCA contains the tunables for TLS certificates. +k8s:openapi-gen=true
func (*CertRotateConfigCA) DeepCopy ¶ added in v1.4.1
func (in *CertRotateConfigCA) DeepCopy() *CertRotateConfigCA
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertRotateConfigCA.
func (*CertRotateConfigCA) DeepCopyInto ¶ added in v1.4.1
func (in *CertRotateConfigCA) DeepCopyInto(out *CertRotateConfigCA)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CertRotateConfigServer ¶ added in v1.4.1
type CertRotateConfigServer struct { // The requested 'duration' (i.e. lifetime) of the Certificate. // This should comply with golang's ParseDuration format (https://golang.org/pkg/time/#ParseDuration) // +kubebuilder:default="24h0m0s" // +optional Duration metav1.Duration `json:"duration,omitempty"` // The amount of time before the currently issued certificate's `notAfter` // time that we will begin to attempt to renew the certificate. // This should comply with golang's ParseDuration format (https://golang.org/pkg/time/#ParseDuration) // +kubebuilder:default="12h0m0s" // +optional RenewBefore metav1.Duration `json:"renewBefore,omitempty"` }
CertRotateConfigServer contains the tunables for TLS certificates. +k8s:openapi-gen=true
func (*CertRotateConfigServer) DeepCopy ¶ added in v1.4.1
func (in *CertRotateConfigServer) DeepCopy() *CertRotateConfigServer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertRotateConfigServer.
func (*CertRotateConfigServer) DeepCopyInto ¶ added in v1.4.1
func (in *CertRotateConfigServer) DeepCopyInto(out *CertRotateConfigServer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HyperConverged ¶
type HyperConverged struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:default={"certConfig": {"ca": {"duration": "48h0m0s", "renewBefore": "24h0m0s"}, "server": {"duration": "24h0m0s", "renewBefore": "12h0m0s"}}, "featureGates": {"withHostPassthroughCPU": false, "sriovLiveMigration": false}, "liveMigrationConfig": {"bandwidthPerMigration": "64Mi", "completionTimeoutPerGiB": 800, "parallelMigrationsPerCluster": 5, "parallelOutboundMigrationsPerNode": 2, "progressTimeout": 150}} // +optional Spec HyperConvergedSpec `json:"spec,omitempty"` Status HyperConvergedStatus `json:"status,omitempty"` }
HyperConverged is the Schema for the hyperconvergeds API +k8s:openapi-gen=true +kubebuilder:storageversion +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` +kubebuilder:resource:scope=Namespaced,categories={all},shortName={hco,hcos} +kubebuilder:subresource:status
func (*HyperConverged) DeepCopy ¶
func (in *HyperConverged) DeepCopy() *HyperConverged
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HyperConverged.
func (*HyperConverged) DeepCopyInto ¶
func (in *HyperConverged) DeepCopyInto(out *HyperConverged)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HyperConverged) DeepCopyObject ¶
func (in *HyperConverged) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*HyperConverged) SetupWebhookWithManager ¶
func (r *HyperConverged) SetupWebhookWithManager(ctx context.Context, mgr ctrl.Manager, handler WebhookHandlerIfs, isOpenshift bool) error
func (*HyperConverged) ValidateCreate ¶
func (r *HyperConverged) ValidateCreate() error
func (*HyperConverged) ValidateDelete ¶
func (r *HyperConverged) ValidateDelete() error
func (*HyperConverged) ValidateUpdate ¶
func (r *HyperConverged) ValidateUpdate(old runtime.Object) error
type HyperConvergedCertConfig ¶ added in v1.4.0
type HyperConvergedCertConfig struct { // CA configuration - // CA certs are kept in the CA bundle as long as they are valid // +kubebuilder:default={"duration": "48h0m0s", "renewBefore": "24h0m0s"} // +optional CA CertRotateConfigCA `json:"ca,omitempty"` // Server configuration - // Certs are rotated and discarded // +kubebuilder:default={"duration": "24h0m0s", "renewBefore": "12h0m0s"} // +optional Server CertRotateConfigServer `json:"server,omitempty"` }
HyperConvergedCertConfig holds the CertConfig entries for the HCO operands +k8s:openapi-gen=true
func (*HyperConvergedCertConfig) DeepCopy ¶ added in v1.4.1
func (in *HyperConvergedCertConfig) DeepCopy() *HyperConvergedCertConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HyperConvergedCertConfig.
func (*HyperConvergedCertConfig) DeepCopyInto ¶ added in v1.4.1
func (in *HyperConvergedCertConfig) DeepCopyInto(out *HyperConvergedCertConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HyperConvergedConfig ¶
type HyperConvergedConfig struct { // NodePlacement describes node scheduling configuration. // +optional NodePlacement *sdkapi.NodePlacement `json:"nodePlacement,omitempty"` }
HyperConvergedConfig defines a set of configurations to pass to components
func (*HyperConvergedConfig) DeepCopy ¶
func (in *HyperConvergedConfig) DeepCopy() *HyperConvergedConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HyperConvergedConfig.
func (*HyperConvergedConfig) DeepCopyInto ¶
func (in *HyperConvergedConfig) DeepCopyInto(out *HyperConvergedConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HyperConvergedFeatureGates ¶ added in v1.3.0
type HyperConvergedFeatureGates struct { // Allow migrating a virtual machine with CPU host-passthrough mode. This should be // enabled only when the Cluster is homogeneous from CPU HW perspective doc here // +optional // +kubebuilder:default=false WithHostPassthroughCPU bool `json:"withHostPassthroughCPU"` // Allow migrating a virtual machine with SRIOV interfaces. // When enabled virt-launcher pods of virtual machines with SRIOV // interfaces run with CAP_SYS_RESOURCE capability. // This may degrade virt-launcher security. // +optional // +kubebuilder:default=false SRIOVLiveMigration bool `json:"sriovLiveMigration"` }
HyperConvergedFeatureGates is a set of optional feature gates to enable or disable new features that are not enabled by default yet. +k8s:openapi-gen=true
func (*HyperConvergedFeatureGates) DeepCopy ¶ added in v1.3.0
func (in *HyperConvergedFeatureGates) DeepCopy() *HyperConvergedFeatureGates
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HyperConvergedFeatureGates.
func (*HyperConvergedFeatureGates) DeepCopyInto ¶ added in v1.3.0
func (in *HyperConvergedFeatureGates) DeepCopyInto(out *HyperConvergedFeatureGates)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HyperConvergedList ¶
type HyperConvergedList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []HyperConverged `json:"items"` }
HyperConvergedList contains a list of HyperConverged
func (*HyperConvergedList) DeepCopy ¶
func (in *HyperConvergedList) DeepCopy() *HyperConvergedList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HyperConvergedList.
func (*HyperConvergedList) DeepCopyInto ¶
func (in *HyperConvergedList) DeepCopyInto(out *HyperConvergedList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HyperConvergedList) DeepCopyObject ¶
func (in *HyperConvergedList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HyperConvergedObsoleteCPUs ¶ added in v1.4.1
type HyperConvergedObsoleteCPUs struct { // MinCPUModel is the Minimum CPU model that is used for basic CPU features; e.g. Penryn or Haswell. // The default value for this field is nil, but in KubeVirt, the default value is "Penryn", if nothing else is set. // Use this field to override KubeVirt default value. // +optional MinCPUModel string `json:"minCPUModel,omitempty"` // CPUModels is a list of obsolete CPU models. When the node-labeller obtains the list of obsolete CPU models, it // eliminates those CPU models and creates labels for valid CPU models. // The default values for this field is nil, however, HCO uses opinionated values, and adding values to this list // will add them to the opinionated values. // +optional CPUModels []string `json:"cpuModels,omitempty"` }
HyperConvergedObsoleteCPUs allows avoiding scheduling of VMs for obsolete CPU models +k8s:openapi-gen=true
func (*HyperConvergedObsoleteCPUs) DeepCopy ¶ added in v1.4.1
func (in *HyperConvergedObsoleteCPUs) DeepCopy() *HyperConvergedObsoleteCPUs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HyperConvergedObsoleteCPUs.
func (*HyperConvergedObsoleteCPUs) DeepCopyInto ¶ added in v1.4.1
func (in *HyperConvergedObsoleteCPUs) DeepCopyInto(out *HyperConvergedObsoleteCPUs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HyperConvergedSpec ¶
type HyperConvergedSpec struct { // LocalStorageClassName the name of the local storage class. LocalStorageClassName string `json:"localStorageClassName,omitempty"` // infra HyperConvergedConfig influences the pod configuration (currently only placement) // for all the infra components needed on the virtualization enabled cluster // but not necessarely directly on each node running VMs/VMIs. // +optional Infra HyperConvergedConfig `json:"infra,omitempty"` // workloads HyperConvergedConfig influences the pod configuration (currently only placement) of components // which need to be running on a node where virtualization workloads should be able to run. // Changes to Workloads HyperConvergedConfig can be applied only without existing workload. // +optional Workloads HyperConvergedConfig `json:"workloads,omitempty"` // featureGates is a map of feature gate flags. Setting a flag to `true` will enable // the feature. Setting `false` or removing the feature gate, disables the feature. // +kubebuilder:default={"withHostPassthroughCPU": false, "sriovLiveMigration": false} // +optional FeatureGates HyperConvergedFeatureGates `json:"featureGates,omitempty"` // Live migration limits and timeouts are applied so that migration processes do not // overwhelm the cluster. // +kubebuilder:default={"bandwidthPerMigration": "64Mi", "completionTimeoutPerGiB": 800, "parallelMigrationsPerCluster": 5, "parallelOutboundMigrationsPerNode": 2, "progressTimeout": 150} // +optional LiveMigrationConfig LiveMigrationConfigurations `json:"liveMigrationConfig,omitempty"` // PermittedHostDevices holds information about devices allowed for passthrough // +optional PermittedHostDevices *PermittedHostDevices `json:"permittedHostDevices,omitempty"` // certConfig holds the rotation policy for internal, self-signed certificates // +kubebuilder:default={"ca": {"duration": "48h0m0s", "renewBefore": "24h0m0s"}, "server": {"duration": "24h0m0s", "renewBefore": "12h0m0s"}} // +optional CertConfig HyperConvergedCertConfig `json:"certConfig,omitempty"` // ResourceRequirements describes the resource requirements for the operand workloads. // +optional ResourceRequirements *OperandResourceRequirements `json:"resourceRequirements,omitempty"` // Override the storage class used for scratch space during transfer operations. The scratch space storage class // is determined in the following order: // value of scratchSpaceStorageClass, if that doesn't exist, use the default storage class, if there is no default // storage class, use the storage class of the DataVolume, if no storage class specified, use no storage class for // scratch space // +optional ScratchSpaceStorageClass *string `json:"scratchSpaceStorageClass,omitempty"` // VDDK Init Image eventually used to import VMs from external providers // +optional VddkInitImage *string `json:"vddkInitImage,omitempty"` // ObsoleteCPUs allows avoiding scheduling of VMs for obsolete CPU models // +optional ObsoleteCPUs *HyperConvergedObsoleteCPUs `json:"obsoleteCPUs,omitempty"` // StorageImport contains configuration for importing containerized data // +optional StorageImport *StorageImportConfig `json:"storageImport,omitempty"` // operator version // +optional Version string `json:"version,omitempty"` }
HyperConvergedSpec defines the desired state of HyperConverged +k8s:openapi-gen=true
func (*HyperConvergedSpec) DeepCopy ¶
func (in *HyperConvergedSpec) DeepCopy() *HyperConvergedSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HyperConvergedSpec.
func (*HyperConvergedSpec) DeepCopyInto ¶
func (in *HyperConvergedSpec) DeepCopyInto(out *HyperConvergedSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HyperConvergedStatus ¶
type HyperConvergedStatus struct { // Conditions describes the state of the HyperConverged resource. // +patchMergeKey=type // +patchStrategy=merge // +optional Conditions []conditionsv1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` // RelatedObjects is a list of objects created and maintained by this // operator. Object references will be added to this list after they have // been created AND found in the cluster. // +optional RelatedObjects []corev1.ObjectReference `json:"relatedObjects,omitempty"` // Versions is a list of HCO component versions, as name/version pairs. The version with a name of "operator" // is the HCO version itself, as described here: // https://github.com/openshift/cluster-version-operator/blob/master/docs/dev/clusteroperator.md#version // +optional Versions Versions `json:"versions,omitempty"` }
HyperConvergedStatus defines the observed state of HyperConverged +k8s:openapi-gen=true
func (*HyperConvergedStatus) DeepCopy ¶
func (in *HyperConvergedStatus) DeepCopy() *HyperConvergedStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HyperConvergedStatus.
func (*HyperConvergedStatus) DeepCopyInto ¶
func (in *HyperConvergedStatus) DeepCopyInto(out *HyperConvergedStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HyperConvergedStatus) GetVersion ¶
func (hcs *HyperConvergedStatus) GetVersion(name string) (string, bool)
func (*HyperConvergedStatus) UpdateVersion ¶
func (hcs *HyperConvergedStatus) UpdateVersion(name, version string)
type LiveMigrationConfigurations ¶ added in v1.4.0
type LiveMigrationConfigurations struct { // Number of migrations running in parallel in the cluster. // +optional // +kubebuilder:default=5 ParallelMigrationsPerCluster *uint32 `json:"parallelMigrationsPerCluster,omitempty"` // Maximum number of outbound migrations per node. // +optional // +kubebuilder:default=2 ParallelOutboundMigrationsPerNode *uint32 `json:"parallelOutboundMigrationsPerNode,omitempty"` // Bandwidth limit of each migration, in MiB/s. // +optional // +kubebuilder:default="64Mi" // +kubebuilder:validation:Pattern=^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ BandwidthPerMigration *string `json:"bandwidthPerMigration,omitempty"` // The migration will be canceled if it has not completed in this time, in seconds per GiB // of memory. For example, a virtual machine instance with 6GiB memory will timeout if it has not completed // migration in 4800 seconds. If the Migration Method is BlockMigration, the size of the migrating disks is included // in the calculation. // +kubebuilder:default=800 // +optional CompletionTimeoutPerGiB *int64 `json:"completionTimeoutPerGiB,omitempty"` // The migration will be canceled if memory copy fails to make progress in this time, in seconds. // +kubebuilder:default=150 // +optional ProgressTimeout *int64 `json:"progressTimeout,omitempty"` }
LiveMigrationConfigurations - Live migration limits and timeouts are applied so that migration processes do not overwhelm the cluster. +k8s:openapi-gen=true
func (*LiveMigrationConfigurations) DeepCopy ¶ added in v1.4.0
func (in *LiveMigrationConfigurations) DeepCopy() *LiveMigrationConfigurations
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LiveMigrationConfigurations.
func (*LiveMigrationConfigurations) DeepCopyInto ¶ added in v1.4.0
func (in *LiveMigrationConfigurations) DeepCopyInto(out *LiveMigrationConfigurations)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MediatedHostDevice ¶ added in v1.4.0
type MediatedHostDevice struct { // name of a mediated device type required to identify a mediated device on a host MDEVNameSelector string `json:"mdevNameSelector"` // name by which a device is advertised and being requested ResourceName string `json:"resourceName"` // indicates that this resource is being provided by an external device plugin // +optional ExternalResourceProvider bool `json:"externalResourceProvider,omitempty"` // HCO enforces the existence of several MediatedHostDevice objects. Set disabled field to true instead of remove // these objects. // +optional Disabled bool `json:"disabled,omitempty"` }
MediatedHostDevice represents a host mediated device allowed for passthrough +k8s:openapi-gen=true
func (*MediatedHostDevice) DeepCopy ¶ added in v1.4.0
func (in *MediatedHostDevice) DeepCopy() *MediatedHostDevice
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MediatedHostDevice.
func (*MediatedHostDevice) DeepCopyInto ¶ added in v1.4.0
func (in *MediatedHostDevice) DeepCopyInto(out *MediatedHostDevice)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OperandResourceRequirements ¶ added in v1.4.1
type OperandResourceRequirements struct { // StorageWorkloads defines the resources requirements for storage workloads. It will propagate to the CDI custom // resource // +optional StorageWorkloads *corev1.ResourceRequirements `json:"storageWorkloads,omitempty"` }
OperandResourceRequirements is a list of resource requirements for the operand workloads pods +k8s:openapi-gen=true
func (*OperandResourceRequirements) DeepCopy ¶ added in v1.4.1
func (in *OperandResourceRequirements) DeepCopy() *OperandResourceRequirements
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperandResourceRequirements.
func (*OperandResourceRequirements) DeepCopyInto ¶ added in v1.4.1
func (in *OperandResourceRequirements) DeepCopyInto(out *OperandResourceRequirements)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PciHostDevice ¶ added in v1.4.0
type PciHostDevice struct { // a combination of a vendor_id:product_id required to identify a PCI device on a host. PCIDeviceSelector string `json:"pciDeviceSelector"` // name by which a device is advertised and being requested ResourceName string `json:"resourceName"` // indicates that this resource is being provided by an external device plugin // +optional ExternalResourceProvider bool `json:"externalResourceProvider,omitempty"` // HCO enforces the existence of several PciHostDevice objects. Set disabled field to true instead of remove // these objects. // +optional Disabled bool `json:"disabled,omitempty"` }
PciHostDevice represents a host PCI device allowed for passthrough +k8s:openapi-gen=true
func (*PciHostDevice) DeepCopy ¶ added in v1.4.0
func (in *PciHostDevice) DeepCopy() *PciHostDevice
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PciHostDevice.
func (*PciHostDevice) DeepCopyInto ¶ added in v1.4.0
func (in *PciHostDevice) DeepCopyInto(out *PciHostDevice)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PermittedHostDevices ¶ added in v1.4.0
type PermittedHostDevices struct { // +listType=map // +listMapKey=pciDeviceSelector PciHostDevices []PciHostDevice `json:"pciHostDevices,omitempty"` // +listType=map // +listMapKey=mdevNameSelector MediatedDevices []MediatedHostDevice `json:"mediatedDevices,omitempty"` }
PermittedHostDevices holds information about devices allowed for passthrough +k8s:openapi-gen=true
func (*PermittedHostDevices) DeepCopy ¶ added in v1.4.0
func (in *PermittedHostDevices) DeepCopy() *PermittedHostDevices
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PermittedHostDevices.
func (*PermittedHostDevices) DeepCopyInto ¶ added in v1.4.0
func (in *PermittedHostDevices) DeepCopyInto(out *PermittedHostDevices)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageImportConfig ¶ added in v1.4.1
type StorageImportConfig struct { // InsecureRegistries is a list of image registries URLs that are not secured. Setting an insecure registry URL // in this list allows pulling images from this registry. // +optional InsecureRegistries []string `json:"insecureRegistries,omitempty"` }
StorageImportConfig contains configuration for importing containerized data +k8s:openapi-gen=true
func (*StorageImportConfig) DeepCopy ¶ added in v1.4.1
func (in *StorageImportConfig) DeepCopy() *StorageImportConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageImportConfig.
func (*StorageImportConfig) DeepCopyInto ¶ added in v1.4.1
func (in *StorageImportConfig) DeepCopyInto(out *StorageImportConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Version ¶
type Version struct { Name string `json:"name,omitempty"` Version string `json:"version,omitempty"` }
func (*Version) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Version.
func (*Version) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Versions ¶
type Versions []Version
func (Versions) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Versions.
func (Versions) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookHandlerIfs ¶ added in v1.3.0
type WebhookHandlerIfs interface { Init(logger logr.Logger, cli client.Client, namespace string, isOpenshift bool) ValidateCreate(hc *HyperConverged) error ValidateUpdate(requested *HyperConverged, exists *HyperConverged) error ValidateDelete(hc *HyperConverged) error HandleMutatingNsDelete(ns *corev1.Namespace, dryRun bool) (bool, error) }