hostpaths

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 30 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"

	MultiNamespaceMode = "multi-namespace-mode"
	SyncerContainer    = "syncer"

	PodNameEnv = "POD_NAME"
)

Variables

This section is empty.

Functions

func NewHostpathMapperCommand

func NewHostpathMapperCommand() *cobra.Command

func Start

func Start(ctx context.Context, options *context2.VirtualClusterOptions, init bool) error

Types

type PhysicalPodMap

type PhysicalPodMap map[string]*PodDetail

map of physical pod names to the corresponding virtual pod

type PodDetail

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