cmd

package
v0.16.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildControllerContext added in v0.15.1

func BuildControllerContext(ctx context.Context, options *context2.VirtualClusterOptions, currentNamespace string, inClusterConfig *rest.Config) (*context2.ControllerContext, error)

func BuildRoot

func BuildRoot() *cobra.Command

BuildRoot creates a new root command from the

func CreateVClusterKubeConfig added in v0.15.1

func CreateVClusterKubeConfig(config *api.Config, options *context2.VirtualClusterOptions) (*api.Config, error)

func EnsureServiceCIDR added in v0.15.1

func EnsureServiceCIDR(ctx context.Context, workspaceNamespaceClient, currentNamespaceClient kubernetes.Interface, workspaceNamespace, currentNamespace, vClusterName string) error

func ExecuteCerts

func ExecuteCerts(ctx context.Context, options *CertsCmd) error

func ExecuteStart

func ExecuteStart(ctx context.Context, options *context2.VirtualClusterOptions) error

func FindOwner added in v0.15.1

func FindOwner(ctx *context2.ControllerContext) error

func NewCertsCommand

func NewCertsCommand() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd returns a new root command

func NewStartCommand

func NewStartCommand() *cobra.Command

func RegisterOrDeregisterAPIService added in v0.15.1

func RegisterOrDeregisterAPIService(ctx *context2.ControllerContext)

func StartControllers added in v0.15.1

func StartControllers(controllerContext *context2.ControllerContext) error

func StartLeaderElection added in v0.15.1

func StartLeaderElection(ctx *context2.ControllerContext, startLeading func() error) error

func StartProxy added in v0.15.1

func StartProxy(ctx *context2.ControllerContext) error

func SyncKubernetesService added in v0.15.1

func SyncKubernetesService(ctx *context2.ControllerContext) error

func WaitForClientConfig added in v0.15.1

func WaitForClientConfig(ctx context.Context, options *context2.VirtualClusterOptions) (clientcmd.ClientConfig, error)

func WriteKubeConfigToSecret added in v0.15.1

func WriteKubeConfigToSecret(ctx context.Context, currentNamespace string, currentNamespaceClient client.Client, options *context2.VirtualClusterOptions, config *api.Config) error

Types

type CertsCmd

type CertsCmd struct {
	Prefix        string
	ServiceCIDR   string
	ClusterDomain string
	ClusterName   string
	Namespace     string

	CertificateDir string
	EtcdReplicas   int
}

CertsCmd holds the certs flags

Jump to

Keyboard shortcuts

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