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 edgefsv1beta1.ISGW, update bool, ownerRefs []metav1.OwnerReference) error
- func (c *ISGWController) CreateService(s edgefsv1beta1.ISGW, ownerRefs []metav1.OwnerReference) error
- func (c *ISGWController) DeleteService(s edgefsv1beta1.ISGW) error
- func (c *ISGWController) StartWatch(namespace string, stopCh chan struct{}) error
- func (c *ISGWController) UpdateService(s edgefsv1beta1.ISGW, ownerRefs []metav1.OwnerReference) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ISGWResource = opkit.CustomResource{ Name: customResourceName, Plural: customResourceNamePlural, Group: edgefsv1beta1.CustomResourceGroup, Version: edgefsv1beta1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(edgefsv1beta1.ISGW{}).Name(), }
ISGWResource represents the isgw custom resource
Functions ¶
This section is empty.
Types ¶
type ISGWController ¶
type ISGWController struct {
// contains filtered or unexported fields
}
ISGWController represents a controller object for isgw custom resources
func NewISGWController ¶
func NewISGWController( context *clusterd.Context, rookImage string, hostNetwork bool, dataDirHostPath string, dataVolumeSize resource.Quantity, placement rookalpha.Placement, resources v1.ResourceRequirements, resourceProfile string, ownerRef metav1.OwnerReference, ) *ISGWController
NewISGWController create controller for watching ISGW custom resources created
func (*ISGWController) CreateOrUpdate ¶
func (c *ISGWController) CreateOrUpdate(s edgefsv1beta1.ISGW, update bool, ownerRefs []metav1.OwnerReference) error
Start the isgw instance
func (*ISGWController) CreateService ¶
func (c *ISGWController) CreateService(s edgefsv1beta1.ISGW, ownerRefs []metav1.OwnerReference) error
Start the ISGW manager
func (*ISGWController) DeleteService ¶
func (c *ISGWController) DeleteService(s edgefsv1beta1.ISGW) error
Delete ISGW service and possibly some artifacts.
func (*ISGWController) StartWatch ¶
func (c *ISGWController) StartWatch(namespace string, stopCh chan struct{}) error
StartWatch watches for instances of ISGW custom resources and acts on them
func (*ISGWController) UpdateService ¶
func (c *ISGWController) UpdateService(s edgefsv1beta1.ISGW, ownerRefs []metav1.OwnerReference) error
Click to show internal directories.
Click to hide internal directories.