Documentation ¶
Index ¶
- func FindSliceRouterService(ctx context.Context, c client.Client, sliceName string) (bool, error)
- type HubClientProvider
- type NetOpPod
- type SliceGwReconciler
- func (r *SliceGwReconciler) GetGwPodNameAndIP(ctx context.Context, sliceGw *kubeslicev1beta1.SliceGateway) (string, string)
- func (r *SliceGwReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *SliceGwReconciler) ReconcileGwPodStatus(ctx context.Context, slicegateway *kubeslicev1beta1.SliceGateway) (ctrl.Result, error, bool)
- func (r *SliceGwReconciler) SendConnectionContextToGwPod(ctx context.Context, slicegateway *kubeslicev1beta1.SliceGateway) (ctrl.Result, error, bool)
- func (r *SliceGwReconciler) SendConnectionContextToSliceRouter(ctx context.Context, slicegateway *kubeslicev1beta1.SliceGateway) (ctrl.Result, error, bool)
- func (r *SliceGwReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *SliceGwReconciler) SyncNetOpConnectionContextAndQos(ctx context.Context, slice *kubeslicev1beta1.Slice, ...) error
- type WorkerGWSidecarClientProvider
- type WorkerNetOpClientProvider
- type WorkerRouterClientProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HubClientProvider ¶
type HubClientProvider interface { UpdateNodePortForSliceGwServer(ctx context.Context, sliceGwNodePort int32, sliceGwName string) error UpdateNodeIpInCluster(ctx context.Context, clusterName, nodeIP, namespace string) error GetClusterNodeIP(ctx context.Context, clusterName, namespace string) (string, error) }
type NetOpPod ¶
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 SliceGwReconciler ¶
type SliceGwReconciler struct { client.Client Scheme *runtime.Scheme Log logr.Logger HubClient HubClientProvider WorkerRouterClient WorkerRouterClientProvider WorkerNetOpClient WorkerNetOpClientProvider WorkerGWSidecarClient WorkerGWSidecarClientProvider NetOpPods []NetOpPod EventRecorder *events.EventRecorder NodeIP string }
SliceReconciler reconciles a Slice object
func (*SliceGwReconciler) GetGwPodNameAndIP ¶ added in v0.2.4
func (r *SliceGwReconciler) GetGwPodNameAndIP(ctx context.Context, sliceGw *kubeslicev1beta1.SliceGateway) (string, string)
func (*SliceGwReconciler) ReconcileGwPodStatus ¶
func (r *SliceGwReconciler) ReconcileGwPodStatus(ctx context.Context, slicegateway *kubeslicev1beta1.SliceGateway) (ctrl.Result, error, bool)
func (*SliceGwReconciler) SendConnectionContextToGwPod ¶ added in v0.2.4
func (r *SliceGwReconciler) SendConnectionContextToGwPod(ctx context.Context, slicegateway *kubeslicev1beta1.SliceGateway) (ctrl.Result, error, bool)
func (*SliceGwReconciler) SendConnectionContextToSliceRouter ¶
func (r *SliceGwReconciler) SendConnectionContextToSliceRouter(ctx context.Context, slicegateway *kubeslicev1beta1.SliceGateway) (ctrl.Result, error, bool)
func (*SliceGwReconciler) SetupWithManager ¶
func (r *SliceGwReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*SliceGwReconciler) SyncNetOpConnectionContextAndQos ¶
func (r *SliceGwReconciler) SyncNetOpConnectionContextAndQos(ctx context.Context, slice *kubeslicev1beta1.Slice, slicegw *kubeslicev1beta1.SliceGateway, sliceGwNodePort int32) error
type WorkerNetOpClientProvider ¶
type WorkerNetOpClientProvider interface { UpdateSliceQosProfile(ctx context.Context, addr string, slice *kubeslicev1beta1.Slice) error SendSliceLifeCycleEventToNetOp(ctx context.Context, addr string, sliceName string, eventType netop.EventType) error SendConnectionContext(ctx context.Context, serverAddr string, gw *kubeslicev1beta1.SliceGateway, sliceGwNodePort int32) error }
Click to show internal directories.
Click to hide internal directories.