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
CacheSynced func()
LockFactory locks.LockFactory
Options *VirtualClusterOptions
StopChan <-chan struct{}
}
func NewControllerContext ¶
func NewControllerContext(localManager ctrl.Manager, virtualManager ctrl.Manager, options *VirtualClusterOptions) *ControllerContext
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
UseFakeNodes bool
UseFakePersistentVolumes bool
EnableStorageClasses bool
TranslateImages []string
NodeSelector string
ServiceAccount string
EnforceNodeSelector bool
OverrideHosts bool
OverrideHostsContainerImage string
ClusterDomain string
}
VirtualCluster holds the cmd flags
Click to show internal directories.
Click to hide internal directories.