Documentation ¶
Index ¶
- Constants
- Variables
- func CreateContainer(name, image, verbosity, pullPolicy string) corev1.Container
- func CreateDeployment(name, matchKey, matchValue, serviceAccountName string, replicas int32, ...) *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"
)
Variables ¶
View Source
var ResourcesBuiler = utils.NewResourceBuilder(commonLabels, operatorLabels)
ResourcesBuiler helps in creating k8s resources
Functions ¶
func CreateContainer ¶
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.
Click to show internal directories.
Click to hide internal directories.