utils

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

View Source
const (
	// CDILabel is the labe applied to all non operator resources
	CDILabel = "cdi.kubevirt.io"
)

Variables

View Source
var ResourcesBuiler = utils.NewResourceBuilder(commonLabels, operatorLabels)

ResourcesBuiler helps in creating k8s resources

Functions

func CreateContainer

func CreateContainer(name, image, verbosity, pullPolicy string) corev1.Container

CreateContainer creates container

func CreateDeployment

func CreateDeployment(name, matchKey, matchValue, serviceAccountName string, replicas int32, infraNodePlacement *sdkapi.NodePlacement) *appsv1.Deployment

CreateDeployment creates deployment

func CreateOperatorDeployment

func CreateOperatorDeployment(name, namespace, matchKey, matchValue, serviceAccount string, 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.

Jump to

Keyboard shortcuts

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