Documentation
¶
Overview ¶
Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright 2021 *
Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright 2021 *
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright 2019 Red Hat, Inc. *
Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright the KubeVirt Authors. *
Index ¶
- func IsARM64(vmiSpec *v1.VirtualMachineInstanceSpec) bool
- func IsS390X(vmiSpec *v1.VirtualMachineInstanceSpec) bool
- func SetAmd64Defaults(spec *v1.VirtualMachineInstanceSpec)
- func SetArm64Defaults(spec *v1.VirtualMachineInstanceSpec)
- func SetDefaultGuestCPUTopology(clusterConfig *virtconfig.ClusterConfig, spec *v1.VirtualMachineInstanceSpec)
- func SetDefaultVirtualMachineInstance(clusterConfig *virtconfig.ClusterConfig, vmi *v1.VirtualMachineInstance) error
- func SetDefaultVirtualMachineInstanceSpec(clusterConfig *virtconfig.ClusterConfig, spec *v1.VirtualMachineInstanceSpec) error
- func SetHypervFeatureDependencies(spec *v1.VirtualMachineInstanceSpec) error
- func SetS390xDefaults(spec *v1.VirtualMachineInstanceSpec)
- func SetVirtualMachineDefaults(vm *v1.VirtualMachine, clusterConfig *virtconfig.ClusterConfig, ...)
- type HypervFeature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsARM64 ¶
func IsARM64(vmiSpec *v1.VirtualMachineInstanceSpec) bool
func IsS390X ¶
func IsS390X(vmiSpec *v1.VirtualMachineInstanceSpec) bool
func SetAmd64Defaults ¶
func SetAmd64Defaults(spec *v1.VirtualMachineInstanceSpec)
SetAmd64Defaults is mutating function for mutating-webhook
func SetArm64Defaults ¶
func SetArm64Defaults(spec *v1.VirtualMachineInstanceSpec)
SetArm64Defaults is mutating function for mutating-webhook
func SetDefaultGuestCPUTopology ¶
func SetDefaultGuestCPUTopology(clusterConfig *virtconfig.ClusterConfig, spec *v1.VirtualMachineInstanceSpec)
func SetDefaultVirtualMachineInstance ¶
func SetDefaultVirtualMachineInstance(clusterConfig *virtconfig.ClusterConfig, vmi *v1.VirtualMachineInstance) error
func SetDefaultVirtualMachineInstanceSpec ¶
func SetDefaultVirtualMachineInstanceSpec(clusterConfig *virtconfig.ClusterConfig, spec *v1.VirtualMachineInstanceSpec) error
func SetHypervFeatureDependencies ¶
func SetHypervFeatureDependencies(spec *v1.VirtualMachineInstanceSpec) error
func SetS390xDefaults ¶
func SetS390xDefaults(spec *v1.VirtualMachineInstanceSpec)
SetS390xDefaults is mutating function for mutating-webhook
func SetVirtualMachineDefaults ¶
func SetVirtualMachineDefaults(vm *v1.VirtualMachine, clusterConfig *virtconfig.ClusterConfig, preferenceSpec *instancetypev1beta1.VirtualMachinePreferenceSpec)
Types ¶
type HypervFeature ¶
type HypervFeature struct { State **v1.FeatureState Field *k8sfield.Path Requires *HypervFeature }
func (HypervFeature) IsRequirementFulfilled ¶
func (hf HypervFeature) IsRequirementFulfilled() (metav1.StatusCause, bool)
func (HypervFeature) String ¶
func (hf HypervFeature) String() string
func (HypervFeature) TryToSetRequirement ¶
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