slice

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubClientProvider

type HubClientProvider interface {
	UpdateAppPodsList(ctx context.Context, sliceConfigName string, appPods []kubeslicev1beta1.AppPod) error
}

type NetOpPod

type NetOpPod struct {
	PodIP   string
	PodName string
	Node    string
}

NetOpPod contains details of NetOp Pod running in the cluster

func GetNetOpPods

func GetNetOpPods(ctx context.Context, namespace string,
	listFn func(context.Context, client.ObjectList, ...client.ListOption) error) ([]NetOpPod, error)

GetNetOpPods returns the netop pods in the cluster

type SliceReconciler

type SliceReconciler struct {
	client.Client
	EventRecorder *events.EventRecorder
	Scheme        *runtime.Scheme
	Log           logr.Logger
	NetOpPods     []NetOpPod
	HubClient     HubClientProvider
}

SliceReconciler reconciles a Slice object

func (*SliceReconciler) Reconcile

func (r *SliceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*SliceReconciler) ReconcileAppPod

func (r *SliceReconciler) ReconcileAppPod(ctx context.Context, slice *kubeslicev1beta1.Slice) (ctrl.Result, error, bool)

ReconcileAppPod reconciles app pods

func (*SliceReconciler) ReconcileSliceRouter

func (r *SliceReconciler) ReconcileSliceRouter(ctx context.Context, slice *kubeslicev1beta1.Slice) (ctrl.Result, error, bool)

func (*SliceReconciler) SendSliceDeletionEventToNetOp

func (r *SliceReconciler) SendSliceDeletionEventToNetOp(ctx context.Context, sliceName string, namespace string) error

SendSliceDeletionEventToNetOp sends slice deletion event to netop pods for cleanup

func (*SliceReconciler) SetupWithManager

func (r *SliceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*SliceReconciler) SyncSliceQosProfileWithNetOp

func (r *SliceReconciler) SyncSliceQosProfileWithNetOp(ctx context.Context, slice *kubeslicev1beta1.Slice) error

SyncSliceQosProfileWithNetOp Syncs slice qos profile with netop pods

Jump to

Keyboard shortcuts

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