Documentation ¶
Overview ¶
scale-out, multi-cloud Edge-X S3 services controller
Package s3x for the Edgefs manager.
Index ¶
- Variables
- type S3XController
- func (c *S3XController) CreateOrUpdate(s edgefsv1.S3X, update bool, ownerRefs []metav1.OwnerReference) error
- func (c *S3XController) CreateService(s edgefsv1.S3X, ownerRefs []metav1.OwnerReference) error
- func (c *S3XController) DeleteService(s edgefsv1.S3X) error
- func (c *S3XController) ParentClusterChanged(cluster edgefsv1.ClusterSpec)
- func (c *S3XController) StartWatch(stopCh chan struct{})
- func (c *S3XController) UpdateService(s edgefsv1.S3X, ownerRefs []metav1.OwnerReference) error
Constants ¶
This section is empty.
Variables ¶
View Source
var S3XResource = k8sutil.CustomResource{ Name: customResourceName, Plural: customResourceNamePlural, Group: edgefsv1.CustomResourceGroup, Version: edgefsv1.Version, Kind: reflect.TypeOf(edgefsv1.S3X{}).Name(), }
S3XResource represents the s3x custom resource
Functions ¶
This section is empty.
Types ¶
type S3XController ¶
type S3XController struct { NetworkSpec rookv1.NetworkSpec // contains filtered or unexported fields }
S3XController represents a controller object for s3x custom resources
func NewS3XController ¶
func NewS3XController( 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, ) *S3XController
NewS3XController create controller for watching S3X custom resources created
func (*S3XController) CreateOrUpdate ¶
func (c *S3XController) CreateOrUpdate(s edgefsv1.S3X, update bool, ownerRefs []metav1.OwnerReference) error
Start the s3x instance
func (*S3XController) CreateService ¶
func (c *S3XController) CreateService(s edgefsv1.S3X, ownerRefs []metav1.OwnerReference) error
Start the rgw manager
func (*S3XController) DeleteService ¶
func (c *S3XController) DeleteService(s edgefsv1.S3X) error
Delete S3X service and possibly some artifacts.
func (*S3XController) ParentClusterChanged ¶
func (c *S3XController) ParentClusterChanged(cluster edgefsv1.ClusterSpec)
func (*S3XController) StartWatch ¶
func (c *S3XController) StartWatch(stopCh chan struct{})
StartWatch watches for instances of S3X custom resources and acts on them
func (*S3XController) UpdateService ¶
func (c *S3XController) UpdateService(s edgefsv1.S3X, ownerRefs []metav1.OwnerReference) error
Click to show internal directories.
Click to hide internal directories.