resourcetopology

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

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

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

func (ctrl *Controller) CmiCreateLabel(ctx context.Context, params *cmi.Params) error

CmiCreateLabel create label by cmi grpc connection

func (*Controller) CmiDeleteLabel

func (ctrl *Controller) CmiDeleteLabel(ctx context.Context, params *cmi.Params) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳