syncer

package
v0.23.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureNewLocalManager

func ConfigureNewLocalManager(ctx *synccontext.RegisterContext, mappings map[string]string, syncerName string) (ctrl.Manager, bool, error)

func GetOptionsForMultiNamespaceManager

func GetOptionsForMultiNamespaceManager(ctx *synccontext.RegisterContext, options cache.Options) ctrl.Options

func NewNoopImporter

func NewNoopImporter() syncertypes.Importer

func RegisterFakeSyncer

func RegisterFakeSyncer(ctx *synccontext.RegisterContext, syncer syncertypes.FakeSyncer) error

func RegisterSyncer

func RegisterSyncer(ctx *synccontext.RegisterContext, syncer syncertypes.Syncer) error

func ToGenericSyncer

func ToGenericSyncer[T client.Object](syncer syncertypes.Sync[T]) syncertypes.Sync[client.Object]

Types

type FromHostSyncer

type FromHostSyncer interface {
	// CopyHostObjectToVirtual takes virtual and physical object and copies all needed fields from physical to virtual object.
	// E.g. for Secrets and ConfigMaps, it will be labels, annotations and .data
	CopyHostObjectToVirtual(vObj, pObj client.Object)
	// GetProPatches returns pro patches from config for given kind.
	GetProPatches(cfg config.Config) []config.TranslatePatch
	// GetMappings returns mappings from config for given kind.
	GetMappings(cfg config.Config) map[string]string
}

FromHostSyncer encapsulates kind specific actions that need to happen in the from host sync.

type SyncController

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

func NewSyncController

func NewSyncController(ctx *synccontext.RegisterContext, syncer syncertypes.Syncer) (*SyncController, error)

func (*SyncController) Build

func (*SyncController) Reconcile

func (r *SyncController) Reconcile(ctx context.Context, vReq reconcile.Request) (res ctrl.Result, retErr error)

func (*SyncController) Register

func (r *SyncController) Register(ctx *synccontext.RegisterContext) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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