conduit

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUpdateSyncGroup added in v1.1.7

func GetUpdateSyncGroup(conduit *meridiov1.Conduit) string

Types

type ConduitReconciler

type ConduitReconciler struct {
	client.Client
	APIReader client.Reader // reader contacting the API server directly bypassing the local cache
	Log       logr.Logger
	Scheme    *runtime.Scheme

	ProxyModelLoader ProxyModelLoader // optional; change how proxy loads its model
	// contains filtered or unexported fields
}

ConduitReconciler reconciles a Conduit object

func (*ConduitReconciler) GetUpdateLocks added in v1.1.7

func (r *ConduitReconciler) GetUpdateLocks() map[string]string

GetUpdateLocks returns a new map of update sync group names to lock owners

func (*ConduitReconciler) GetUpdateSyncGroups added in v1.1.7

func (r *ConduitReconciler) GetUpdateSyncGroups() map[string]string

GetUpdateSyncGroups returns a new map of conduit names to update sync groups

func (*ConduitReconciler) HandleConduitDeletion added in v1.1.7

func (r *ConduitReconciler) HandleConduitDeletion(name, namespace string)

HandleConduitDeletion wraps cleanupLock making it available for unit tests

func (*ConduitReconciler) HasLock added in v1.1.7

func (r *ConduitReconciler) HasLock(updateSyncGroup, owner string) bool

Check if owner has locked the update sync group

func (*ConduitReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Conduit object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*ConduitReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(e *common.Executor, t *meridiov1.Trench, c *meridiov1.Conduit, loader ProxyModelLoader) (*Proxy, error)

type ProxyModelLoader added in v1.1.7

type ProxyModelLoader interface {
	Load() (*appsv1.DaemonSet, error)
}

Jump to

Keyboard shortcuts

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