podstatusctrl

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package podstatusctrl implements a controller that enforces the presence/absence of the remote unavailable label on local offloaded pods. The presence of the label indicates that the status of the offloaded pod can be managed/updated by the local cluster and can't currently be reflected/updated from the remote cluster, likely due to a remote cluster failure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasRemoteUnavailableLabel

func HasRemoteUnavailableLabel(pod *corev1.Pod) bool

HasRemoteUnavailableLabel return true if the pod has the remote unavailable label.

Types

type PodStatusReconciler

type PodStatusReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	LocalPodsClient client.Client
}

PodStatusReconciler reconciles Liqo nodes.

func (*PodStatusReconciler) Reconcile

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

Reconcile reconciles on Liqo nodes and manages the labels of the pods scheduled on them.

func (*PodStatusReconciler) SetupWithManager

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

SetupWithManager monitors updates on nodes.

Jump to

Keyboard shortcuts

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