cmd

package
v0.15.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogsMountPath    = "/var/log"
	PodLogsMountPath = "/var/log/pods"

	NodeIndexName                    = "spec.nodeName"
	HostpathMapperSelfNodeNameEnvVar = "VCLUSTER_HOSTPATH_MAPPER_CURRENT_NODE_NAME"

	// naming format <pod_name>_<namespace>_<container_name>-<containerdID(hash, with <docker/cri>:// prefix removed)>.log
	ContainerSymlinkSourceTemplate = "%s_%s_%s-%s.log"
)

Variables

This section is empty.

Functions

func BuildRoot

func BuildRoot() *cobra.Command

BuildRoot creates a new root command from the

func ExecuteCerts

func ExecuteCerts(options *CertsCmd) error

func ExecuteStart

func ExecuteStart(options *context2.VirtualClusterOptions) error

func MapHostPaths added in v0.13.0

func MapHostPaths(options *context2.VirtualClusterOptions) error

func NewCertsCommand

func NewCertsCommand() *cobra.Command

func NewHostpathMapperCommand added in v0.13.0

func NewHostpathMapperCommand() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd returns a new root command

func NewStartCommand

func NewStartCommand() *cobra.Command

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

type PhysicalPodMap added in v0.13.0

type PhysicalPodMap map[string]*PodDetail

map of physical pod names to the corresponding virtual pod

type PodDetail added in v0.13.0

type PodDetail struct {
	Target      string
	SymLinkName *string
	PhysicalPod corev1.Pod
}

Jump to

Keyboard shortcuts

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