syncer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*Options
	// contains filtered or unexported fields
}

func (*Config) New

func (c *Config) New() (*Controller, error)

type Controller

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

func NewController

func NewController(
	apiExtensionsClient apiextensionsclient.Interface,
	kcpClient kcpclient.Interface,
	clusterInformer clusterinformer.ClusterInformer,
	apiResourceImportInformer apiresourceinformer.APIResourceImportInformer,
	kubeconfig clientcmdapi.Config,
	resourcesToSync []string,
	syncerManagerImpl syncerManagerImpl,
) (*Controller, error)

func (*Controller) Prepare

func (c *Controller) Prepare() (PreparedController, error)

type Options

type Options struct {
	SyncerImage     string
	PullMode        bool
	PushMode        bool
	ResourcesToSync []string
}

Options are the options for the cluster controller

func BindOptions

func BindOptions(o *Options, fs *pflag.FlagSet) *Options

BindOptions binds the cluster controller options to the flag set.

func DefaultOptions

func DefaultOptions() *Options

DefaultOptions are the default options for the cluster controller.

func (*Options) Complete

func (o *Options) Complete(kubeconfig clientcmdapi.Config, kcpSharedInformerFactory kcpexternalversions.SharedInformerFactory, crdSharedInformerFactory crdexternalversions.SharedInformerFactory, resourcesToSync []string) *Config

func (*Options) Validate

func (o *Options) Validate() error

type PreparedController

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

func (*PreparedController) Start

func (c *PreparedController) Start(ctx context.Context)

TODO(sttts): fix the many races due to unprotected field access and then increase worker count

Jump to

Keyboard shortcuts

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