Documentation
¶
Index ¶
- Constants
- func CreateContainer(name, image, verbosity string, pullPolicy corev1.PullPolicy) corev1.Container
- func CreateDeployment(name, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.Deployment
- func CreateOperatorDeployment(name, namespace, matchKey, matchValue, serviceAccount string, ...) *appsv1.Deployment
- func CreateOperatorDeploymentSpec(name, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.DeploymentSpec
- func CreateOperatorServiceAccount(name, namespace string) *corev1.ServiceAccount
- func CreatePortsContainer(name, image, verbosity string, pullPolicy corev1.PullPolicy, ...) corev1.Container
- func CreateRole(name string) *rbacv1.Role
- func CreateRoleBinding(name, roleRef, serviceAccount, serviceAccountNamespace string) *rbacv1.RoleBinding
- func CreateService(name, matchKey, matchValue string) *corev1.Service
- func CreateServiceAccount(name string) *corev1.ServiceAccount
- func ValidateGVKs(objects []runtime.Object)
- func WithCommonLabels(labels map[string]string) map[string]string
- func WithOperatorLabels(labels map[string]string) map[string]string
Constants ¶
View Source
const ( // SCCAnnotation is the annotation listing SCCs for a SA SCCAnnotation = "cdi-scc" // CDILabel is the labe applied to all non operator resources CDILabel = "cdi.kubevirt.io" )
Variables ¶
This section is empty.
Functions ¶
func CreateContainer ¶
func CreateContainer(name, image, verbosity string, pullPolicy corev1.PullPolicy) corev1.Container
CreateContainer creates container
func CreateDeployment ¶
func CreateDeployment(name, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.Deployment
CreateDeployment creates deployment
func CreateOperatorDeployment ¶
func CreateOperatorDeployment(name, namespace, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.Deployment
CreateOperatorDeployment creates deployment
func CreateOperatorDeploymentSpec ¶
func CreateOperatorDeploymentSpec(name, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.DeploymentSpec
CreateOperatorDeploymentSpec creates deployment
func CreateOperatorServiceAccount ¶ added in v1.12.0
func CreateOperatorServiceAccount(name, namespace string) *corev1.ServiceAccount
CreateOperatorServiceAccount creates service account
func CreatePortsContainer ¶
func CreatePortsContainer(name, image, verbosity string, pullPolicy corev1.PullPolicy, ports *[]corev1.ContainerPort) corev1.Container
CreatePortsContainer creates container
func CreateRoleBinding ¶
func CreateRoleBinding(name, roleRef, serviceAccount, serviceAccountNamespace string) *rbacv1.RoleBinding
CreateRoleBinding creates role binding
func CreateService ¶
CreateService creates service
func CreateServiceAccount ¶
func CreateServiceAccount(name string) *corev1.ServiceAccount
CreateServiceAccount creates service account
func ValidateGVKs ¶ added in v1.10.3
ValidateGVKs makes sure all resources have initialized GVKs
func WithCommonLabels ¶
WithCommonLabels aggregates common lables
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.