isgw

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

scale-out, multi-cloud Edge-X ISGW (Inter-Segment Gateway) services controller

Package ISGW for the Edgefs manager.

Index

Constants

This section is empty.

Variables

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

ISGWResource represents the isgw custom resource

Functions

This section is empty.

Types

type ISGWController

type ISGWController struct {
	NetworkSpec rookalpha.NetworkSpec
	// contains filtered or unexported fields
}

ISGWController represents a controller object for isgw custom resources

func NewISGWController

func NewISGWController(
	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,
) *ISGWController

NewISGWController create controller for watching ISGW custom resources created

func (*ISGWController) CreateOrUpdate

func (c *ISGWController) CreateOrUpdate(s edgefsv1.ISGW, update bool, ownerRefs []metav1.OwnerReference) error

Start the isgw instance

func (*ISGWController) CreateService

func (c *ISGWController) CreateService(s edgefsv1.ISGW, ownerRefs []metav1.OwnerReference) error

Start the ISGW manager

func (*ISGWController) DeleteService

func (c *ISGWController) DeleteService(s edgefsv1.ISGW) error

Delete ISGW service and possibly some artifacts.

func (*ISGWController) ParentClusterChanged added in v1.1.0

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

func (*ISGWController) StartWatch

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

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

func (*ISGWController) UpdateService

func (c *ISGWController) UpdateService(s edgefsv1.ISGW, ownerRefs []metav1.OwnerReference) error

Jump to

Keyboard shortcuts

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