s3x

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

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

Package s3x for the Edgefs manager.

Index

Constants

This section is empty.

Variables

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

S3XResource represents the s3x custom resource

Functions

This section is empty.

Types

type S3XController

type S3XController struct {
	NetworkSpec rookalpha.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 rookalpha.NetworkSpec,
	dataDirHostPath string,
	dataVolumeSize resource.Quantity,
	placement rookalpha.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 added in v1.1.0

func (c *S3XController) ParentClusterChanged(cluster edgefsv1.ClusterSpec)

func (*S3XController) StartWatch

func (c *S3XController) StartWatch(stopCh chan struct{}) error

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

Jump to

Keyboard shortcuts

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