controller

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MonitoringNamespace = "MONITORING_NAMESPACE"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new VMImport Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type OperatorArgs

type OperatorArgs struct {
	OperatorVersion        string `required:"true" split_words:"true"`
	ControllerImage        string `required:"true" split_words:"true"`
	Virtv2vImage           string `required:"true" split_words:"true"`
	DeployClusterResources string `required:"true" split_words:"true"`
	PullPolicy             string `required:"true" split_words:"true"`
	Namespace              string
	MonitoringNamespace    string
	InfraNodePlacement     *sdkapi.NodePlacement
}

OperatorArgs contains the required parameters to generate all namespaced resources

type ReconcileVMImportConfig

type ReconcileVMImportConfig struct {
	// contains filtered or unexported fields
}

ReconcileVMImportConfig reconciles a VMImportConfig object

func (*ReconcileVMImportConfig) Create added in v0.2.1

Create creates empty CR

func (*ReconcileVMImportConfig) GetAllResources added in v0.2.1

func (r *ReconcileVMImportConfig) GetAllResources(cr runtime.Object) ([]runtime.Object, error)

GetAllResources provides all resources managed by the cr

func (*ReconcileVMImportConfig) GetDependantResourcesListObjects added in v0.2.1

func (r *ReconcileVMImportConfig) GetDependantResourcesListObjects() []runtime.Object

GetDependantResourcesListObjects returns resource list objects of dependant resources

func (*ReconcileVMImportConfig) IsCreating added in v0.2.1

IsCreating checks whether creation of the managed resources will be executed

func (*ReconcileVMImportConfig) Reconcile

Reconcile reads that state of the cluster for a VMImportConfig object and makes changes based on the state read and what is in the VMImportConfig.Spec

func (*ReconcileVMImportConfig) SetController added in v0.2.1

func (r *ReconcileVMImportConfig) SetController(controller controller.Controller)

SetController sets the controller dependency

func (*ReconcileVMImportConfig) Status added in v0.2.1

func (r *ReconcileVMImportConfig) Status(object runtime.Object) *sdkapi.Status

Status extracts status from the cr

Jump to

Keyboard shortcuts

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