Documentation ¶
Overview ¶
scale-out, multi-cloud Edge-X ISGW (Inter-Segment Gateway) services controller
Package ISGW for the Edgefs manager.
Index ¶
- Variables
- type ISGWController
- func (c *ISGWController) CreateOrUpdate(s edgefsv1.ISGW, update bool, ownerRefs []metav1.OwnerReference) error
- func (c *ISGWController) CreateService(s edgefsv1.ISGW, ownerRefs []metav1.OwnerReference) error
- func (c *ISGWController) DeleteService(s edgefsv1.ISGW) error
- func (c *ISGWController) ParentClusterChanged(cluster edgefsv1.ClusterSpec)
- func (c *ISGWController) StartWatch(stopCh chan struct{}) error
- func (c *ISGWController) UpdateService(s edgefsv1.ISGW, ownerRefs []metav1.OwnerReference) error
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
Click to show internal directories.
Click to hide internal directories.