Documentation ¶
Index ¶
- func ApplyCoreDNS(controllerContext *config.ControllerContext)
- func CreateVClusterKubeConfig(config *clientcmdapi.Config, options *config.VirtualClusterConfig) (*clientcmdapi.Config, error)
- func GenerateCerts(ctx context.Context, currentNamespaceClient kubernetes.Interface, ...) error
- func InitConfig(vConfig *config.VirtualClusterConfig) error
- func InitControllerContext(ctx context.Context, localManager, virtualManager ctrl.Manager, ...) (*config.ControllerContext, error)
- func InitManagers(ctx context.Context, options *config.VirtualClusterConfig) (*config.ControllerContext, error)
- func Initialize(ctx context.Context, options *config.VirtualClusterConfig) error
- func LoadVirtualConfig(ctx context.Context, options *config.VirtualClusterConfig) (*rest.Config, *clientcmdapi.Config, error)
- func NewControllerContext(ctx context.Context, options *config.VirtualClusterConfig) (*config.ControllerContext, error)
- func NewCurrentNamespaceClient(ctx context.Context, localManager ctrl.Manager, ...) (client.Client, error)
- func RegisterOrDeregisterAPIService(ctx *config.ControllerContext)
- func SetGlobalOwner(ctx context.Context, currentNamespaceClient client.Client, ...) error
- func StartControllers(controllerContext *config.ControllerContext) error
- func StartManagers(controllerContext *config.ControllerContext, syncers []syncertypes.Object) error
- func StartPlugins(ctx context.Context, virtualConfig *rest.Config, ...) error
- func StartProxy(ctx *config.ControllerContext) error
- func SyncKubernetesService(ctx *config.ControllerContext) error
- func UpdateSecretWithK0sCerts(ctx context.Context, currentNamespaceClient kubernetes.Interface, ...) error
- func WaitForClientConfig(ctx context.Context, options *config.VirtualClusterConfig) (clientcmd.ClientConfig, error)
- func WriteKubeConfigToSecret(ctx context.Context, currentNamespace string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCoreDNS ¶
func ApplyCoreDNS(controllerContext *config.ControllerContext)
func CreateVClusterKubeConfig ¶
func CreateVClusterKubeConfig(config *clientcmdapi.Config, options *config.VirtualClusterConfig) (*clientcmdapi.Config, error)
func GenerateCerts ¶ added in v0.20.0
func InitConfig ¶
func InitConfig(vConfig *config.VirtualClusterConfig) error
func InitControllerContext ¶
func InitControllerContext( ctx context.Context, localManager, virtualManager ctrl.Manager, virtualRawConfig *clientcmdapi.Config, vClusterOptions *config.VirtualClusterConfig, ) (*config.ControllerContext, error)
func InitManagers ¶ added in v0.19.0
func InitManagers( ctx context.Context, options *config.VirtualClusterConfig, ) (*config.ControllerContext, 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 LoadVirtualConfig ¶
func LoadVirtualConfig(ctx context.Context, options *config.VirtualClusterConfig) (*rest.Config, *clientcmdapi.Config, error)
func NewControllerContext ¶
func NewControllerContext( ctx context.Context, options *config.VirtualClusterConfig, ) (*config.ControllerContext, error)
NewControllerContext builds the controller context we can use to start the syncer
func NewCurrentNamespaceClient ¶ added in v0.19.0
func RegisterOrDeregisterAPIService ¶
func RegisterOrDeregisterAPIService(ctx *config.ControllerContext)
func SetGlobalOwner ¶ added in v0.19.0
func StartControllers ¶
func StartControllers(controllerContext *config.ControllerContext) error
func StartManagers ¶
func StartManagers(controllerContext *config.ControllerContext, syncers []syncertypes.Object) error
func StartPlugins ¶
func StartPlugins( ctx context.Context, virtualConfig *rest.Config, virtualRawConfig *clientcmdapi.Config, options *config.VirtualClusterConfig, ) error
func StartProxy ¶
func StartProxy(ctx *config.ControllerContext) error
func SyncKubernetesService ¶
func SyncKubernetesService(ctx *config.ControllerContext) error
func UpdateSecretWithK0sCerts ¶ added in v0.19.0
func WaitForClientConfig ¶
func WaitForClientConfig(ctx context.Context, options *config.VirtualClusterConfig) (clientcmd.ClientConfig, error)
func WriteKubeConfigToSecret ¶
func WriteKubeConfigToSecret(ctx context.Context, currentNamespace string, currentNamespaceClient client.Client, options *config.VirtualClusterConfig, syncerConfig *clientcmdapi.Config) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.