context

package
v0.3.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerContext

type ControllerContext struct {
	Context context.Context

	LocalManager   ctrl.Manager
	VirtualManager ctrl.Manager

	NodeServiceProvider nodeservice.NodeServiceProvider

	CacheSynced func()
	LockFactory locks.LockFactory
	Options     *VirtualClusterOptions
	StopChan    <-chan struct{}
}

func NewControllerContext

func NewControllerContext(localManager ctrl.Manager, virtualManager ctrl.Manager, options *VirtualClusterOptions) (*ControllerContext, error)

type VirtualClusterOptions

type VirtualClusterOptions struct {
	ServerCaCert        string
	ServerCaKey         string
	TlsSANs             []string
	RequestHeaderCaCert string
	ClientCaCert        string
	KubeConfig          string
	KubeConfigSecret    string

	BindAddress string
	Port        int

	Suffix               string
	DisableSyncResources string
	TargetNamespace      string
	ServiceName          string
	OwningStatefulSet    string

	SyncAllNodes             bool
	SyncNodeChanges          bool
	UseFakeKubelets          bool
	UseFakeNodes             bool
	UseFakePersistentVolumes bool
	EnableStorageClasses     bool
	EnablePriorityClasses    bool

	TranslateImages []string

	NodeSelector        string
	ServiceAccount      string
	EnforceNodeSelector bool

	OverrideHosts               bool
	OverrideHostsContainerImage string

	ClusterDomain string

	LeaseDuration int64
	RenewDeadline int64
	RetryPeriod   int64
}

VirtualCluster holds the cmd flags

Jump to

Keyboard shortcuts

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