Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEnabledControllers = []string{
"services",
"configmaps",
"secrets",
"endpoints",
"pods",
"events",
"persistentvolumeclaims",
"ingresses",
"fake-nodes",
"fake-persistentvolumes",
}
View Source
var ExistingControllers = map[string]bool{ "services": true, "configmaps": true, "secrets": true, "endpoints": true, "pods": true, "events": true, "fake-nodes": true, "fake-persistentvolumes": true, "persistentvolumeclaims": true, "ingresses": true, "nodes": true, "persistentvolumes": true, "storageclasses": true, "legacy-storageclasses": true, "priorityclasses": true, "networkpolicies": true, "volumesnapshots": true, "poddisruptionbudgets": true, "serviceaccounts": true, }
Functions ¶
This section is empty.
Types ¶
type ControllerContext ¶
type ControllerContext struct { Context context.Context LocalManager ctrl.Manager VirtualManager ctrl.Manager CurrentNamespace string CurrentNamespaceClient client.Client Controllers map[string]bool Options *VirtualClusterOptions StopChan <-chan struct{} }
func NewControllerContext ¶
func NewControllerContext(currentNamespace string, localManager ctrl.Manager, virtualManager ctrl.Manager, options *VirtualClusterOptions) (*ControllerContext, error)
type VirtualClusterOptions ¶
type VirtualClusterOptions struct { Controllers []string `json:"controllers,omitempty"` ServerCaCert string `json:"serverCaCert,omitempty"` ServerCaKey string `json:"serverCaKey,omitempty"` TLSSANs []string `json:"tlsSans,omitempty"` RequestHeaderCaCert string `json:"requestHeaderCaCert,omitempty"` ClientCaCert string `json:"clientCaCert,omitempty"` KubeConfig string `json:"kubeConfig,omitempty"` KubeConfigSecret string `json:"kubeConfigSecret,omitempty"` KubeConfigSecretNamespace string `json:"kubeConfigSecretNamespace,omitempty"` KubeConfigServer string `json:"kubeConfigServer,omitempty"` Tolerations []string `json:"tolerations,omitempty"` BindAddress string `json:"bindAddress,omitempty"` Port int `json:"port,omitempty"` Name string `json:"name,omitempty"` TargetNamespace string `json:"targetNamespace,omitempty"` ServiceName string `json:"serviceName,omitempty"` SetOwner bool `json:"setOwner,omitempty"` SyncAllNodes bool `json:"syncAllNodes,omitempty"` EnableScheduler bool `json:"enableScheduler,omitempty"` DisableFakeKubelets bool `json:"disableFakeKubelets,omitempty"` TranslateImages []string `json:"translateImages,omitempty"` NodeSelector string `json:"nodeSelector,omitempty"` EnforceNodeSelector bool `json:"enforceNodeSelector,omitempty"` ServiceAccount string `json:"serviceAccount,omitempty"` OverrideHosts bool `json:"overrideHosts,omitempty"` OverrideHostsContainerImage string `json:"overrideHostsContainerImage,omitempty"` ClusterDomain string `json:"clusterDomain,omitempty"` LeaderElect bool `json:"leaderElect,omitempty"` LeaseDuration int64 `json:"leaseDuration,omitempty"` RenewDeadline int64 `json:"renewDeadline,omitempty"` RetryPeriod int64 `json:"retryPeriod,omitempty"` DisablePlugins bool `json:"disablePlugins,omitempty"` PluginListenAddress string `json:"pluginListenAddress,omitempty"` DefaultImageRegistry string `json:"defaultImageRegistry,omitempty"` EnforcePodSecurityStandard string `json:"enforcePodSecurityStandard,omitempty"` MapHostServices []string `json:"mapHostServices,omitempty"` MapVirtualServices []string `json:"mapVirtualServices,omitempty"` SyncLabels []string `json:"syncLabels,omitempty"` // DEPRECATED FLAGS DeprecatedSyncNodeChanges bool `json:"syncNodeChanges"` DeprecatedDisableSyncResources string DeprecatedOwningStatefulSet string DeprecatedUseFakeNodes bool DeprecatedUseFakePersistentVolumes bool DeprecatedEnableStorageClasses bool DeprecatedEnablePriorityClasses bool DeprecatedSuffix string DeprecatedUseFakeKubelets bool }
VirtualClusterOptions holds the cmd flags
Click to show internal directories.
Click to hide internal directories.