setup

package
v0.20.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 51 Imported by: 1

Documentation

Index

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 *config.ControllerContext)

func CreateVClusterKubeConfig

func CreateVClusterKubeConfig(config *clientcmdapi.Config, options *config.VirtualClusterConfig) (*clientcmdapi.Config, error)

func GenerateCerts added in v0.20.0

func GenerateCerts(ctx context.Context, currentNamespaceClient kubernetes.Interface, vClusterName, currentNamespace, serviceCIDR, certificatesDir, clusterDomain string) error

func InitConfig

func InitConfig(vConfig *config.VirtualClusterConfig) 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 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 RegisterOrDeregisterAPIService

func RegisterOrDeregisterAPIService(ctx *config.ControllerContext)

func SetGlobalOwner added in v0.19.0

func SetGlobalOwner(ctx context.Context, currentNamespaceClient client.Client, currentNamespace, targetNamespace string, setOwner bool, serviceName string) error

func StartControllers

func StartControllers(controllerContext *config.ControllerContext) error

func StartManagers

func StartManagers(controllerContext *config.ControllerContext, syncers []syncertypes.Object) 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 UpdateSecretWithK0sCerts(
	ctx context.Context,
	currentNamespaceClient kubernetes.Interface,
	currentNamespace, vClusterName string,
) 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.

Jump to

Keyboard shortcuts

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