Documentation ¶
Index ¶
- Constants
- Variables
- func AddPodPreferredDuringSchedulingIgnoredDuringExecution(name string, affinity *corev1.Affinity) *corev1.Affinity
- func CreateContainer(name, image, verbosity, pullPolicy string) corev1.Container
- func CreateDeployment(name, matchKey, matchValue, serviceAccountName string, ...) *appsv1.Deployment
- func CreateOperatorDeployment(name, namespace, matchKey, matchValue, serviceAccount string, ...) *appsv1.Deployment
- func CreatePortsContainer(name, image, pullPolicy string, ports []corev1.ContainerPort) corev1.Container
Constants ¶
View Source
const ( // CDILabel is the labe applied to all non operator resources CDILabel = "cdi.kubevirt.io" // CDIPriorityClass is the priority class for all CDI pods. CDIPriorityClass = "kubevirt-cluster-critical" )
Variables ¶
View Source
var ResourceBuilder = utils.NewResourceBuilder(commonLabels, operatorLabels)
ResourceBuilder helps in creating k8s resources
Functions ¶
func AddPodPreferredDuringSchedulingIgnoredDuringExecution ¶ added in v1.59.0
func AddPodPreferredDuringSchedulingIgnoredDuringExecution(name string, affinity *corev1.Affinity) *corev1.Affinity
AddPodPreferredDuringSchedulingIgnoredDuringExecution to affinity
func CreateContainer ¶
CreateContainer creates container
func CreateDeployment ¶
func CreateDeployment(name, matchKey, matchValue, serviceAccountName string, imagePullSecrets []corev1.LocalObjectReference, replicas int32, infraNodePlacement *sdkapi.NodePlacement) *appsv1.Deployment
CreateDeployment creates deployment
func CreateOperatorDeployment ¶
func CreateOperatorDeployment(name, namespace, matchKey, matchValue, serviceAccount string, imagePullSecrets []corev1.LocalObjectReference, numReplicas int32) *appsv1.Deployment
CreateOperatorDeployment creates operator deployment
func CreatePortsContainer ¶
func CreatePortsContainer(name, image, pullPolicy string, ports []corev1.ContainerPort) corev1.Container
CreatePortsContainer creates container with ports
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.