operator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ControllerName defines name of the controller
	ControllerName = "vm-import-controller"
)

Variables

This section is empty.

Functions

func CreateContainer added in v0.0.3

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

CreateContainer creates container

func CreateControllerDeployment added in v0.0.3

func CreateControllerDeployment(name, namespace, image, pullPolicy, osMapName, osMapNamespace string, numReplicas int32) *appsv1.Deployment

CreateControllerDeployment returns vmimport controller deployment

func CreateControllerRole added in v0.0.3

func CreateControllerRole() *rbacv1.ClusterRole

CreateControllerRole returns role for vm-controller-operator

func CreateControllerRoleBinding added in v0.0.3

func CreateControllerRoleBinding(namespace string) *rbacv1.ClusterRoleBinding

CreateControllerRoleBinding returns role binding for vm-import-operator

func CreateOperatorDeployment added in v0.0.3

func CreateOperatorDeployment(name, namespace, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.Deployment

CreateOperatorDeployment creates deployment

func CreateOperatorDeploymentSpec added in v0.0.3

func CreateOperatorDeploymentSpec(matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.DeploymentSpec

CreateOperatorDeploymentSpec creates deployment

func CreateResourceMapping added in v0.0.3

func CreateResourceMapping() *extv1beta1.CustomResourceDefinition

CreateResourceMapping creates the ResourceMapping CRD

func CreateServiceAccount added in v0.0.3

func CreateServiceAccount(namespace string) *corev1.ServiceAccount

CreateServiceAccount creates service account

func CreateVMImport added in v0.0.3

func CreateVMImport() *extv1beta1.CustomResourceDefinition

CreateVMImport creates the VM Import CRD

func CreateVMImportConfig added in v0.0.3

func CreateVMImportConfig() *extv1beta1.CustomResourceDefinition

CreateVMImportConfig creates the VMImportConfig CRD

func NewClusterServiceVersion

func NewClusterServiceVersion(data *ClusterServiceVersionData) (*csvv1.ClusterServiceVersion, error)

NewClusterServiceVersion creates all cluster resources fr a specific group/component

Types

type ClusterServiceVersionData

type ClusterServiceVersionData struct {
	CsvVersion         string
	ReplacesCsvVersion string
	Namespace          string
	ImagePullPolicy    string
	OperatorVersion    string
	OperatorImage      string
	ControllerImage    string
}

ClusterServiceVersionData - Data arguments used to create vm import operator's CSV manifest

Jump to

Keyboard shortcuts

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