Documentation
¶
Overview ¶
Package resourcetopology defines to reconcile action of resources topologies
Package resourcetopology defines to reconcile action of resources topologies ¶
Package resourcetopology defines to reconcile action of resources topologies ¶
Package resourcetopology defines to reconcile action of resources topologies ¶
Package resourcetopology defines to reconcile action of resources topologies ¶
Package resourcetopology defines to reconcile action of resources topologies ¶
Package resourcetopology defines to reconcile action of resources topologies
Index ¶
- type Controller
- func (ctrl *Controller) CmiCreateLabel(ctx context.Context, params *cmi.Params) error
- func (ctrl *Controller) CmiDeleteLabel(ctx context.Context, params *cmi.Params) error
- func (ctrl *Controller) Run(ctx context.Context, workers int, stopCh <-chan struct{})
- func (ctrl *Controller) UpdateResourceTopologiesStatus(ctx context.Context, resourceTopologyCopy *apiXuanwuV1.ResourceTopology) (*apiXuanwuV1.ResourceTopology, error)
- type ControllerRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller defines the resourceTopology controller parameters
func NewController ¶
func NewController(request ControllerRequest) *Controller
NewController return a new ResourceTopologyController
func (*Controller) CmiCreateLabel ¶
CmiCreateLabel create label by cmi grpc connection
func (*Controller) CmiDeleteLabel ¶
CmiDeleteLabel delete label by cmi grpc connection
func (*Controller) Run ¶
func (ctrl *Controller) Run(ctx context.Context, workers int, stopCh <-chan struct{})
Run defines the resourceTopology controller process
func (*Controller) UpdateResourceTopologiesStatus ¶
func (ctrl *Controller) UpdateResourceTopologiesStatus(ctx context.Context, resourceTopologyCopy *apiXuanwuV1.ResourceTopology) (*apiXuanwuV1.ResourceTopology, error)
UpdateResourceTopologiesStatus updates resource topologies status
type ControllerRequest ¶
type ControllerRequest struct { CmiClient *cmiGrpc.ClientSet KubeClient kubernetes.Interface XuanwuClient xuanwuClient.Interface TopologyInformer xuanwuClientInformers.ResourceTopologyInformer VolumeInformer informersCoreV1.PersistentVolumeInformer ClaimInformer informersCoreV1.PersistentVolumeClaimInformer PodInformer informersCoreV1.PodInformer ReSyncPeriod time.Duration EventRecorder record.EventRecorder }
ControllerRequest is a request for new controller
Click to show internal directories.
Click to hide internal directories.