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