Documentation
¶
Index ¶
- Variables
- func ApplyCoreDNS(controllerContext *synccontext.ControllerContext)
- func CreateVClusterKubeConfig(config *clientcmdapi.Config, options CreateKubeConfigOptions) (*clientcmdapi.Config, error)
- func CreateVClusterKubeConfigForExport(ctx context.Context, virtualConfig *rest.Config, ...) (*clientcmdapi.Config, error)
- func Initialize(ctx context.Context, options *config.VirtualClusterConfig) error
- func MigrateMappers(ctx *synccontext.RegisterContext, syncers []syncertypes.Object) error
- func NewControllerContext(ctx context.Context, options *config.VirtualClusterConfig) (*synccontext.ControllerContext, error)
- func StartControllers(controllerContext *synccontext.ControllerContext, syncers []syncertypes.Object) error
- func StartManagers(ctx *synccontext.RegisterContext) ([]syncertypes.Object, error)
- func StartProxy(ctx *synccontext.ControllerContext) error
- func SyncKubernetesService(ctx *synccontext.ControllerContext) error
- func WriteKubeConfigToSecret(ctx context.Context, virtualConfig *rest.Config, currentNamespace string, ...) error
- type CreateKubeConfigOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var NewLocalManager = ctrl.NewManager
NewLocalManager is used to create a new local manager
View Source
var NewVirtualManager = ctrl.NewManager
NewVirtualManager is used to create a new virtual manager
Functions ¶
func ApplyCoreDNS ¶
func ApplyCoreDNS(controllerContext *synccontext.ControllerContext)
func CreateVClusterKubeConfig ¶
func CreateVClusterKubeConfig(config *clientcmdapi.Config, options CreateKubeConfigOptions) (*clientcmdapi.Config, error)
func CreateVClusterKubeConfigForExport ¶ added in v0.24.0
func CreateVClusterKubeConfigForExport(ctx context.Context, virtualConfig *rest.Config, syncerConfig *clientcmdapi.Config, options CreateKubeConfigOptions) (*clientcmdapi.Config, error)
func Initialize ¶
func Initialize(ctx context.Context, options *config.VirtualClusterConfig) error
Initialize creates the required secrets and configmaps for the control plane to start
func MigrateMappers ¶ added in v0.21.0
func MigrateMappers(ctx *synccontext.RegisterContext, syncers []syncertypes.Object) error
func NewControllerContext ¶
func NewControllerContext(ctx context.Context, options *config.VirtualClusterConfig) (*synccontext.ControllerContext, error)
NewControllerContext builds the controller context we can use to start the syncer
func StartControllers ¶
func StartControllers(controllerContext *synccontext.ControllerContext, syncers []syncertypes.Object) error
func StartManagers ¶
func StartManagers(ctx *synccontext.RegisterContext) ([]syncertypes.Object, error)
func StartProxy ¶
func StartProxy(ctx *synccontext.ControllerContext) error
func SyncKubernetesService ¶
func SyncKubernetesService(ctx *synccontext.ControllerContext) error
func WriteKubeConfigToSecret ¶
Types ¶
type CreateKubeConfigOptions ¶ added in v0.24.0
type CreateKubeConfigOptions struct { // ControlPlaneProxy specifies the proxy settings for the virtual cluster control plane. ControlPlaneProxy vclusterconfig.ControlPlaneProxy // ExportKubeConfig specifies kubeconfig values that override the default kubeconfig. ExportKubeConfig vclusterconfig.ExportKubeConfigProperties }
CreateKubeConfigOptions defines all config options that are available when creating a virtual cluster config.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.