iscsi

package
v0.0.0-...-1ea1cc7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

scale-out, multi-cloud Edge-X ISCSI services controller

Package ISCSI for the Edgefs manager.

Index

Constants

This section is empty.

Variables

View Source
var ISCSIResource = opkit.CustomResource{
	Name:    customResourceName,
	Plural:  customResourceNamePlural,
	Group:   edgefsv1alpha1.CustomResourceGroup,
	Version: edgefsv1alpha1.Version,
	Scope:   apiextensionsv1beta1.NamespaceScoped,
	Kind:    reflect.TypeOf(edgefsv1alpha1.ISCSI{}).Name(),
}

ISCSIResource represents the iscsi custom resource

Functions

This section is empty.

Types

type ISCSIController

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

ISCSIController represents a controller object for iscsi custom resources

func NewISCSIController

func NewISCSIController(
	context *clusterd.Context, rookImage string,
	hostNetwork bool,
	dataDirHostPath string,
	dataVolumeSize resource.Quantity,
	placement rookalpha.Placement,
	resources v1.ResourceRequirements,
	ownerRef metav1.OwnerReference,
) *ISCSIController

NewISCSIController create controller for watching ISCSI custom resources created

func (*ISCSIController) CreateOrUpdate

func (c *ISCSIController) CreateOrUpdate(s edgefsv1alpha1.ISCSI, update bool, ownerRefs []metav1.OwnerReference) error

Start the iscsi instance

func (*ISCSIController) CreateService

func (c *ISCSIController) CreateService(s edgefsv1alpha1.ISCSI, ownerRefs []metav1.OwnerReference) error

Start the ISCSI manager

func (*ISCSIController) DeleteService

func (c *ISCSIController) DeleteService(s edgefsv1alpha1.ISCSI) error

Delete ISCSI service and possibly some artifacts.

func (*ISCSIController) StartWatch

func (c *ISCSIController) StartWatch(namespace string, stopCh chan struct{}) error

StartWatch watches for instances of ISCSI custom resources and acts on them

func (*ISCSIController) UpdateService

func (c *ISCSIController) UpdateService(s edgefsv1alpha1.ISCSI, ownerRefs []metav1.OwnerReference) error

Jump to

Keyboard shortcuts

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