Documentation ¶
Overview ¶
scale-out, multi-cloud Edge-X ISCSI services controller
Package ISCSI for the Edgefs manager.
Index ¶
- Variables
- type ISCSIController
- func (c *ISCSIController) CreateOrUpdate(s edgefsv1.ISCSI, update bool, ownerRefs []metav1.OwnerReference) error
- func (c *ISCSIController) CreateService(s edgefsv1.ISCSI, ownerRefs []metav1.OwnerReference) error
- func (c *ISCSIController) DeleteService(s edgefsv1.ISCSI) error
- func (c *ISCSIController) ParentClusterChanged(cluster edgefsv1.ClusterSpec)
- func (c *ISCSIController) StartWatch(stopCh chan struct{}) error
- func (c *ISCSIController) UpdateService(s edgefsv1.ISCSI, ownerRefs []metav1.OwnerReference) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ISCSIResource = opkit.CustomResource{ Name: customResourceName, Plural: customResourceNamePlural, Group: edgefsv1.CustomResourceGroup, Version: edgefsv1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(edgefsv1.ISCSI{}).Name(), }
ISCSIResource represents the iscsi custom resource
Functions ¶
This section is empty.
Types ¶
type ISCSIController ¶
type ISCSIController struct { NetworkSpec rookalpha.NetworkSpec // contains filtered or unexported fields }
ISCSIController represents a controller object for iscsi custom resources
func NewISCSIController ¶
func NewISCSIController( context *clusterd.Context, namespace string, rookImage string, NetworkSpec rookalpha.NetworkSpec, dataDirHostPath string, dataVolumeSize resource.Quantity, placement rookalpha.Placement, resources v1.ResourceRequirements, resourceProfile string, ownerRef metav1.OwnerReference, useHostLocalTime bool, ) *ISCSIController
NewISCSIController create controller for watching ISCSI custom resources created
func (*ISCSIController) CreateOrUpdate ¶
func (c *ISCSIController) CreateOrUpdate(s edgefsv1.ISCSI, update bool, ownerRefs []metav1.OwnerReference) error
Start the iscsi instance
func (*ISCSIController) CreateService ¶
func (c *ISCSIController) CreateService(s edgefsv1.ISCSI, ownerRefs []metav1.OwnerReference) error
Start the ISCSI manager
func (*ISCSIController) DeleteService ¶
func (c *ISCSIController) DeleteService(s edgefsv1.ISCSI) error
Delete ISCSI service and possibly some artifacts.
func (*ISCSIController) ParentClusterChanged ¶ added in v1.1.0
func (c *ISCSIController) ParentClusterChanged(cluster edgefsv1.ClusterSpec)
func (*ISCSIController) StartWatch ¶
func (c *ISCSIController) StartWatch(stopCh chan struct{}) error
StartWatch watches for instances of ISCSI custom resources and acts on them
func (*ISCSIController) UpdateService ¶
func (c *ISCSIController) UpdateService(s edgefsv1.ISCSI, ownerRefs []metav1.OwnerReference) error
Click to show internal directories.
Click to hide internal directories.