automount

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 Imports: 19 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchesWorkspaceTarget added in v0.41.0

func MatchesWorkspaceTarget(
	obj k8sclient.Object,
	workspaceName string,
) bool

MatchesWorkspaceTarget checks whether a resource should be mounted to a given workspace based on include/exclude annotations. Both annotations can be used together: the resource is mounted when it matches the include pattern (or no include is set) and does not match the exclude pattern.

func ProvisionAutoMountResourcesInto

func ProvisionAutoMountResourcesInto(
	podAdditions *v1alpha1.PodAdditions,
	api sync.ClusterAPI,
	workspaceNamespace string,
	workspaceName string,
	persistentHome bool,
	workspaceDeployment *appsv1.Deployment,
) error

Types

type Resources added in v0.14.0

type Resources struct {
	Volumes       []corev1.Volume
	VolumeMounts  []corev1.VolumeMount
	EnvFromSource []corev1.EnvFromSource
}

func ProvisionGitConfiguration added in v0.14.0

func ProvisionGitConfiguration(
	api sync.ClusterAPI,
	workspaceNamespace string,
	workspaceName string,
	workspaceDeployment *appsv1.Deployment,
) (*Resources, error)

ProvisionGitConfiguration takes care of mounting git credentials and a gitconfig into a devworkspace.

Jump to

Keyboard shortcuts

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